Skip to content

CI: queue compute on Darkbloom and stage native CodeQL - #419

Merged
Gajesh2007 merged 4 commits into
mainfrom
codex/mlx-lm-native-combined-20261114
Nov 14, 2026
Merged

Gajesh2007 merged 4 commits into
mainfrom
codex/mlx-lm-native-combined-20261114

Conversation

@Gajesh2007

Copy link
Copy Markdown
Member

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.

  • Use the existing full native labels for build, Metal, four test shards, coverage, Linux map/verification, PR lint and read-only fork-diff rendering. Preserve every workload step, permission, timeout, test map, strict assertion, cache guard and artifact boundary.
  • Keep all 7,718 test identities accounted for exactly once, including the unchanged seven-test hosted audio exception and three extra test passes. The shard planner and protected Pages publisher stay hosted.
  • Stage the previously reviewed native CodeQL workflow and its data-only SARIF publisher unchanged. CODEQL_NATIVE remains 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.
  • Document bounded queues: current initial qualifications allow one hour for Linux and 90 minutes for macOS, capped by approval expiry; the existing watchdog has a 30-minute wait threshold and at most one rescue. Native-only reruns remain native. No server, approval or resource-policy changes are included.

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.

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.
@Gajesh2007

Copy link
Copy Markdown
Member Author

Re-gating: main moved to 84e866f (#416, incl. .github/test-shards.json and fork.yaml) after this run started. Closing and reopening re-runs CI on a fresh merge with the new main; the head 6f2b417 is unchanged. Previous run 43532556865 passed (7718 listed, 7718 executed exactly once).

@Gajesh2007 Gajesh2007 closed this Nov 14, 2026
@Gajesh2007 Gajesh2007 reopened this Nov 14, 2026
@Gajesh2007
Gajesh2007 marked this pull request as ready for review November 14, 2026 01:34
@Gajesh2007
Gajesh2007 merged commit b02ec4a into main Nov 14, 2026
21 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T01:37:46.725678Z 5d77b32 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +43 to +44
- name: Check the artifact boundary
run: python3 .github/scripts/codeql_artifacts_test.py

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant