Skip to content

Commit e49e5ca

Browse files
CopilotNateD-MSFT
andauthored
Parallelize test-query-health and test-codeql-latest-vs-current jobs
Agent-Logs-Url: https://github.com/microsoft/Windows-Driver-Developer-Supplemental-Tools/sessions/694e9d3d-f942-4564-8e96-8af21abeb87a Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
1 parent a666896 commit e49e5ca

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/build-codeql.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,13 @@ jobs:
148148
149149

150150
test-codeql-latest-vs-current:
151-
# Tests if the latest codeql version produces the same results as the current version.
151+
# Tests if the latest codeql version produces the same results as the current version.
152+
# Runs in parallel with `test-query-health` (no `needs:` dependency) to halve the
153+
# pipeline's wall-clock time. It is independent: it downloads its own (latest)
154+
# CodeQL CLI and runs the same per-test build/analyze cycle. `continue-on-error`
155+
# below means failures here never block the workflow regardless of order.
152156
runs-on: windows-latest
153157
continue-on-error: true # Allow script to return non-zero exit code
154-
needs: test-query-health
155158
permissions:
156159
contents: read
157160
packages: write
@@ -160,10 +163,6 @@ jobs:
160163
ACCOUNT_NAME: ${{ secrets.ACCOUNT_NAME }}
161164
SHARE_NAME: ${{ secrets.SHARE_NAME }}
162165
steps:
163-
- name: Check Prev Job
164-
if: ${{ needs.test-query-health.result == 'failure' }}
165-
shell: pwsh
166-
run: exit 1
167166
- name: Enable long git paths
168167
shell: cmd
169168
run: git config --global core.longpaths true

0 commit comments

Comments
 (0)