Skip to content

docs(rfcs): default every CI lane to SMALL in site-agnostic ADR - #1923

Merged
gerchowl merged 2 commits into
devfrom
feature/1908-adr-small-default
Oct 27, 2026
Merged

gerchowl merged 2 commits into
devfrom
feature/1908-adr-small-default

Conversation

@gerchowl

Copy link
Copy Markdown
Contributor

Description

Amends the accepted docs/rfcs/ADR-site-agnostic-projects.md so the default lane map puts every lane on SMALL. LARGE and XLARGE have no default lane and are reachable only through the already-accepted DEVKIT_CI_LANE_SIZES override (decision (b)-1, unchanged). Owner decision of 2026-10-26.

Why: self-hosted pools usually hold far fewer large runners than small ones (e.g. SMALL ≤ 4–6, LARGE ≤ 2, XLARGE ≤ 1 per org). With lint, test, extension and release-test on LARGE, one PR fills every LARGE slot while a second PR queues and the small slots sit idle. Dev-shell realisation is mostly a binary-cache substitution, so those lanes are light.

Type of Change

  • docs -- Documentation only

Changes Made

  • §5: single SMALL row for all lanes; LARGE/XLARGE rows are override-only; rationale paragraph replaces the "both are LARGE" sentence.
  • §4: legend and every target cell that said L now says S; seeded-hook paragraph reworded.
  • §3: seeded-hook direct expression reads CI_RUNNER_SMALL; required classes are exactly the classes the effective lane map uses (this is what (c)-1's "inert" test depends on); example runners JSON; runner-json alias follows runners.small.
  • §1: variable table, TL;DR, whitespace rules; CI_RUNNER_* is canonically one label (a comma or JSON list is an ::error::, as the ADR already specified; only the legacy DEVKIT_CI_RUNNER key is comma-split).
  • Decisions: new Amendments entry (2026-10-26, owner); (b)-1 text; (c)-1 required classes; (d)-1 rewrite target is now the SMALL expression, so a reconciled hook agrees with "every lane SMALL".
  • Implementation: S1b, S1d and S2 acceptance criteria updated.

Docs only, one file.

Changelog Entry

No changelog needed: the earlier docs/rfcs/ ADR PRs carried none, and this changes no shipped behaviour.

Testing

  • Pre-commit hooks pass (run in nix develop); commit-message validation passed.
  • No code or tests touched.

Grep proof: grep -n "LARGE\|XLARGE" docs/rfcs/ADR-site-agnostic-projects.md

Line(s) Why it agrees with the SMALL default
17 TL;DR names the three variables; line 19 adds that every lane defaults to SMALL
19–20 states the default and that LARGE/XLARGE are opt-in via DEVKIT_CI_LANE_SIZES
95 historical owner test expression in the Evidence section; not a default
131–132 variable table: LARGE/XLARGE serve only lanes a project moves there; no default lane
155 whitespace rule: LARGE/XLARGE are read by no direct expression, only by opted-in lanes
285 example shows an opt-in (test=large)
326–331 required classes = classes the effective lane map uses; LARGE only under an override
384 inventory legend: S is the default of every lane; LARGE/XLARGE are override targets
471–472 §5 table: LARGE and XLARGE have no default lane
476–481 §5 rationale (generic pool numbers)
538 init-workspace.sh reads all three variables from the environment; a read, not a default
599 N+2 tombstone text lists the variable family; "Unset here: " is computed from the required classes
803–808 Amendments entry: records the old map, the reason and the effect
848 (b)-2 rejected option: XLARGE unreachable without an override; still true
864 (c)-1: LARGE/XLARGE required only through an override
892 (d)-1: rewrite target is SMALL, not LARGE
1071–1073, 1078 S1d acceptance: default map needs only SMALL; LARGE notices only under an override
1087–1088, 1100, 1102 S1b acceptance: only override-named classes become required; unused set classes are ignored

Checklist

  • I have performed a self-review of my changes
  • I have updated the documentation accordingly

Additional Notes

Decision for the architect: the deprecated runner-json alias (releases N, N+1) now follows runners.small, since SMALL is every lane's default class. Legacy-key consumers see no change (one pool for all classes).

Refs: #1908

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