Skip to content

Commit 06f3a6e

Browse files
committed
Fix client-integration-tests for extract dbs
1 parent a24247b commit 06f3a6e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/client-integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
run: ./server/scripts/install-packs.sh
100100

101101
## Extract test databases used in the integration tests.
102-
## Defaults to integration scope (javascript/examples only).
102+
## Defaults to integration scope (javascript/examples + all tools databases).
103103
## Query unit tests auto-extract their own databases via `codeql test run`.
104104
- name: MCP Integration Tests - Extract test databases
105105
shell: bash

server/scripts/extract-test-databases.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ extract_test_databases() {
118118
## Extract test databases based on scope and language filters.
119119
##
120120
## Default (no flags): only databases needed by client integration tests
121-
## (currently just server/ql/javascript/examples).
121+
## (javascript/examples + tools databases for languages with integration
122+
## test fixtures).
122123
## --scope all: all languages × examples + tools.
123124
## --language: filter to a single language (implies --scope all).
124125

@@ -145,7 +146,16 @@ elif [ "${SCOPE}" = "all" ]; then
145146
done
146147
else
147148
echo "Extracting test databases for integration tests only..."
149+
# Extract javascript/examples for default codeql_query_run parameters
148150
extract_test_databases "server/ql/javascript/examples"
151+
# Extract tools databases for all languages — the Go integration tests
152+
# include codeql_query_run test cases that reference tools/test databases
153+
# for cpp, javascript, python, and rust.
154+
for lang in "${VALID_LANGUAGES[@]}"; do
155+
if [ -d "server/ql/${lang}/tools" ]; then
156+
extract_test_databases "server/ql/${lang}/tools"
157+
fi
158+
done
149159
fi
150160

151161
echo "INFO: Test database extraction complete!"

0 commit comments

Comments
 (0)