diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5f5a4ad..798a7c71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,7 @@ jobs: pip install -r datastore/load-test/requirements.txt python -m grpc_tools.protoc --proto_path=./protobuf datastore.proto --python_out=datastore/load-test --grpc_python_out=datastore/load-test cd datastore/load-test + pwd locust -f locustfile_write.py,locustfile_read.py --headless -u 5 -r 1 --run-time 300 --only-summary --csv store - name: Archive load test artifacts diff --git a/datastore/load-test/locustfile_write.py b/datastore/load-test/locustfile_write.py index 7edbd814..769a569b 100644 --- a/datastore/load-test/locustfile_write.py +++ b/datastore/load-test/locustfile_write.py @@ -9,8 +9,7 @@ from locust import task from netcdf_file_to_requests import generate_dummy_requests_from_netcdf_per_station_per_timestamp -print(Path(__file__), flush=True) -file_path = Path(Path(__file__).parent.parent / "data-loader" / "test-data" / "KNMI" / "20230101.nc") +file_path = Path(Path(__file__).resolve().parents[1] / "data-loader" / "test-data" / "KNMI" / "20230101.nc") # stations = [ # "06201",