Skip to content

docs(issues): [#2525] record the T4 sandbox evidence for the gate cost and check-run superseding - #2600

Merged
josecelano merged 2 commits into
torrust:developfrom
josecelano:2525-t4-sandbox-evidence
Oct 21, 2026
Merged

josecelano merged 2 commits into
torrust:developfrom
josecelano:2525-t4-sandbox-evidence

Conversation

@josecelano

Copy link
Copy Markdown
Member

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)

josecelano and others added 2 commits October 21, 2026 10:50
…ate cost and check-run superseding

Record experiment E1, the runner time that a gate job adds to a documentation-only change in four ways of getting the binary, from 12 attempts of one run in a fork, and experiment E2, how a ruleset that requires CI gate treats several check runs of that name, with real merge pushes. Save the per-job data, the sandbox workflows and rulesets, and the observations, because the sandbox was deleted afterwards, and add rollup to the dictionary.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 21, 2026 09:55
@josecelano
josecelano requested a review from da2ce7 October 21, 2026 09:55
@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 evidence supports the documented results, no blocking issues remain, and the changes do not alter operational behavior.

No open issues 🎉

What changed in this PR

Records T4 sandbox evidence for #2525’s proposed required CI gate without changing active workflows, rulesets, or application code.

Changes:

  • Records gate-cost measurements and check-run superseding observations.
  • Preserves raw results, sandbox workflows, and rulesets.
  • Keeps T4 in progress pending maintainer approval of the approach and cost bound.
File Description
project-words.txt Adds rollup to the dictionary.
docs/​issues/​open/​2525-ci-gate-required-check/​manual-verification-evidence.md Documents results, limitations, and cleanup.
docs/​issues/​open/​2525-ci-gate-required-check/​ISSUE.md Updates T4 status and progress.
docs/​issues/​open/​2525-ci-gate-required-check/​evidence/​t4-sandbox/​sandbox-ruleset-e2s.json Preserves the single-workflow test ruleset.
docs/​issues/​open/​2525-ci-gate-required-check/​evidence/​t4-sandbox/​sandbox-ruleset-e2.json Preserves the two-workflow test ruleset.
docs/​issues/​open/​2525-ci-gate-required-check/​evidence/​t4-sandbox/​exp-2525-second-gate-e2.yaml Preserves the duplicate-name gate experiment.
docs/​issues/​open/​2525-ci-gate-required-check/​evidence/​t4-sandbox/​exp-2525-publish-binary.yaml Records sandbox binary publication.
docs/​issues/​open/​2525-ci-gate-required-check/​evidence/​t4-sandbox/​exp-2525-gate-e2s.yaml Records the single-workflow superseding test.
docs/​issues/​open/​2525-ci-gate-required-check/​evidence/​t4-sandbox/​exp-2525-gate-e2.yaml Records the primary two-workflow test gate.
docs/​issues/​open/​2525-ci-gate-required-check/​evidence/​t4-sandbox/​exp-2525-gate-cost.yaml Preserves the cost-comparison workflow.
docs/​issues/​open/​2525-ci-gate-required-check/​evidence/​t4-gate-cost-runs.csv Stores measurements for all 60 jobs.
docs/​issues/​open/​2525-ci-gate-required-check/​evidence/​t4-check-run-superseding.txt Stores check observations and merge-push outcomes.

Review effort: Balanced

@josecelano

Copy link
Copy Markdown
Member Author

ACK 8efbf8c

@josecelano
josecelano merged commit 4ad183d into torrust:develop Oct 21, 2026
20 checks passed
josecelano added a commit that referenced this pull request Oct 21, 2026
…d the AC6 bound

a252e05 docs(issues): [#2525] record the approved T4 approach and the AC6 bound (Jose Celano)

Pull request description:

  Related to #2525

  ## Summary

  Records the maintainer's approval of task T4 of #2525, given on 2026-10-21 after the sandbox evidence of #2600, and marks T4 done. It is documentation only.

  - **Approach:** both gate jobs (`classify` before the heavy jobs, `verdict` after them) build the tool cold. A prebuilt binary, from a cache or a release asset, is adopted only if a later measurement exceeds the bound.
  - **AC6 bound:** the gate adds at most 1.0 runner minute at the median to a documentation-only pushed head, counting its two tool runs. The sandbox measured about 0.8 minutes with cold builds and about 0.25 with a prebuilt binary, against a `Docs Lint` baseline median of 0.85 minutes.
  - AC6 now states that bound and points to the baseline in `pr-ci-cost-baseline.md`.

  ## Files

  - `docs/issues/open/2525-ci-gate-required-check/ISSUE.md` (T4 row, AC6, progress log)

ACKs for top commit:
  josecelano:
    ACK a252e05

Tree-SHA512: a007f83dd32c99c91d44fa2105c7c045d7679f820bc63d95cf0e17b4cc6d51bb338895e9a2325e28c12c1edf009b81abdcd4ce5c3b57434014174578b8f38a10
@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 added only documentation and evidence for #2525 under docs/issues, including copies of sandbox workflows that are not installed under .github/workflows, and one dictionary word; no source, manifest or active workflow changed.

This branch was previously deployed

1 inactive deployment
coverage — 8efbf8cb Deployed Oct 21, 2026 by josecelano via Generate Coverage Report #2662
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