Skip to content

Commit 2c5aa40

Browse files
committed
QL4QL: Pass --threads=0 when creating the database and running tests
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent ec70bb1 commit 2c5aa40

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/ql-for-ql-build.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Make database and analyze
6060
run: |
6161
./ql/target/release/buramu | tee deprecated.blame # Add a blame file for the extractor to parse.
62-
${CODEQL} database create -l=ql ${DB} --search-path "${{ github.workspace }}"
62+
${CODEQL} database create --threads=0 -l=ql ${DB} --search-path "${{ github.workspace }}"
6363
${CODEQL} database analyze -j0 --format=sarif-latest --output=ql-for-ql.sarif ${DB} ql/ql/src/codeql-suites/ql-code-scanning.qls --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}"
6464
env:
6565
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}

‎.github/workflows/ql-for-ql-tests.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
key: ql-for-ql-tests
4545
- name: Run QL tests
4646
run: |
47-
"${CODEQL}" test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path "${{ github.workspace }}" --consistency-queries ql/ql/consistency-queries --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}" ql/ql/test
47+
"${CODEQL}" test run --threads=0 --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path "${{ github.workspace }}" --consistency-queries ql/ql/consistency-queries --compilation-cache "${{ steps.query-cache.outputs.cache-dir }}" ql/ql/test
4848
env:
4949
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}
5050

@@ -91,12 +91,12 @@ jobs:
9191
- name: Run a single QL tests - Unix
9292
if: runner.os != 'Windows'
9393
run: |
94-
"${CODEQL}" test run --check-databases --search-path "${{ github.workspace }}" ql/ql/test/queries/style/DeadCode/DeadCode.qlref
94+
"${CODEQL}" test run --threads=0 --check-databases --search-path "${{ github.workspace }}" ql/ql/test/queries/style/DeadCode/DeadCode.qlref
9595
env:
9696
CODEQL: ${{ steps.find-codeql.outputs.codeql-path }}
9797
- name: Run a single QL tests - Windows
9898
if: runner.os == 'Windows'
9999
shell: pwsh
100100
run: |
101101
$Env:PATH += ";$(dirname ${{ steps.find-codeql.outputs.codeql-path }})"
102-
codeql test run --check-databases --search-path "${{ github.workspace }}" ql/ql/test/queries/style/DeadCode/DeadCode.qlref
102+
codeql test run --threads=0 --check-databases --search-path "${{ github.workspace }}" ql/ql/test/queries/style/DeadCode/DeadCode.qlref

0 commit comments

Comments
 (0)