Skip to content

ci: the timeout guard names itself in its first 400 bytes — the validate lane's fetch check can pass - #3087

Merged
rbuergi merged 1 commit into
mainfrom
ci/timeout-guard-names-itself-in-its-head
Sep 2, 2026
Merged

rbuergi merged 1 commit into
mainfrom
ci/timeout-guard-names-itself-in-its-head

Conversation

@rbuergi

@rbuergi rbuergi commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Found by the Reinsurance CI pilot (Reinsurance #144, run 33616233487): node-repo-validate.yml fetches check-workflow-timeouts.py at platform-ref and refuses a body whose first 400 bytes do not contain check-workflow-timeouts — the same check compile-check.py passes because it names itself on line 2. The guard named itself only at byte 2032, so every satellite adopting the validate lane at a pin ≥ #3067 went red at the fetch step, before checking anything. The docstring now opens with the name and says why the position is load-bearing.

Verification: --self-test 12/12 + no-workflows case; --root . → 0 violations; the name is at byte 3.

Internal CI fix → no What's New.

🤖 Generated with Claude Code

https://claude.ai/code/session_01G4xPnGYEbdu8AVvR5jytyj

…ate lane's fetch check can pass

node-repo-validate.yml fetches check-workflow-timeouts.py at platform-ref and refuses a body whose first
400 bytes do not contain 'check-workflow-timeouts' (the same check compile-check.py passes because it names
itself on line 2). The guard's docstring named itself only at byte 2032, so every satellite adopting the
validate lane at a pin >= #3067 went RED at the fetch step before checking anything (Reinsurance #144,
run 33616233487). The first docstring line now carries the name, and says why it must.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 2, 2026 09:54
@rbuergi
rbuergi enabled auto-merge September 2, 2026 09:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is a minimal, verified docstring adjustment that directly fixes the validate-lane fetch check without affecting guard logic.

Pull request overview

Updates the workflow-timeout CI guard’s module docstring so node-repo-validate.yml’s “first 400 bytes must name the script” fetch sanity-check reliably recognizes the fetched check-workflow-timeouts.py at platform-ref, preventing false-red failures in satellite repos.

Changes:

  • Move the script name (check-workflow-timeouts.py) to the very first docstring line so it appears in the first 400 bytes.
  • Document why this placement is load-bearing (mirrors the existing compile-check.py fetch check pattern).
File summaries
File Description
.github/scripts/check-workflow-timeouts.py Prepends the script name to the docstring so validate-lane fetch verification passes and the guard can run.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 3)

616 tests  ±0   616 ✅ ±0   50s ⏱️ ±0s
  2 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit 98c46b6. ± Comparison against base commit 2f4930d.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 1)

430 tests  ±0   430 ✅ ±0   55s ⏱️ -1s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 98c46b6. ± Comparison against base commit 2f4930d.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 0)

234 tests  ±0   234 ✅ ±0   2m 17s ⏱️ +25s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 98c46b6. ± Comparison against base commit 2f4930d.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 4)

1 797 tests  ±0   1 797 ✅ ±0   1m 51s ⏱️ -3s
    3 suites ±0       0 💤 ±0 
    3 files   ±0       0 ❌ ±0 

Results for commit 98c46b6. ± Comparison against base commit 2f4930d.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 2)

561 tests  ±0   559 ✅ ±0   2m 49s ⏱️ ±0s
  4 suites ±0     2 💤 ±0 
  4 files   ±0     0 ❌ ±0 

Results for commit 98c46b6. ± Comparison against base commit 2f4930d.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 5)

    3 files  ±0      3 suites  ±0   1m 9s ⏱️ ±0s
1 227 tests ±0  1 035 ✅ ±0  192 💤 ±0  0 ❌ ±0 
1 228 runs  ±0  1 036 ✅ ±0  192 💤 ±0  0 ❌ ±0 

Results for commit 98c46b6. ± Comparison against base commit 2f4930d.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Test Results

   14 files  ±0     14 suites  ±0   9m 52s ⏱️ +19s
4 865 tests ±0  4 671 ✅ ±0  194 💤 ±0  0 ❌ ±0 
4 866 runs  ±0  4 672 ✅ ±0  194 💤 ±0  0 ❌ ±0 

Results for commit 98c46b6. ± Comparison against base commit 2f4930d.

@rbuergi
rbuergi merged commit 93751e4 into main Sep 2, 2026
27 checks passed
@rbuergi
rbuergi deleted the ci/timeout-guard-names-itself-in-its-head branch October 10, 2026 13:09
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.

2 participants