Skip to content

docs(issues): [#2525] record the approved sandbox plan for T4 and T5 - #2597

Merged
josecelano merged 1 commit into
torrust:developfrom
josecelano:2525-sandbox-plan
Oct 21, 2026
Merged

josecelano merged 1 commit into
torrust:developfrom
josecelano:2525-sandbox-plan

Conversation

@josecelano

Copy link
Copy Markdown
Member

Related to #2525

Summary

Records, in the specification of #2525, the sandbox plan for the two decision gates T4 (gate cost and check-run superseding) and T5 (cross-run state for the maintainer override), as approved by the maintainer on 2026-10-21. The plan is documentation only; it changes no code, workflow, or ruleset, and no experiment has run yet.

  • Sandbox: a throwaway sandbox in the fork, like the Stop requiring pull-request rebases and reconcile repository rulesets #2507 sandbox: exp-2525-* branches, a ruleset scoped to the base branch requiring CI gate, workflows that never reach upstream, and a recorded cleanup. The fork was checked first and is clean.
  • T4: E1 measures the runner time the gate adds to a documentation-only pull request for three variants (cold build, Rust cache, prebuilt binary), at least 10 runs each, against the baseline from docs(issues): [#2525] record the before-baseline of the pull-request CI runner time #2590 (Docs Lint median 0.85 minutes). E2 checks, with a real merge push, whether a later check run named CI gate supersedes an earlier one in both orders, and what two workflows with the same job name do.
  • T5: candidates for where the gate reads earlier results, who applied the label, token permissions, and whether an override survives a push (recommended: it does not), each to be proved with hosted runs.
  • Decisions of the maintainer: T4 runs first and its numbers are approved, including the bound for AC6, before T5 starts. The read-only token of a fork pull request cannot be reproduced inside the fork, so T5(c) relies on GitHub's documented behavior and is verified on real upstream pull requests when T6 lands.

Files

  • docs/issues/open/2525-ci-gate-required-check/ISSUE.md (new section "Sandbox Plan for T4 and T5", and the progress log)

…and T5

Record the sandbox set-up and cleanup, the gate-cost and check-run-superseding experiments of T4, the four design questions of T5 with the candidates to test, and the maintainer's decisions of 2026-10-21: T4 runs first and its numbers are approved before T5, and the read-only fork-pull-request token is verified on real pull requests when T6 lands.

Co-authored-by: Copilot <[email protected]>
@josecelano
josecelano requested review from da2ce7 and a balanced review from Copilot October 21, 2026 09:12
@josecelano josecelano self-assigned this Oct 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The documentation matches the stated scope and existing plan, with no unresolved findings.

No open issues 🎉

What changed in this PR

Records the maintainer-approved sandbox plan for #2525’s required CI gate. This is documentation only; no workflows, code, or rulesets change.

Changes:

  • Defines T4 experiments for gate cost and check-run superseding.
  • Outlines T5 override-state and token-permission validation.
  • Records approval sequencing, cleanup requirements, and progress.
File Description
docs/​issues/​open/​2525-ci-gate-required-check/​ISSUE.md Adds the T4/T5 sandbox plan and approval record.

Review effort: Balanced

@josecelano

Copy link
Copy Markdown
Member Author

ACK 0ebb431

@josecelano
josecelano merged commit b5894fb into torrust:develop Oct 21, 2026
1 check passed
josecelano added a commit that referenced this pull request Oct 21, 2026
… the gate cost and check-run superseding

8efbf8c docs(issues): [#2525] record the T4 results and the pending approval in the specification (Jose Celano)
d2a5339 docs(issues): [#2525] record the T4 sandbox evidence for the gate cost and check-run superseding (Jose Celano)

Pull request description:

  Related to #2525

  ## Summary

  Evidence of the sandbox runs of task T4 of #2525, following the plan approved in #2597: the runner time that the CI gate adds to a documentation-only pull request, and how a ruleset that requires `CI gate` treats several check runs of that name. The sandbox was a throwaway in the fork and has been deleted; nothing in this pull request changes code, a workflow, or a ruleset of this repository. T4 stays `IN_PROGRESS` until the maintainer approves the approach and a bound for AC6.

  ## Results

  **E1, gate cost.** One commit rerun 12 times, five jobs per attempt (60 jobs, all succeeded), each job one way of getting the `ci-gate` binary, next to the steps of the real `Docs Lint` job. Median runner minutes per job over attempts 2 to 12:

  - cold `cargo build --release -p ci-gate`: 0.40
  - the same with the Rust cache: 0.37 (no benefit, there is little to cache)
  - binary restored from a cache: 0.13
  - binary downloaded from a release asset: 0.12
  - `Docs Lint` reference: 1.02 (the baseline median is 0.85)

  The gate needs two tool runs, `classify` before the heavy jobs and `verdict` after them, so a documentation-only head would cost about 0.8 minutes with cold builds and about 0.25 with a prebuilt binary.

  **E2, check-run superseding** (a ruleset requiring `CI gate`, real signed merge pushes):

  - a later passing run overrides an earlier failing one for the same commit, and a later failing run overrides an earlier passing one, when they come from the same job of one workflow (so a `labeled` run can turn a failing `CI gate` into a passing one, and `unlabeled` back);
  - with two workflows that each define a job named `CI gate`, one failing blocks the merge although the other passes, so the gate must be one workflow with one job;
  - `statusCheckRollup` stays `FAILURE` after a later pass, so it cannot decide mergeability; the ruleset decides.

  ## Limits

  - One commit rerun in a fork, so cache behavior across different pull requests was not measured, and the `gate-binary-cache` key includes `Cargo.lock`, so it misses after every dependency update.
  - Only job minutes were measured, not wall-clock time.
  - The fork's default workflow permission is `write` and upstream's is `read`, so the sandbox says nothing about upstream's default token; T5(c) relies on GitHub's documentation and is verified on real pull requests when T6 lands.
  - A later passing run from a different workflow than the failing one was not tested; the design avoids needing it.

  ## Files

  - `docs/issues/open/2525-ci-gate-required-check/manual-verification-evidence.md` (V8 and V9)
  - `docs/issues/open/2525-ci-gate-required-check/evidence/` (`t4-gate-cost-runs.csv`, `t4-check-run-superseding.txt`, and `t4-sandbox/` with the sandbox workflows and rulesets)
  - `docs/issues/open/2525-ci-gate-required-check/ISSUE.md` (T4 status and progress log)
  - `project-words.txt` (`rollup`)

ACKs for top commit:
  josecelano:
    ACK 8efbf8c

Tree-SHA512: 5f536df006379b1b1cf6b7fd6da2311ef791cdd742a8a395b0ed76156c567ad5ddc01ddb951385a5030cd2964c3b2b4ffd264e8cce3679d19d19b28e6267b56d
@da2ce7

da2ce7 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: It changed one file, the #2525 issue specification, where it recorded a sandbox plan, with no source, manifest or workflow change.

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.

3 participants