- Notifications
You must be signed in to change notification settings - Fork70
CI/CD test changes to diagnose dependabot fixes in separate PR#942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
52234e79acf2c06135bf39af79b2d4295204527c4bFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -59,9 +59,7 @@ jobs: | ||
| id: cache-codeql | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ${{github.workspace}}/codeql_home | ||
| key: codeql-home-${{matrix.os}}-${{matrix.codeql_cli}}-${{matrix.codeql_standard_library}} | ||
| - name: Install CodeQL | ||
| @@ -83,7 +81,6 @@ jobs: | ||
| run: | | ||
| ${{ github.workspace }}/codeql_home/codeql/codeql query compile --threads 0 ${{ matrix.language }} | ||
| - name: Run test suites | ||
| id: run-test-suites | ||
| env: | ||
| @@ -124,7 +121,6 @@ jobs: | ||
| print(f"Executing tests found (recursively) in the directory '{test_root}'") | ||
| files_to_close = [] | ||
| try: | ||
| num_slices = 8 | ||
| procs = [] | ||
| @@ -139,12 +135,8 @@ jobs: | ||
| _, err = p.communicate() | ||
| if p.returncode != 0: | ||
| if p.returncode == 122: | ||
| print(f"{err.decode()}") | ||
| else: | ||
| print_error_and_fail(f"Failed to run tests with return code {p.returncode}\n{err.decode()}") | ||
| finally: | ||
| for file in files_to_close: | ||
| @@ -170,18 +162,20 @@ jobs: | ||
| with: | ||
| script: | | ||
| core.setFailed('Test run job failed') | ||
| - name: Collect test results | ||
| uses: actions/download-artifact@v5 | ||
| - name: Validate test results | ||
| run: | | ||
| for json_report in *-test-results-*/test_report_* | ||
| do | ||
| jq --raw-output 'PASS \(map(select(.pass == true)) | length)/\(length)' $json_report | ||
Collaborator
| ||
| done | ||
| FAILING_TESTS=$(jq --raw-output '.[] | select(.pass == false)' *-test-results-*/test_report_*.json) | ||
| if [[ ! -z "$FAILING_TESTS" ]]; then | ||
| echo "ERROR: The following tests failed:" | ||
| echo $FAILING_TESTS | jq . | ||
| exit 1 | ||
| fi | ||