-
-
Notifications
You must be signed in to change notification settings - Fork 397
ci: prebuilt runner images for smoke/SDK/web jobs #1380
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
4d07526
ci: add throwaway branch-head validation harness
ndizazzo bfe9e67
fix(ci): unbreak contract test tripped by the tmp harness's own comment
ndizazzo 4304798
ci(chunk-2): containerize hf-download-smoke.yml on the public runner …
ndizazzo fdebeb2
ci(chunk-3): containerize smoke.yml on the public runner image (ubunt…
ndizazzo 4aeec8b
ci(chunk-4): containerize sdk-smoke.yml on the public runner image (L…
ndizazzo 3342d46
ci(chunk-6a): drop dead-weight brew install on macOS Metal runtime
ndizazzo 747d68e
ci(chunk-6b): shared setup-macos-lld composite action for the real cost
ndizazzo 6639706
fix(ci): drop actions/cache from setup-macos-lld, it is a net loss
ndizazzo c575050
fix(ci): grant packages: read to both product-smoke slices
ndizazzo 824a0da
fix(ci): gate duplicate tool-setup actions off when the image already…
ndizazzo 58b4aa1
ci: add a macOS lane to the tmp branch-head validation harness
ndizazzo 74ad2ac
fix(ci): correct root-vs-runner-user comments in smoke.yml
ndizazzo 01b3a87
fix(ci): correct falsy-&&-branch ternary in smoke.yml container image
ndizazzo d76b521
ci(chunk-5b): containerize ci-web-slice.yml, ci-ui-artifact-slice.yml…
ndizazzo ff57ff2
fix(ci): declare shell: bash for bashisms in container jobs, fix inve…
ndizazzo 93351b6
fix(ci): un-gate openai install in smoke.yml, pinned CPU digest preda…
ndizazzo bf8816c
ci: remove the temporary branch-head validation harness
ndizazzo 027d114
fix(ci): address CodeRabbit review on #1380
ndizazzo d6c94c1
fix(ci): compare permission levels, not scope names, in the caller co…
ndizazzo 58b749f
ci(chunk-0): assert cpu backend on public verify-runner-image calls
ndizazzo e2a267d
ci(chunk-1): containerize scripted-binary-smoke.yml on the public run…
ndizazzo c73852f
fix(ci): address CodeRabbit's second review on #1380
ndizazzo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| name: Set up macOS lld linker | ||
| description: > | ||
| Install and verify Homebrew's lld on a macOS runner. Always probe-links a | ||
| throwaway crate before any caller trusts the result -- a bad install must | ||
| fail loudly, not build silently against the wrong (or no) linker. | ||
| Deliberately uncached: mesh-llm's Actions cache is already over the 10GB | ||
| per-repo quota (see gh cache list), so a ~1.9GB lld/llvm/z3 Cellar entry | ||
| here would evict the far more expensive macOS Rust target/ cache for a | ||
| 15-30s bottle-pour saving. Revisit only with a measured number and a | ||
| quota plan, not an assumption. | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Install lld | ||
| shell: bash | ||
| run: brew install lld | ||
|
|
||
| - name: Verify lld links a real binary | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| lld_bin="$(brew --prefix lld)/bin" | ||
| test -x "$lld_bin/ld64.lld" | ||
| probe="$RUNNER_TEMP/mesh-setup-macos-lld-probe" | ||
| mkdir -p "$probe/src" | ||
| printf '[package]\nname = "mesh-setup-macos-lld-probe"\nversion = "0.0.0"\nedition = "2024"\n' > "$probe/Cargo.toml" | ||
| printf 'fn main() {}\n' > "$probe/src/main.rs" | ||
| PATH="$lld_bin:$PATH" CARGO_ENCODED_RUSTFLAGS='-Clink-arg=-fuse-ld=lld' \ | ||
| cargo rustc --quiet --manifest-path "$probe/Cargo.toml" | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| echo "$lld_bin" >> "$GITHUB_PATH" | ||
| # Job-global via GITHUB_ENV, and cargo prefers CARGO_ENCODED_RUSTFLAGS | ||
| # over RUSTFLAGS -- any later step in the same job that sets RUSTFLAGS | ||
| # is silently ignored, and any macOS job that cross-builds an android | ||
| # target loses .cargo/config.toml's -Wl,-z,max-page-size=16384 for | ||
| # that job. Verified safe today: no other RUSTFLAGS setter and no | ||
| # android targets on any of this action's macOS call sites. | ||
| echo 'CARGO_ENCODED_RUSTFLAGS=-Clink-arg=-fuse-ld=lld' >> "$GITHUB_ENV" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,7 @@ on: | |
|
|
||
| permissions: | ||
| contents: read | ||
| packages: read | ||
|
|
||
| jobs: | ||
| core: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ on: | |
|
|
||
| permissions: | ||
| contents: read | ||
| packages: read | ||
|
|
||
| jobs: | ||
| metal_model_load: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.