Skip to content

fix(release): train throttle reads candidate publication time, not commit time - #11383

Merged
kodjima33 merged 1 commit into
mainfrom
kodjima33/train-throttle-clock
Aug 10, 2026
Merged

kodjima33 merged 1 commit into
mainfrom
kodjima33/train-throttle-clock

Conversation

@kodjima33

@kodjima33 kodjima33 commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Cross-review of #11381 caught a real defect: the hourly-train throttle read git log --format=%ct <tag> — the tagged COMMIT's time — and candidate tags are lightweight, so a tag pushed minutes ago onto an older commit looked hours old and bypassed the throttle.

The throttle clock is now the candidate release's createdAt (the authoritative publication time, from gh release view). A tag with no release deliberately stands aside: in-flight builds are owned by the one-active-release fence, and a failed build is exactly what the train should replace. The deferral check also moved ahead of the diff scan.

Product invariants affected

  • INV-BETA-1

Verification

  • test_plan_desktop_release.py 25/25 — new regression test constructs a fresh release on an old commit and asserts tag_age_seconds (commit time) is never consulted; a second test covers the no-release stand-aside.

Failure-Class: none

Review in cubic

…mmit time

Candidate tags are lightweight: git log --format=%ct on the tag answers with
the tagged COMMIT time, so a tag pushed minutes ago onto an older commit
looked hours old and defeated --min-tag-interval-seconds entirely (caught in
cross-review of #11381). The throttle clock is now the GitHub release
createdAt; a tag with no release stands aside (active-build fence owns the
in-flight case, and a failed build should be replaced). Deferral also moved
ahead of the diff scan.

Verified: test_plan_desktop_release.py 25/25, including a regression test
with a fresh release on an old commit asserting commit time is never
consulted, and a no-release stand-aside test.

Failure-Class: none
@kodjima33
kodjima33 merged commit 2c95187 into main Aug 10, 2026
8 of 9 checks passed
@kodjima33
kodjima33 deleted the kodjima33/train-throttle-clock branch August 10, 2026 21:16
kodjima33 added a commit that referenced this pull request Aug 10, 2026
Cross-review caught that `desktop/macos/AGENTS.md` → Release Pipeline
still described the retired per-merge `push` trigger + 15-min backstop.
Updated to the hourly-train reality shipped in #11381/#11383: hourly
schedule + immediate manual dispatch, publication-time throttle
(`--min-tag-interval-seconds 3300`, lightweight-tag caveat), and the
newest-green-SHA fallback for a red tip. Docs-only.
Git-on-my-level pushed a commit to Git-on-my-level/omi that referenced this pull request Aug 10, 2026
The guide still described the retired per-merge push trigger and 15-min
backstop; desktop_auto_release.yml is now an hourly schedule plus immediate
manual dispatch, throttled by candidate-release publication time, with the
green-SHA fallback (BasedHardware#11381/BasedHardware#11383). Docs move with the code.
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