Repository navigation
[3713 by Claude Opus 5.5] Release rollout check: one command and one workflow summary that say where a release is live - #3717
Conversation
…fy-release-rollout.mjs`). It checks every place a release should reach, using only public reads with no credentials, and prints one `ok` / `missing` / `stale` line per target. The new tests and the existing hosted-UI, release-validation and CI tests pass (169 of 169), and `release:verify` still passes for v0.9.2. Run against the real v0.9.2 today, it shows what was invisible before: ``` missing github-release v0.9.2 published 2026-11-18T09:23:29Z; no checked-in summary release-notes/v0.9.2.md … ok docker:propr/app propr/app:0.9.2 sha256:f7dee34f4af7… = latest (ui, docs, agent: ok too) ok npm:propr-cli propr-cli@latest is 0.9.2 stale hosted-ui /assets/index-CQeUwGlO.js does not contain "0.9.2" missing demo GET https://demo.propr.dev/api/status returned HTTP 502 ok desktop:linux desktop-linux-preview-v0.9.2-60792554ba3a-all-signed with 7 expected files ok desktop:macos desktop-macos-preview-v0.9.2-60792554ba3a with 6 expected files ok site:whats-new https://propr.dev/whats-new/0.9.2/ HTTP 200 stale site:download links desktop-linux-preview-v0.9.1-…-all-signed, not desktop-linux-preview-v0.9.2-*-all-signed; … ``` - `github-release` is `missing` only because the summary file doesn't exist on this base. The issue doesn't say where the "checked-in summary" lives. I used `release-notes/v<version>.md`, the path from the unmerged #3701 work. The script reads it from the release tag, or from the local checkout if the tag has none. If #3701 settles on a different path, it's one field in the target table. - The demo is returning HTTP 502 right now, so I couldn't confirm what it reports when up. The check reads the `version` field, which comes from the `/api/status` code in this repo. - The download page is `https://propr.dev/desktop/`. The issue doesn't give the URL; that page is the one with the desktop download links. It still links the 0.9.1 builds. How it behaves: - It exits 0 only when every target is `ok`, 1 otherwise, and 2 for a bad argument. `--json` prints the same results, and `v0.9.2` is accepted as well as `0.9.2`. - In GitHub Actions it also writes a results table to the run summary. That's the "workflow summary" part of the title: I didn't add a workflow that runs it, since #3716 plans one. - A network or HTTP failure shows as `missing` with the reason, not a crash. GitHub allows 60 unauthenticated API reads an hour per IP, so a rate-limited read shows as `missing` with "HTTP 403 (GitHub API rate limit?)". - Targets are one table (`TARGETS` in the script), so adding a destination is one entry using one of the eight check kinds in `scripts/lib/release-rollout/run.mjs`. The shared bundle check now lives in `scripts/lib/hosted-ui-bundle.mjs`. `scripts/verify-hosted-ui-release.mjs` re-exports it, so the deploy workflow and its tests are unchanged. Tests: `test/releaseRollout.test.mjs` covers ok, missing and stale for every target kind with mocked HTTP, plus the command itself (exit codes, `--json`, the run summary, and that no request carries credentials). I added it to `test:unit`. Docs: No document described `release:verify` on this base. I added a "Releases" section to `.github/CONTRIBUTING.md` with the rollout check as the last step and a table of what each target checks. #3701 adds a "Releases" section in the same place, so expect a small merge conflict there. I also mentioned the shared check in `docs/docs/operations/hosted-ui-release.md` and added an Unreleased entry to `CHANGELOG.md`. There are no visual previews, because this is a command-line check with no UI change.
|
/ultrafix goal=8 max=3 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 3) First action:
|
|
✅ AI Code Review Complete requested by @propr-dev[bot] Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds a focused, data-driven rollout checker covering public release destinations. It needs a localized correctness fix before merge. ✅ Shared verification — The hosted UI extraction preserves the existing bundle-selection, version-matching, and cache-bypass behavior. ✅ Isolated target failures — Target exceptions become individual results, allowing the remaining checks to complete. ✅ Useful coverage — Mocked tests cover target outcomes, CLI exit codes, JSON output, and Actions summaries. This review is based on static inspection only; no commands were run. Current-head checks are all neutral/skipped, so they provide no passing validation. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Preserve summary lookup failures
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Expose release search limits
S2: 🟢 Restore the license headingThe contribution guide replaces ScoreThe implementation is well scoped and has useful mocked coverage, but its summary fallback can incorrectly certify a release during an HTTP failure. The correction is localized; current-head checks provide no additional validation. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 0c4d5d6
Summary of ChangesI fixed F1. The release check now uses the local summary file only when the release tag has no summary (HTTP 404). Before, any failed read of the summary at the tag fell back to the local file, so a GitHub 503 could still produce an Fix ( Regression test ( Verification: all 33 tests in Siblings checked: no other check in the PR uses a local copy in place of a failed read. The other read failures all already report a non- Separate discovery (not changed, outside F1): in Review digestRisk-tiered paths
Diff size: 2 files changed, +23/−1 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…le only when the release tag has no summary (HTTP 404). Before, any failed read of the summary at the tag fell back to the local file, so a GitHub 503 could still produce an `ok`. I fixed F1. The release check now uses the local summary file only when the release tag has no summary (HTTP 404). Before, any failed read of the summary at the tag fell back to the local file, so a GitHub 503 could still produce an `ok`. **Fix** (`scripts/lib/release-rollout/github.mjs`): `readSummary` still falls back to the local checkout on a 404. Any other failed read now makes `github-release` report `missing` with the HTTP reason, for example `release-notes/v0.9.2.md at v0.9.2 returned HTTP 503`. A 403 or 429 also carries the existing "(GitHub API rate limit?)" hint. **Regression test** (`test/releaseRollout.test.mjs`): the summary read at the tag returns HTTP 503. The local file and the start of the published release body both hold the revised summary, which is the case that used to pass as `ok`. The test checks that the result is `missing`, that the reason names HTTP 503, and that the local file is never read. **Verification:** all 33 tests in `test/releaseRollout.test.mjs` pass and ESLint is clean on both files. With the original `github.mjs` put back, the new test fails and the other 32 pass, so it does catch the old behaviour. **Siblings checked:** no other check in the PR uses a local copy in place of a failed read. The other read failures all already report a non-`ok` status. **Separate discovery (not changed, outside F1):** in `scripts/lib/release-rollout/registries.mjs:41`, when npm's `latest` is not the release version and reading that version fails for any reason, the check reports "`<pkg>@<version>` is not published". A 503 would therefore show up as "not published" instead of the HTTP error. It still reports `missing`, so it can't cause a false success; only the message is wrong. PR: #3717 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds a readable, data-driven rollout checker with useful diagnostics and focused tests. It needs a localized correctness fix before merge: the download-page check can accept prerelease links as evidence that the stable release is live. ✅ Failure isolation — Individual target failures become diagnostic results without preventing other targets from completing. ✅ Shared verification — The hosted-UI extraction preserves the existing entry-bundle and version checks while reusing them for rollout verification. ✅ Command coverage — Added tests cover exit codes, JSON output, workflow summaries, and requests without authorization headers. The supplied current-head status shows 23 passed checks, no failures, and one pending check. This review used static inspection only, as requested. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F2: 🔴 Reject prerelease links for stable releases
SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Restore the License headingThe change to S4: 🟢 Explain release-history exhaustion
ScoreThe implementation is focused and well tested, with no reported failing checks. One false-positive path in the release verification needs correction before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit e4ed074
Summary of ChangesI fixed F2. With The fix: I added one shared matcher, Same problem in a sibling check: Tests: I added two regressions to
All 35 tests in that file pass and eslint is clean. I also ran the suite against the previous I found nothing else that needs reporting separately. Review digestRisk-tiered paths
Diff size: 3 files changed, +36/−3 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…nks `desktop-linux-preview-v0.9.2-rc.1-60792554ba3a-all-signed` and `desktop-macos-preview-v0.9.2-rc.1-60792554ba3a` now reports `stale` instead of `ok`. I fixed F2. With `--version 0.9.2`, a download page that links `desktop-linux-preview-v0.9.2-rc.1-60792554ba3a-all-signed` and `desktop-macos-preview-v0.9.2-rc.1-60792554ba3a` now reports `stale` instead of `ok`. **The fix:** I added one shared matcher, `isVersionTag` in `scripts/lib/release-rollout/github.mjs`. It accepts a tag only if it has exactly the shape the desktop release scripts produce: the prefix with the version, then a 12-character hex source revision, then the suffix. In `v0.9.2-rc.1-60792554ba3a`, the text `rc.1-…` after the version is not a revision, so the tag no longer matches. `checkPageLinks` in `web.mjs` now uses this matcher instead of the loose prefix/suffix check. **Same problem in a sibling check:** `checkDesktopPrerelease` (the `desktop:linux` and `desktop:macos` targets) picked release tags with the same loose match. In practice the file-name check would usually catch a release candidate, because its files carry the rc version. But the tag choice itself was wrong, so it now uses the shared matcher too. **Tests:** I added two regressions to `test/releaseRollout.test.mjs`: - **Download page:** with both rc tags from the finding, the result is `stale` and the message names both rc links. - **Desktop pre-releases:** with only rc-tagged releases (even with stable-named files attached), both targets report `missing`. All 35 tests in that file pass and eslint is clean. I also ran the suite against the previous `web.mjs` and `github.mjs`: exactly those two new tests fail there. I found nothing else that needs reporting separately. PR: #3717 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds a focused, read-only rollout checker with a declarative target list, consistent reporting, and substantial mocked coverage. It is merge-ready within the supplied scope, conditional on the two pending checks completing successfully. This review used static analysis only; no commands were run. ✅ Preserved deployment verification — The shared bundle helper retains entry-module selection, same-origin validation, cache bypass, and quoted-version matching while preserving the existing exports. ✅ Isolated target failures — Each target’s request or parsing failure becomes a diagnostic result rather than preventing other targets from reporting. ✅ Precise desktop version matching — The tag matcher requires the twelve-character revision and appropriate suffix, preventing release-candidate tags from satisfying a stable-version check. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S5: 🟢 Tighten download-link extraction
S6: 🟢 Restore the License headingThe change to ScoreThe implementation is cohesive, preserves the existing hosted-UI verification contract, and includes useful success and failure coverage. The authoritative checks report no failures, with two still pending; runtime behavior was not independently exercised during this review. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
… call, and skip any label the PR already has. But I couldn't find a second labelling call in ProPR's code for the normal case, so this may not stop the duplicates you're seeing. What the PR timelines show. I checked the last 80 PRs and 23 have `AI` added twice, in two patterns: - Older PRs (#3579–#3711): `AI` and `llm-*` appear twice, 0–1 s apart. ProPR's retry waits at least 2 s, so a retry can't explain this. - Newer PRs (#3712, #3717): `AI`, `ultrafix` and `llm-*` all appear again 2 s after `ultrafix` is added. No ProPR code adds those three together, and `ultrafix` was already on the PR. Normal creation makes a single label call. The labels were already in place when the second set appeared. That suggests GitHub may record labels again on a PR it is still setting up, which ProPR can't prevent. I couldn't test that without making real PRs. Code paths that could label twice, now fixed: - Final validation: if a step after creation failed, the run lost track of the PR it had opened. Final validation then found that PR and labelled it again. Validation now records the labels the PR already has (`packages/core/src/utils/prValidation.ts`), so that second call sends nothing. - Creation itself: in `src/jobs/issueJobHelpers.ts`, only the create request is now inside the `try`. Labelling happens once afterwards, so an error after labelling can no longer fall into the "find existing PR" path and label again. - The other paths (existing PR found after a duplicate error, and the API retry in `src/jobs/issueJobPRRetry.ts`) use the same shared helper and skip labels GitHub already lists on the PR. - The shared helper in `src/jobs/pullRequestProcessingLabels.ts` now sends only the missing labels, and makes no call at all when nothing is missing. Tests - A new file, `test/pullRequestCreationLabels.test.ts`, checks that each creation path makes exactly one label call. It also checks that labels already on the PR aren't re-sent, and that a failed label call isn't repeated through the existing-PR fallback. - I added cases to `test/recoveredPullRequestLabels.test.ts` covering final validation and the API retry when the PR already has some or all of its labels. - Against the original `issueJobHelpers.ts`, 2 of the 5 new creation-path tests fail. The single-call tests also pass on the old code, because it already made one call per path. - The suites that touch these files ran 508 tests with 507 passing and 0 failing. Typecheck is clean for the root and core packages, and lint is clean on the changed source files. If the duplicates continue after this ships, the next step is to compare ProPR's worker log for one affected PR with its timeline. Two "Added processing labels" log lines would mean ProPR sent two calls; one would mean the duplicate comes from GitHub. The change isn't visible on screen, so there are no previews.
…hen a PR is created (#3721) What the PR timelines show. I checked the last 80 PRs and 23 have `AI` added twice, in two patterns: - Older PRs (#3579–#3711): `AI` and `llm-*` appear twice, 0–1 s apart. ProPR's retry waits at least 2 s, so a retry can't explain this. - Newer PRs (#3712, #3717): `AI`, `ultrafix` and `llm-*` all appear again 2 s after `ultrafix` is added. No ProPR code adds those three together, and `ultrafix` was already on the PR. Normal creation makes a single label call. The labels were already in place when the second set appeared. That suggests GitHub may record labels again on a PR it is still setting up, which ProPR can't prevent. I couldn't test that without making real PRs. Code paths that could label twice, now fixed: - Final validation: if a step after creation failed, the run lost track of the PR it had opened. Final validation then found that PR and labelled it again. Validation now records the labels the PR already has (`packages/core/src/utils/prValidation.ts`), so that second call sends nothing. - Creation itself: in `src/jobs/issueJobHelpers.ts`, only the create request is now inside the `try`. Labelling happens once afterwards, so an error after labelling can no longer fall into the "find existing PR" path and label again. - The other paths (existing PR found after a duplicate error, and the API retry in `src/jobs/issueJobPRRetry.ts`) use the same shared helper and skip labels GitHub already lists on the PR. - The shared helper in `src/jobs/pullRequestProcessingLabels.ts` now sends only the missing labels, and makes no call at all when nothing is missing. Tests - A new file, `test/pullRequestCreationLabels.test.ts`, checks that each creation path makes exactly one label call. It also checks that labels already on the PR aren't re-sent, and that a failed label call isn't repeated through the existing-PR fallback. - I added cases to `test/recoveredPullRequestLabels.test.ts` covering final validation and the API retry when the PR already has some or all of its labels. - Against the original `issueJobHelpers.ts`, 2 of the 5 new creation-path tests fail. The single-call tests also pass on the old code, because it already made one call per path. - The suites that touch these files ran 508 tests with 507 passing and 0 failing. Typecheck is clean for the root and core packages, and lint is clean on the changed source files. If the duplicates continue after this ships, the next step is to compare ProPR's worker log for one affected PR with its timeline. Two "Added processing labels" log lines would mean ProPR sent two calls; one would mean the duplicate comes from GitHub. The change isn't visible on screen, so there are no previews. Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
AI Implementation Summary
Closes #3713
Branch:
3713/claude-opus-5-5-release-rollout-check-one-20261118-1621-jddCommits: ✅ Changes committed (c352f23)
AI Processing Completed
Execution Details:
Summary:
I added
npm run release:rollout -- --version <x.y.z>(scripts/verify-release-rollout.mjs). It checks every place a release should reach, using only public reads with no credentials, and prints oneok/missing/staleline per target. The new tests and the existing hosted-UI, release-validation and CI tests pass (169 of 169), andrelease:verifystill passes for v0.9.2.Run against the real v0.9.2 today, it shows what was invisible before:
github-releaseismissingonly because the summary file doesn't exist on this base. The issue doesn't say where the "checked-in summary" lives. I usedrelease-notes/v<version>.md, the path from the unmerged Releases: a human-readable summary in every GitHub release, checked in and verified #3701 work. The script reads it from the release tag, or from the local checkout if the tag has none. If Releases: a human-readable summary in every GitHub release, checked in and verified #3701 settles on a different path, it's one field in the target table.versionfield, which comes from the/api/statuscode in this repo.https://propr.dev/desktop/. The issue doesn't give the URL; that page is the one with the desktop download links. It still links the 0.9.1 builds.How it behaves:
ok, 1 otherwise, and 2 for a bad argument.--jsonprints the same results, andv0.9.2is accepted as well as0.9.2.missingwith the reason, not a crash. GitHub allows 60 unauthenticated API reads an hour per IP, so a rate-limited read shows asmissingwith "HTTP 403 (GitHub API rate limit?)".TARGETSin the script), so adding a destination is one entry using one of the eight check kinds inscripts/lib/release-rollout/run.mjs.The shared bundle check now lives in
scripts/lib/hosted-ui-bundle.mjs.scripts/verify-hosted-ui-release.mjsre-exports it, so the deploy workflow and its tests are unchanged.Tests:
test/releaseRollout.test.mjscovers ok, missing and stale for every target kind with mocked HTTP, plus the command itself (exit codes,--json, the run summary, and that no request carries credentials). I added it totest:unit.Docs: No document described
release:verifyon this base. I added a "Releases" section to.github/CONTRIBUTING.mdwith the rollout check as the last step and a table of what each target checks. #3701 adds a "Releases" section in the same place, so expect a small merge conflict there. I also mentioned the shared check indocs/docs/operations/hosted-ui-release.mdand added an Unreleased entry toCHANGELOG.md.There are no visual previews, because this is a command-line check with no UI change.
Review digest
Risk-tiered paths
package.json(+2/−1): dependency manifestscripts/lib/hosted-ui-bundle.mjs(added, +64/−0)scripts/lib/release-rollout/github.mjs(added, +82/−0)scripts/lib/release-rollout/http.mjs(added, +44/−0)scripts/lib/release-rollout/registries.mjs(added, +43/−0)scripts/lib/release-rollout/run.mjs(added, +61/−0)scripts/lib/release-rollout/web.mjs(added, +83/−0)scripts/verify-hosted-ui-release.mjs(+5/−39)scripts/verify-release-rollout.mjs(added, +123/−0).github/CONTRIBUTING.md(+30/−1)CHANGELOG.md(+11/−0)docs/docs/operations/hosted-ui-release.md(+1/−1)test/releaseRollout.test.mjs(added, +374/−0)Diff size: 13 files changed, +923/−42 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3713.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!