Skip to content

ci(release): skip the 16-minute repeat Verify for already-verified trees and check the Flux rollout - #19

Merged
beastyrabbit merged 9 commits into
mainfrom
ci/release-reuses-verify
Oct 23, 2026
Merged

beastyrabbit merged 9 commits into
mainfrom
ci/release-reuses-verify

Conversation

@beastyrabbit

Copy link
Copy Markdown
Owner

Note

🤖 Claude Opus 5.5 responding on behalf of beastyrabbit

Why

Every release ran the whole Verify suite again, even when the exact same code had just passed it on the PR. For v0.9.0 the PR run and the tag run tested the identical git tree, and the repeat cost 16 minutes. Nothing also told us whether Flux had actually rolled the new version out to moddrop.live.

What changes

Releases reuse an earlier Verify result, but only with proof. After the full suite passes, a separate job that runs no repository code records the tested commit and tree as a small artifact. When a tag is pushed, a new gate job looks for that artifact and reuses it only if:

  • it comes from a completed, successful verify.yml run in this repository (fork runs are rejected),
  • GitHub's own record of that run's head commit has exactly the release's tree, and
  • the artifact has not expired and its contents match.

The artifact is only an index. The binding comes from GitHub's commit record, which code on a branch cannot write. Ancestry is never enough. In every other case, including any gate error, the release runs the full Verify exactly as before, and the gate logs why. Image builds still run on every release. Publishing happens only when the proof was reused or the full Verify passed, and never after a cancellation. A test checks every combination of job results.

The backend reports its version. GET /canvas-api/version returns { "release": "moddrop@x.y.z" } with Cache-Control: no-store. It answers on standby replicas too.

Tag releases check the rollout. A new smoke job polls /telemetry-config and /canvas-api/version every 20 seconds until both report the tag's version, then checks / and /canvas-api/ready. A newer version on either side counts as "superseded" and the job passes. It gives up after 30 minutes and reports what each endpoint last returned.

Verification

  • Full scripts/verify.sh against a disposable PostgreSQL: lint, format, typechecks, 282 frontend and 85 backend tests (DB-backed included), builds, runtime config and 19 Playwright tests.
  • actionlint is clean. The 111 script tests cover proof matches and mismatches, failed, cancelled and fork runs, fallbacks, publish gating, and the rollout poller (old, expected, newer, mixed, malformed, 404-then-expected and timeout).
  • Against the live API, PR release: prepare v0.9.0 #17's head commit has tree d951fb47, the same as the v0.9.0 release, so that release would have reused its PR result.
  • An independent review (Claude Opus 5.5) of the implementation (Codex GPT-6.1 Sol) took four rounds. Each round tightened how the proof is tied to the release tree. The last round found nothing.

The gate and smoke job have not yet run against the real runner and moddrop.live. The next tag will be their first run.

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-23T02:21:49.546710Z b937693 Manual request
🔒 Security Review ✅ Completed 2026-10-23T00:51:47.919593Z fc7cb42 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fc7cb42cb1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/rollout-smoke.ts Resolved
Comment thread .github/workflows/verify.yml Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 38f6ad0a68

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/rollout-smoke.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0c5c68c73c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/verify-proof.ts Resolved
@sonarqube-skyway-gmbh

Copy link
Copy Markdown

@beastyrabbit

Copy link
Copy Markdown
Owner Author

Note

🤖 Claude Opus 5.5 responding on behalf of beastyrabbit

@codex review

The code review of b937693 has shown "Running" since 01:22 UTC (about an hour) without finishing. Please review the current head again.

@beastyrabbit
beastyrabbit merged commit 783b7fa into main Oct 23, 2026
4 checks passed
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