Repository navigation
ci: scope direct Linux runner labels to the workflow run - #514
Draft
jonathan308 wants to merge 1 commit into
Draft
jonathan308 wants to merge 1 commit into
jonathan308 wants to merge 1 commit into
Conversation
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Proposed changes
Follow-up to #512. Check the shard map, the Fork Diff Check and Render fork diff request the Linux ARM64 runner label
darkbloom-linux-arm64-run-${{ github.run_id }}. GitHub can assign a queued job to a runner with matching labels, so naming the run prevents a runner started for one of these jobs from taking a job from another run. Jobs with matching labels in the same run remain interchangeable.flowchart LR subgraph Before A["list / analysis-up-to-date / render: run A"] --> R["runner: darkbloom-linux-arm64"] B["same Linux profile: run B"] --> R endflowchart LR subgraph After A["list / analysis-up-to-date / render: run A"] --> P["plane verifies run A"] --> R["runner: darkbloom-linux-arm64-run-A"] B["same Linux profile: run B"] --> S["runner: darkbloom-linux-arm64-run-B"] X["label names a different run"] --> D["plane refuses before runner registration"] endIn the Pages workflow, only
renderrequests this profile; deployment remains onubuntu-latest. Native CodeQL continues to use its separate, opt-in route.Validation. The new regression check fails on the three original labels. All four checks in
test-runner-sizes.pypass on the proposed labels, andactionlintpasses for the three changed workflows. Runner admission tests on the deployed version accept the job's own run ID and reject another run's ID before registering the runner.Rollback. The direct jobs have no hosted fallback. Revert the label and guard changes before rolling back to a plane without run-scoped admission.
Independent review found no blocking issue on
7eb5372f35fd.Checklist
pre-commit run --all-files/ installed pre-commit prior to committing.AI usage