Repository navigation
CI: queue compute on Darkbloom and stage native CodeQL - #419
Conversation
Preserve the existing Actions, C/C++ and Python default suites and categories. Keep activation behind CODEQL_NATIVE until the operator verifies advanced setup and the upload path. Prepared with OpenAI Codex assistance.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5d77b327b6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - name: Check the artifact boundary | ||
| run: python3 .github/scripts/codeql_artifacts_test.py |
There was a problem hiding this comment.
Select Python 3.11+ before running the CodeQL boundary tests
Once CODEQL_NATIVE=on, scans routed to the configured ubuntu-22.04-arm fallback—including fork PRs, which the routing workflow explicitly sends to hosted runners—fail before analysis. That runner image provides Python 3.10, but codeql_artifacts.py calls hashlib.file_digest, added in Python 3.11. Running the boundary tests locally with Python 3.10.20 reproduced all 12 tests failing with AttributeError. Configure Python 3.11+ before this step, or make the digest implementation compatible with the fallback interpreter, so these runs can reach analysis and publication.
Useful? React with 👍 / 👎.
| # No checkout or repository code; native SARIF already has fingerprints. | ||
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||
| with: | ||
| name: codeql-native-${{ github.run_id }}-${{ github.run_attempt }} |
There was a problem hiding this comment.
Carry the scan's artifact identity into publisher retries
If scan succeeds but publish fails transiently, selecting “Re-run failed jobs” reruns only the publisher, not its successful prerequisite: GitHub retains outputs from jobs excluded from the rerun. The publisher then requests an artifact named with the new github.run_attempt, although the only bundle was uploaded under the scan's previous attempt, so the retry fails at download instead of retrying publication. Simply changing the artifact name is insufficient because the manifest validator also requires the current attempt. Expose the producing scan's artifact name and attempt as job outputs and use those for download and validation, preserving the run/commit binding while allowing publisher-only retries.
Useful? React with 👍 / 👎.
Queue each Swift LM compute job directly on a native Darkbloom runner. The merged workflow required seven Mac slots together and fell back to a full hosted suite when that reservation could not fit, despite its build and test stages running at different times.
CODEQL_NATIVEremains unset, so the workflow stays inactive and GitHub's current default setup remains the active scanner. Switching scanners requires separate admin authorization and upload qualification.Validation: all 27 shard-tool tests and 12 CodeQL boundary tests pass; actionlint, dependency/route checks and the full fork-analysis gate pass. Every existing workload step is identical to the native-only parent, the four CodeQL files are identical to reviewed source
2e55e1e, all three commits are signed, and the combined head trial-merges cleanly with current main. The prior Swift LM full native run and the separate classic Mac canary passed, but the new combined head still requires its own full native runtime and artifact/receipt verification before merge.AI usage: Codex prepared and validated this change under the repository owner's explicit direction. No library source or test expectations changed.