From 860f462de06de4451f39e3fb2845d6c7c57144ff Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Tue, 18 Nov 2025 07:30:19 +1300 Subject: [PATCH 1/2] ci: run `apitester` against PRs --- run_tests.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run_tests.sh b/run_tests.sh index 344999c61bb..5e6e748603a 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -14,3 +14,8 @@ poetry run python -m unittest discover osv/ecosystems/ "*_test.py" . # Run the validation for the go/python datastore models cd ./go/models/internal/validate/ && ./run_validate.sh + +# Run the API tester +url="localhost:${DATASTORE_EMULATOR_PORT}" + +cd ./tools/apitester/ && OSV_API_BASE_URL="$url" go test ./... From 4f9a50b2c1db3828ea92b9062e21e6e928c1aa26 Mon Sep 17 00:00:00 2001 From: Gareth Jones <3151613+G-Rath@users.noreply.github.com> Date: Wed, 3 Dec 2025 17:03:53 +1300 Subject: [PATCH 2/2] ci: run `apitester` tester in the right workflow --- gcp/api/run_tests.sh | 3 +++ run_tests.sh | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gcp/api/run_tests.sh b/gcp/api/run_tests.sh index 697dfdbd372..c3955cab4ca 100755 --- a/gcp/api/run_tests.sh +++ b/gcp/api/run_tests.sh @@ -27,3 +27,6 @@ set -e poetry install poetry run python server_test.py poetry run python integration_tests.py "$1" + +# Run the API tester +cd ../../tools/apitester/ && go test ./... diff --git a/run_tests.sh b/run_tests.sh index 5e6e748603a..344999c61bb 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -14,8 +14,3 @@ poetry run python -m unittest discover osv/ecosystems/ "*_test.py" . # Run the validation for the go/python datastore models cd ./go/models/internal/validate/ && ./run_validate.sh - -# Run the API tester -url="localhost:${DATASTORE_EMULATOR_PORT}" - -cd ./tools/apitester/ && OSV_API_BASE_URL="$url" go test ./...