Repository navigation
docs(ci): org-wide runner label contract and the standard fork caller - #226
Conversation
… fork caller The CI fleet is charly-deployed and ORG-scoped, and it registers `ubuntu-latest` (the label the organization's workflows already name, upstream-vendored ones included) plus `opencharly` (the distinct label vars.CI_RUNNER_LABEL and vars.REVIEW_RUNNER_LABEL select). Every repository therefore reuses its existing workflow unchanged; no per-repo runner configuration exists. The README states the two consequences a repo author must know: the blast radius is org-wide by design (an org-scoped runner carrying a hosted label is matched by every repo in the org, which is what makes unmodified workflows work everywhere, narrowed by a runner group if the trade changes), and `windows-latest` / `xcode-27` / `blacksmith-*` are not served and are never faked on Linux. Adds templates/fork-pr-validator.yml. A first-party fork cannot join the org ruleset — the required-workflow rule makes `gh repo sync` fail (#179) — so it carries one caller to the same engine. Shipping it as a template keeps every fork's entry point identical and keeps the policy in this repository. Assisted-by: Claude Code DeepSeek deepseek-v4.1-flash:cloud (documentation reviewed)
tag-on-merge is called by every repository and uses only GitHub Actions plus bash, so one runs-on line moves the whole org's merge-time tagging off GitHub-hosted runners. The README now states what runs where, and names the workloads that cannot move (Windows, macOS, Blacksmith testboxes) or should not yet (candy-validate builds charly per call). Assisted-by: Claude Code DeepSeek deepseek-v4.1-flash:cloud (documentation reviewed)
Review — BLOCKI read all three diffs, both commits, and the (empty) comment thread. The template itself is reasonable, and the Blocks1. The new section states two mutually exclusive things about the same label:
versus, a few lines later in the same section:
These cannot both be true. The PR's own R1 finding #2 ("A self-hosted runner carrying a hosted label does not receive those jobs") supports the paragraph, which means the table row and the "resolves to the fleet / no per-repo edit" bullet are false as written and will mislead repo authors into believing they need no edit when the doc later says they do. The document must pick one truth and remove the contradicting statements (the table's 2. PR body — the "How tested" evidence is stale and the "no runtime change" claim is false.
Required fix: correct the diff-stat to the real three-file change, and update the testing/runtime narrative to acknowledge the workflow Non-blocking notes
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
The section said both that ubuntu-latest 'serves every workflow unchanged' and that a hosted label is never captured by a self-hosted runner. Only the second is true: a job on ubuntu-latest stays on GitHub-hosted runners. The table now names the two labels that actually select the fleet (opencharly-ubuntu, opencharly) and the variable path is stated as the no-edit route. Assisted-by: Claude Code DeepSeek deepseek-v4.1-flash:cloud (documentation reviewed)
Review — BLOCKI re-derived every claim in the body, the three diffs, and the single bot comment against the current head state ( What holds up
Bot comment disposition
Blocks1. The body quotes: The actual change has three files: Required fix: replace the quoted stat with the real three-file change. 2. The body says: "Documentation plus a template file; … No runtime change." But commit Required fix: disclose the 3. The body's Summary states: "The charly fleet registers Required fix: update the Summary to the two labels the README actually documents ( Non-blocking notes
The documentation itself is now sound; the gate fails only because the PR body's evidence and central claim were not updated after Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSI re-derived every claim in the body, the three diffs, and both bot comments against head Diff verification (line by line).github/workflows/tag-on-merge.yml (+1/−1) — single README.md (+58/−0) — the added section is internally consistent: the label table ( templates/fork-pr-validator.yml (+44) — coherent caller: Body honesty
Comment disposition
Non-blocking notes (not gate failures)
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Declares the org-wide CI-runner contract, ships the standard first-party-fork validator caller, and
moves the org's merge-time tagging onto the fleet.
opencharly-ubuntu(selected byvars.CI_RUNNER_LABEL, visibility nowall, and by the Dockerjobs'
vars.CI_DOCKER_RUNNER_LABEL) andopencharly(vars.REVIEW_RUNNER_LABEL, the reviewfleet). A hosted label is not captured: a job on
ubuntu-lateststays on GitHub-hostedrunners even when a self-hosted runner carries that label (measured — the fleet stayed idle).
The variable expression is the no-edit path; a hardcoded hosted label needs a one-line edit.
templates/fork-pr-validator.yml. A first-party fork cannot join the org ruleset — itsrequired-workflow rule makes
gh repo syncfail (opencharly/.github#179) — so it carries onesmall caller to the same engine.
tag-on-merge.ymlnow runs on the fleet (runs-on: ${{ vars.CI_RUNNER_LABEL || 'opencharly' }}).This is a runtime change, not documentation: it moves every repo's merge-time tagging off
GitHub-hosted runners. The workflow uses only GitHub Actions and bash, so the fleet needs no
extra tooling; the
|| 'opencharly'fallback keeps it running if the variable is ever invisible,and the fleet carries that label.
Root cause / finding (R1)
scripts/lib-org.shcomputes the exclude set fromisFork), and while the ruleset targets a fork theworkflowsrule refusesgh repo sync(
Required workflow 'charly/pr-validator, charly/pr-validator' is not satisfied). A fork needs acaller; shipping it as a reviewed template stops each fork inventing its own.
dispatched CI run put every
ubuntu-latestjob on GitHub-hosted runners while the fleet idled.CI_RUNNER_LABELhadvisibility: private, so public repositories never saw it and fellback to a YAML default. It is now
all, valueopencharly-ubuntu.How tested
The
tag-on-mergechange is exercised by every merge in the org; its runner selection is the samevars.CI_RUNNER_LABELexpression the org's other fleet workflows use. The template is exercised byopencharly/crabbox#11, whosevalidate / validateexecutes it.Rulebook compliance
tag-on-mergeexecutes on the fleet at the next merge; the caller is exercised by crabbox#11.Filed issues
opencharly/.github#179— the fork posture this template answers.Agent: claude-code-crabbox-ci · Assisted-by: Claude Code DeepSeek deepseek-v4.1-flash:cloud (documentation reviewed)