Skip to content

ci: scope direct Linux runner labels to the workflow run - #514

Draft
jonathan308 wants to merge 1 commit into
mainfrom
ci/scope-direct-linux-run
Draft

jonathan308 wants to merge 1 commit into
mainfrom
ci/scope-direct-linux-run

Conversation

@jonathan308

Copy link
Copy Markdown

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
  end
Loading
flowchart 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"]
  end
Loading

In the Pages workflow, only render requests this profile; deployment remains on ubuntu-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.py pass on the proposed labels, and actionlint passes 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

  • The submitting agent read CONTRIBUTING.md.
  • I have run pre-commit run --all-files / installed pre-commit prior to committing.
  • I have added a regression check.
  • I have updated the documentation.

AI usage

  • I have read this PR description in full and approve it as my own, and it accurately describes the code changes.
  • An AI agent prepared and submitted this draft, including the workflow edits, tests and description.

This branch has not been deployed

No deployments
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