Repository navigation
[Epic] Release flow: roll every release out to desktop builds, hosted UI, demo and Hosted - #3719
Conversation
…workflow summary that say where a release is live (#3717) * 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 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. * feat(ai): 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`. 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 * feat(ai): 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`. 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 --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
…en it did not deploy (#3720) `hosted-ui-deploy.yml` - When either secret is missing, the "Check Cloudflare credentials" step now exits 1. It adds a Hosted UI not deployed error annotation and a line in the run summary. Both carry the message from the issue plus how to recover: re-run this job, or run the Hosted UI Deploy workflow from `main` with that `release_tag`. - The `configured` output is gone, and so are the conditions that made each later step skip without credentials. A failed check now stops the job by itself, and the existing recovery message still prints at the end. - With credentials in place, checkout, build, deploy and verify work exactly as before, whether the job is re-run or dispatched from `main`. `docker-images.yml` - `deploy-hosted-ui` now also waits for `promote-latest`, so the red job appears only after every other release step is done. - It still deploys if `latest` promotion failed or was skipped (a manual release without `push_latest`). It is skipped if the GitHub release didn't succeed or the run was cancelled. - Trade-off: the UI deploy now waits for `latest` promotion, which runs on the self-hosted runner and can take up to 60 minutes. If that runner is unavailable, the UI deploy waits with it. Docs (`hosted-ui-release.md`) - A new section, "When the Cloudflare credentials are missing", covers the red job, the annotation and summary line, that the site keeps serving the previous release, and that the release itself isn't affected. - To recover after adding the secrets, re-run the failed job or dispatch from `main`. - The re-run advice is narrower now: re-running the failed job is fine for missing credentials on tags made after this change. For v0.9.2 and earlier, the tag's own workflow just skips again, so dispatch from `main`. That applies to the current v0.9.2 deploy too. Tests - The tests now pin: - the new `needs` and `if` on `deploy-hosted-ui`, and that it has no `continue-on-error` - that the build and deploy steps run without conditions - that a missing secret exits 1 with the error annotation and summary line - that secret values are never printed - Against the old workflows, three of the new tests fail, as they should. No visual preview, since nothing here is visible in the UI. Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
…eview CLI bundle from the release (#3722) * I've added `release-rollout.yml`, which runs the whole preview chain for one release tag, and made the five existing preview workflows callable. Nothing has run on GitHub yet; the checks below are all local. The SHA-tag clash. I chose to change the release: it now tags its amd64-only app and UI images `<version>` and `release-<commit SHA>`, and no longer writes the bare `propr/app:<SHA>` / `propr/ui:<SHA>` tags. Those are left for the two-architecture preview images. The other option, publishing previews under a new tag name, would have meant changing code that is already shipped. The CLI orchestrator and the desktop runtime only accept `propr/app:<source SHA>@sha256:…`, as do four validator scripts. In `scripts/build-images.sh`, the latest-promotion and partial-publish checks now use the new tag for app and UI. Docs, agent and launcher images keep the bare SHA tag; the agent is amd64-only in both flows, so an existing release agent image is reused. Please put this choice and reason in the PR description. What the workflow does - How it starts: by hand with `release_tag`, or on its own after Docker Images succeeds for a `v*.*.*` tag push. A first `plan` job (`scripts/release-rollout-plan.mjs`) checks that the tag commit is reachable from `main` and that its `package.json` version matches the tag. - Order and outputs: the agent image publishes first, then app/UI. After that, three branches run in parallel: Linux draft → signing → signed publication, the macOS preview, and the preview CLI bundle. A small job between the two stages forwards the three digests, and the run summary has one line per step. - Approvals and secrets: every step calls the existing workflow, so all four protected environments and their approvals are unchanged. Only the two Docker Hub and two RPM signing secrets are passed, and only to the jobs that already read them. - Re-runs: the plan job finds runtime images and published preview releases that already exist for the tag commit, skips those steps and forwards their digests. A published release that is missing assets stops the run rather than being touched. Changes to existing gates - Signing and publish-draft now accept the rollout's own run id as `unsigned_run_id` / `signing_run_id`, but only while that run is in progress and its `workflow_ref` is `main`'s `release-rollout.yml` (`apps/desktop/scripts/release-rollout-run.mjs`). Separate dispatches keep their old rules. - The Preview CLI Bundle gates (the workflow guard, `scripts/preview-cli-workflow.mjs` and `packages/cli/scripts/preview-package.mjs`) now also accept a `workflow_run` event from `main`'s `release-rollout.yml`. - When the bare SHA tag already holds a non-matching image, the error now says why and that the tag is never overwritten. Limits to know - v0.9.2 and earlier can't use it. Their tag commits already have an amd64-only image under the bare SHA tag, so the plan job stops with that reason. - Automatic CLI bundle runs only work for tags that contain this change. The tag commit's own `preview-package.mjs` does the event check, so for older tags start the rollout by hand. - Resume a part-way run by re-running its failed jobs. A fresh run rebuilds the desktop packages, and staging refuses a draft whose bytes differ. I couldn't detect existing drafts, because the token can't see them. - The CLI bundle is always rebuilt. It publishes nothing, so a re-run just makes another run-specific artifact. - Anything outside this repo that pulls `propr/app:<SHA>` from a release would need `release-<SHA>` instead. I found no consumer inside the repo. - Not yet confirmed on GitHub: environment approvals inside called workflows, the macOS attestation signer identity when called, and which `head_branch` a `workflow_run` run reports. I relied on the documented behaviour for these, so watch them on the first real run. Tests. The new `test/releaseRolloutWorkflow.test.mjs` (19 tests, added to `test:unit`) covers: - step order and inputs, and that each job passes only its own secrets and permissions. - that environments are unchanged. - the same-run checks and the plan logic. - the amd64-only clash error. I updated `test/buildImages.test.mjs` and the Preview CLI workflow and package tests. All related suites pass (211 tests, 2 skipped by their env gates), as do the CI workflow-scanning suites (270). eslint is clean, and `actionlint` reports nothing new; its one warning is an existing runner label. Docs. I updated `.github/CONTRIBUTING.md` (Releases), `CHANGELOG.md` (Unreleased), `apps/desktop/README.md` (Linux and macOS preview channels), `packages/cli/scripts/preview-package.md` and `docs/docs/operations/linux-rpm-signing.md`. There are no visual previews, since nothing in the UI changed. * feat(ai): I fixed the shard 1 failure. I reproduced it locally first, and `test/appBuilderSourceInputs.test.mjs` now passes. I fixed the shard 1 failure. I reproduced it locally first, and `test/appBuilderSourceInputs.test.mjs` now passes. **Cause:** this PR's new `scripts/release-rollout-plan.mjs` imports `previewTag` from `apps/desktop/scripts/desktop-preview-identity.mjs`. The app image builder compiles everything under `scripts/**`, but its filtered Docker context never copied that desktop file. The test caught the missing file before it could break a real image build. **Fix:** in `docker/Dockerfile.app.prod`, the builder stage now copies `apps/desktop/scripts/desktop-preview-identity.mjs`. It is only needed to compile; nothing from it ships in the final image. This follows the existing pattern there, which already copies `packages/cli/scripts/preview-package.mjs` for the same reason. The desktop file only imports Node built-ins, so it doesn't pull in anything else. **Checks:** the failing test and the other test files that read `Dockerfile.app.prod` pass (88 tests across 9 files). I didn't rerun the full four-shard suite, so the next CI run will confirm the rest. There are no visual previews, since nothing in the UI changed. PR: #3722 Comment by: @github-actions[bot] (ID: 6989982221) Model: Claude Opus 5.5 --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
…e links as tracked follow-up steps (#3724) * Release Rollout now ends with a follow-ups job that writes the three outside follow-ups (ProPR Hosted repin, site, demo) to the run summary. If the token is set it opens them as issues; if not, the job still succeeds and prints the exact text to file by hand. The new and affected test files pass locally (189 tests). Nothing has run in GitHub Actions yet, so the real issue creation and the SSH deploy are untested against the live repositories. The follow-ups (texts built by a new script, `scripts/release-followups.mjs`): - `integry/propr-fleet` — "Repin ProPR Hosted to ProPR `<version>`": the run id, artifact name and id, tarball name and sha256, CLI version, tag commit and the three image references (the facts #178 listed), plus the repin steps. It is only written if the preview CLI bundle succeeded. - `integry/propr-site`: the release's `published_at` line for `follow.ts` and the two `desktopRelease(...)` lines with the desktop pre-release tags for `releases.ts`. It waits until the GitHub release and both desktop pre-releases are published. - `integry/propr-deploy` — "Move demo.propr.dev to ProPR `<version>`": names the `DEMO_API_IMAGE` / `DEMO_UI_IMAGE` pins in `deploy.env`. It is skipped when `demo.propr.dev/api/status` already reports the release. A follow-up that isn't ready says why in the summary. How the job files them: - Token: the optional secret is `RELEASE_FOLLOWUP_ISSUES_TOKEN`, which needs only Issues read/write on those three repositories. With it, the workflow calls `gh issue create` and skips any issue whose exact title already exists (open or closed), so re-runs don't file duplicates. - Demo deploy: if all three of `DEPLOY_HOST`, `DEPLOY_USER` and `DEPLOY_SSH_KEY` are set, the job runs the documented `./scripts/deploy.sh all` over SSH. The demo issue is then only written if the demo still doesn't report the release. A failed deploy is a warning, not a failed run. Before relying on these, check three things: - Demo pins: `deploy.sh all` doesn't change the pins in `deploy.env`. That's why the job re-checks the demo afterwards rather than assuming the deploy worked. - Where the SSH runs: I used a GitHub-hosted runner with plain `ssh`. The snippet in `propr-deploy` runs on the self-hosted runner, so the server must accept SSH from GitHub-hosted runners. - Host key: SSH accepts the server's host key on first contact without checking it. Supporting changes: - Preview CLI Bundle workflow now outputs `cli_version`, `artifact_name`, `artifact_id`, `tarball` and `tarball_sha256`. - Rollout plan now outputs `desktop_version`, `linux_release_tag` and `macos_release_tag`. - Docs: `.github/CONTRIBUTING.md` lists the full release flow in order: metadata PR, tag, automatic publication, `release-rollout.yml` and its approvals, follow-up issues, then `npm run release:rollout`. It also documents the follow-ups, the token and the deploy secrets. `CHANGELOG.md` and `packages/cli/scripts/preview-package.md` are updated too. - Tests: new `test/releaseFollowups.test.mjs` covers the text generation and the job contract. That includes running the job's shell steps without secrets, and with a fake `gh` to check that duplicates are skipped. It's added to `test:unit`, and the existing rollout and CLI workflow tests are updated for the new job and outputs. I didn't create visual previews, since nothing here changes a screen. * feat(ai): I fixed F1. If the GitHub release lookup fails, the run now still writes the fleet and demo follow-ups, `issues.tsv` and the summary, and only the site follow-up is held back. I fixed F1. If the GitHub release lookup fails, the run now still writes the fleet and demo follow-ups, `issues.tsv` and the summary, and only the site follow-up is held back. **The fix** (`scripts/release-followups.mjs`): - **`releasePublishedAt` no longer throws.** It now returns either `{ publishedAt }` or `{ unavailable: <reason> }`. A dropped connection or a response body that isn't JSON becomes a reason such as `GET https://api.github.com/... failed: fetch failed (ECONNRESET)`. An HTTP error, a draft release, or a missing `published_at` also come back with a reason. - **`prepare` passes that reason through.** The site follow-up is then "not ready", and the summary says why, for example `the GitHub release v0.9.3 has no published_at (GET … failed: …)`. Because nothing rejects any more, the shared wait on the two lookups can't stop the other outputs from being written. The demo lookup already had this protection through `checkStatusJson`, and I confirmed it covers both failed requests and non-JSON responses. The GitHub release lookup was the only place with the problem. **Tests** (`test/releaseFollowups.test.mjs`): - I updated the existing `releasePublishedAt` assertions to the new return shape. - I added unit tests for a dropped connection and for a body that isn't JSON. - I added a `prepare` test for each of those two failures. Each checks that `fleet.md` and `demo.md` are written, `site.md` is not, `issues.tsv` lists only the fleet and deploy repositories, and the summary gives the reason and the file-by-hand texts when no token is set. - I added a check that the site reason includes the diagnostic. All 19 tests in this file pass, along with the 36 in the rollout and CLI workflow test files, and eslint reports nothing. Against the previous version of the script, the new and changed tests fail (5 failures), so they do catch the original bug. **Separate issue, not fixed (outside F1):** the GitHub release request has no timeout, while the shared `get` helper used for the demo lookup gives up after 20 seconds. If the request hangs, the step still waits until the job itself times out. I left this alone because F1 only covers failed requests and unparsable responses. PR: #3724 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5 * feat(ai): The SSH demo step in the `followups` job now starts the deploy detached on the host and returns straight away, so the job's 30-minute timeout can no longer cut off a refresh. The two test files pass locally (42 tests), lint is clean and the step's shell passes a syntax check. I haven't tested the real SSH and `systemd-run` call against the host, and actionlint isn't installed here, so CI will be the first lint of the workflow. The SSH demo step in the `followups` job now starts the deploy detached on the host and returns straight away, so the job's 30-minute timeout can no longer cut off a refresh. The two test files pass locally (42 tests), lint is clean and the step's shell passes a syntax check. I haven't tested the real SSH and `systemd-run` call against the host, and actionlint isn't installed here, so CI will be the first lint of the workflow. **1. Detached start** (`.github/workflows/release-rollout.yml`) - The step is renamed "Start the demo deploy over SSH…" and over SSH it runs: `mkdir -p /root/propr-deploy/logs && systemd-run --unit=propr-release-deploy-<version> --collect --setenv=HOME=/root --working-directory=/root/propr-deploy --property=StandardOutput=append:<log> --property=StandardError=append:<log> /root/propr-deploy/scripts/deploy.sh all` - The log is `/root/propr-deploy/logs/release-deploy-<version>.log`. - `systemd-run` returns once the unit has started, and the unit keeps running after the session ends. Starting the same version again fails while a deploy is still running, so a re-run can't start a second refresh on top of it. - I set `HOME=/root` because a systemd unit doesn't get a login shell's environment. If `deploy.sh` needs other variables from a login shell, the unit won't have them. - On success the step outputs `result=started` and adds a "Demo deploy" section to the run summary with the unit name, the log path and the `systemctl status` / `tail -f` commands to check it. - If the start fails, that is a warning and the step outputs `result=failure`; the run doesn't fail. - The plan's version is checked as `X.Y.Z` before it goes into the remote command. - The workflow header comment is updated to match. **2. Demo follow-up** (`scripts/release-followups.mjs`) - "Started" no longer counts as done. The issue is skipped only when demo.propr.dev already reports the release. - Since the check runs right after the start, the issue will almost always be opened when the secrets are set. - When the deploy was started, the issue says the run started it and didn't wait. It gives the unit and log, the `systemctl status` / `tail -n 50` checks, and says to close the issue if the demo reports the version, or to follow the manual steps once the deploy has stopped. The "To make this automatic" paragraph is left out in that case. **3. SSH keepalive:** the ssh call now has `-o ServerAliveInterval=30 -o ServerAliveCountMax=4`. **4. Tests** - `test/releaseFollowups.test.mjs` runs the step with a fake `ssh`. It checks the options, the exact remote command, `result=started`, the summary text and that the key file is removed. It also covers a failed start, a malformed version, and the new issue wording, including that only the demo reporting the release makes the issue unnecessary. - `test/releaseRolloutWorkflow.test.mjs` checks that the job only starts the deploy detached (no foreground `deploy.sh all`, no `--wait` or `--pty`), the keepalive options and the header comment. **Decision for you:** line 136 of `.github/CONTRIBUTING.md` still says the job "runs the documented SSH deploy (`cd /root/propr-deploy && ./scripts/deploy.sh all`)", which is now out of date. I left it alone because you said nothing else should change. Updating it is a one-sentence edit if you want it. PR: #3724 Comment by: @integry (ID: 6992893101) Model: Claude Opus 5.5 --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
✅ Epic ready for final merge: Release flow: roll every release out to desktop builds, hosted UI, demo and Hosted4 of 4 issues merged All 4 issues have been merged into this epic branch. This epic PR is ready for final review and merge. Posted automatically by ProPR |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryI resolved the merge conflicts in both files, and no conflict markers are left anywhere in the repository. These are Markdown files only, so I checked the headings and section order by reading them; no test or script depends on their contents. I couldn't stage them because the worktree's git index is read-only, so they still show as unmerged in
|
|
/merge |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - .github/CONTRIBUTING.md - CHANGELOG.md PR: #3719 Model: Claude Opus 5.5
|
🔀 Auto-merged No conflicts were found — the merge was verified by an AI agent. 🤖 Verification Details
System-triggered merge conflict resolution |
|
/ultrafix goal=8 max=3 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 3) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
|
CI failed: CodeQL Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 5791305 Summary of ChangesI fixed the CodeQL finding: the run summary table now escapes backslashes as well as The fix ( const cell = text => String(text).replace(/[\\|]/g, '\\$&').replace(/\r?\n/g, ' ');Before, a value ending in a backslash, like Test: I added a case with backslashes to the existing summary-escaping test in No preview, since nothing changes visually. Review digestRisk-tiered paths
Diff size: 2 files changed, +3/−1 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…es backslashes as well as `|`. I fixed the CodeQL finding: the run summary table now escapes backslashes as well as `|`. **The fix** (`scripts/lib/release-rollout/run.mjs:45`): the cell helper now escapes both characters in one pass: ```js const cell = text => String(text).replace(/[\\|]/g, '\\$&').replace(/\r?\n/g, ' '); ``` Before, a value ending in a backslash, like `dir\` followed by `|`, became `dir\\|`. Markdown reads that as an escaped backslash and then a bare `|`, which splits the table cell. Now the backslash is escaped too, so the cell stays whole. **Test:** I added a case with backslashes to the existing summary-escaping test in `test/releaseRollout.test.mjs`. The input `C:\dir\| x` must come out as `C:\\dir\\\| x`. All 35 tests in that file pass and eslint reports nothing on either file. I didn't run the new assertion against the old code, but by hand the old code gives `C:\dir\\| x`, which the assertion rejects. No preview, since nothing changes visually. PR: #3719 Comment by: @github-advanced-security[bot] (ID: 4621956394) Model: Claude Opus 5.5
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryI made no new changes, because the fix for this CodeQL failure is already on the branch. CodeQL flagged commit Before that change, a value like
CodeQL should go green when it runs on No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
One more fix for this epic, in the hosted UI deploy that the release calls. What happened on the v0.9.2 release: the Likely cause: Wanted:
|
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds a read-only rollout checker, chains existing preview workflows, and prepares cross-repository follow-ups. It needs changes before merge because the workflow never runs the checker, and the desktop check can incorrectly accept a non-prerelease. ✅ Honest deploy failures — Missing Cloudflare credentials now produce an error annotation, summary entry, and failed job after release publication and latest promotion finish. ✅ Separate immutable image tags — App/UI release images use ✅ Explicit failure reporting — Public checks convert network failures into per-target results rather than aborting the entire report. Review was limited to static analysis of the supplied code; no commands were run. The linked issue descriptions are explicitly truncated, so omitted acceptance criteria could not be assessed. Current checks report 38 passed, none failed, and one pending. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Run the checker in the workflow
F2: 🔴 Enforce desktop prerelease status
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Exercise workflow behavior beyond structureThe workflow tests thoroughly assert YAML structure, but many reproduce exact conditions and strings. A follow-up integration exercise covering automatic triggering, same-run artifact transfer, and resumption would improve confidence in GitHub-specific behavior. This is additional validation, not a separate merge requirement. ScoreThe implementation has substantial coverage and useful safeguards, but the missing workflow live-state report and desktop false positive need localized corrections. The supplied check status is otherwise healthy. 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 89730c7 Summary of ChangesThe hosted UI deploy will now get the Cloudflare secrets when the release workflow calls it. The What the GitHub docs say (the "Reuse workflows" page, environment secrets section):
So your diagnosis is right. The One correction to the request: the docs also say "You can pass a secret by name even if it only exists in the environment." So passing by name would have worked too. I still used The other calls in
None of them had the hosted UI problem, so nothing there needed fixing. Changes:
Re-deploying v0.9.2 and earlier: re-running the failed job of an old release run won't help, because a re-run uses the tag's own workflow file, which lacks No preview, since nothing here is visible in the UI. Review digestRisk-tiered paths
Diff size: 6 files changed, +50/−10 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…en the release workflow calls it. The `deploy-hosted-ui` job in `.github/workflows/docker-images.yml` now has `secrets: inherit`. The two contract test files pass (35 tests). I also removed `secrets: inherit` from a scratch copy and the hosted UI test failed, as it should. None of this has run in GitHub Actions yet; the next tag release is the first real check.
The hosted UI deploy will now get the Cloudflare secrets when the release workflow calls it. The `deploy-hosted-ui` job in `.github/workflows/docker-images.yml` now has `secrets: inherit`. The two contract test files pass (35 tests). I also removed `secrets: inherit` from a scratch copy and the hosted UI test failed, as it should. None of this has run in GitHub Actions yet; the next tag release is the first real check.
**What the GitHub docs say** (the "Reuse workflows" page, environment secrets section):
- "To use an environment secret in a reusable workflow, set `environment` on the job in the reusable workflow."
- "The caller workflow must still pass the secret."
- If the caller doesn't pass it, "the secret resolves to an empty string in the reusable workflow. The workflow run doesn't show an error."
- Passing works with "either `secrets: inherit` or `${{ secrets.MY_SECRET }}`."
So your diagnosis is right. The `environment:` on the called job only decides which copy of a secret is used, and only for secrets the caller passes. With no `secrets:` key, both Cloudflare secrets were empty on the tag run, while the direct dispatch read them normally.
One correction to the request: the docs also say "You can pass a secret by name even if it only exists in the environment." So passing by name would have worked too. I still used `secrets: inherit` here, because passing by name would have to write `CLOUDFLARE_*` in the release workflow, and that would break the rule that no other job names those credentials.
**The other calls in `release-rollout.yml`:**
- **Need secrets, already receive them:** the runtime image calls (`publish-agent`, `publish`) get the Docker Hub secrets, and the Linux signing call gets the two RPM signing secrets. All are passed by name and declared under `on.workflow_call.secrets`, which the docs say works even for secrets that exist only in an environment. I left these as they are, so the called workflows receive only those secrets.
- **Read no secrets:** the Linux draft, Linux publication, macOS and preview CLI bundle calls read only `vars` and `github.token`.
None of them had the hosted UI problem, so nothing there needed fixing.
**Changes:**
- **Workflow comments:** the `deploy-hosted-ui` comment now explains why `inherit` is needed, replacing "nothing is passed from here". `hosted-ui-deploy.yml` and the header of `release-rollout.yml` have short notes on the same rule.
- **`test/hostedUiReleaseDeploy.test.mjs`:** it now requires `job.secrets === 'inherit'`. It still fails if any other job in the release workflow mentions `CLOUDFLARE`, `hosted-ui-production`, wrangler or the deploy workflow, and the calling job may not reference `secrets.` directly.
- **`test/releaseRolloutWorkflow.test.mjs`:** a new check goes through every reusable-workflow call. For each secret that the called jobs for that operation read, the called workflow must declare it and the call must pass it. I confirmed it fails when one RPM secret is removed from the signing call.
- **`docs/docs/operations/hosted-ui-release.md`:** it explains the cause and the fix, and the contract-test note now covers the inheritance check.
**Re-deploying v0.9.2 and earlier:** re-running the failed job of an old release run won't help, because a re-run uses the tag's own workflow file, which lacks `inherit`. It would find the secrets empty and skip again. For those tags, dispatch `hosted-ui-deploy.yml` from `main`, as you did for v0.9.2. The doc now says this.
No preview, since nothing here is visible in the UI.
PR: #3719
Comment by: @integry (ID: 6994620716)
Model: Claude Opus 5.5
|
✅ Applied the requested follow-up changes in commit 19af099
Summary of ChangesBoth findings are fixed. The three release-rollout test files pass (84 tests), F1 – the workflow now runs the checker.
F2 – desktop releases must be pre-releases. Tests added:
I also added a sentence each to There's nothing visual in this change, so there are no previews. Review digestRisk-tiered paths
Diff size: 7 files changed, +145/−6 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…es pass (84 tests), `releaseValidation` passes (37), and eslint is clean. None of this has run in GitHub Actions yet, so the next release run is the first real check of the new job.
Both findings are fixed. The three release-rollout test files pass (84 tests), `releaseValidation` passes (37), and eslint is clean. None of this has run in GitHub Actions yet, so the next release run is the first real check of the new job.
**F1 – the workflow now runs the checker.** `release-rollout.yml` has a new last job, `live` ("Check where the release is live"). It runs after the follow-ups, and also when an earlier step failed, as long as the plan succeeded. It runs `node scripts/verify-release-rollout.mjs --version "$VERSION"` with the planned version, so the per-target table goes into the run summary. The job gets read-only permissions and no secrets or token, so every read stays public.
- **Targets not yet live:** if the checker says some target isn't `ok`, the step adds a warning but the run stays green. Right after a release the demo refresh and the site follow-ups are usually still pending, so failing here would turn every run red.
- **No table written:** if the checker crashes or gets a bad version and writes nothing, the job fails.
- **Summary wording:** the summary job's closing line now points to this table instead of telling the operator to run the command by hand.
**F2 – desktop releases must be pre-releases.** `checkDesktopPrerelease` in `scripts/lib/release-rollout/github.mjs` now only reports `ok` for a release that has `prerelease === true` and every expected file, which matches the rollout planner. A matching release that isn't marked as a pre-release now shows as `stale`, with "is not marked as a pre-release" (plus any missing files).
**Tests added:**
- **Desktop:** matching files but `prerelease: false` gives `stale` for both Linux and macOS. A proper pre-release still counts even when a newer non-pre-release copy exists. Both tests fail against the old checker.
- **Workflow:** the `live` job's dependencies, run condition and lack of secrets are checked, along with the step's three exit paths (warning, clean pass, failure when no table is written). One test also checks that the real checker writes its table.
- **Existing tests:** I updated the job-dependency and permissions tests, and relaxed the follow-ups test that required no job to come after `followups`.
I also added a sentence each to `.github/CONTRIBUTING.md` and `CHANGELOG.md` to describe the new job and the pre-release rule.
There's nothing visual in this change, so there are no previews.
PR: #3719
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 substantially implements rollout reporting, preview orchestration, and tracked follow-ups, but needs changes to finish the authorized secrets-inheritance request. ✅ Honest deploy failures — Missing Cloudflare credentials now produce an error annotation, summary entry, and failed job after release publication and latest promotion finish. ✅ Shared verification — The rollout command and hosted UI deployment use the same entry-bundle version check. ✅ Source-bound handoffs — Runtime references are validated against the release commit before reaching desktop and CLI consumers. The linked issue bodies are explicitly truncated, so requirements assessment is limited to their visible text and the complete authorized follow-up. This was a static review; no commands were run. The supplied current-head status reports no failures and five pending checks. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F3: 🔴 Complete the requested secrets inheritance
SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Exercise reusable calls in ActionsA controlled integration run would complement the extensive static contract tests, particularly for environment-secret resolution, same-run artifact downloads, and macOS attestation identity. The tests supply these contexts themselves, so they cannot establish GitHub’s actual behavior. This is additional verification, not a separately demonstrated code blocker. S3: 🟢 Explain the release-list limit
ScoreThe implementation has substantial coverage and useful failure reporting, but the explicit follow-up contract remains incomplete. Current checks show no failures, with several still pending. 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 3d829f4
Summary of ChangesI fixed F3. The three rollout calls that use credentials ( Other changes for consistency
Contract test (
Verification
I found nothing else outside F3 that needed fixing. Review digestRisk-tiered paths
Diff size: 4 files changed, +32/−52 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
Clarification on review finding F3 ("Complete the requested secrets inheritance"), which comes from loose wording in my earlier request, not from a defect. My request said the tests should "assert the secrets are inherited on these calls". What I need is narrower: every called job that reads a secret must receive it. Commit 89730c7 already delivers that, and the way it does it is the one I want kept:
So F3 needs no code change: do not convert the |
…runtime-agent`, `runtime-app-ui` and `linux-signing` in `.github/workflows/release-rollout.yml`) now use `secrets: inherit` instead of passing named secrets. The four calls that read no secrets (Linux draft, Linux publication, macOS, CLI bundle) still get none. I fixed F3. The three rollout calls that use credentials (`runtime-agent`, `runtime-app-ui` and `linux-signing` in `.github/workflows/release-rollout.yml`) now use `secrets: inherit` instead of passing named secrets. The four calls that read no secrets (Linux draft, Linux publication, macOS, CLI bundle) still get none. **Other changes for consistency** - **Called workflows:** I removed the `workflow_call.secrets` declarations this PR had added to `preview-runtime-images.yml` and `desktop-linux-signed-preview.yml`. They were only there for passing secrets by name, and inherited secrets need no declaration. This matches how the hosted UI deploy is set up. - **Comments:** I updated the comments in all three workflows to say the caller inherits its secrets. **Contract test** (`test/releaseRolloutWorkflow.test.mjs`, renamed to "…inherits secrets on each call whose jobs read one"): - The test still works out which called jobs read secrets for each call's `operation`. - Each such call must use `secrets: 'inherit'`, and every other call must have no `secrets`. - The calls that need secrets must be exactly `linux-signing`, `runtime-agent` and `runtime-app-ui`, and the workflow file must contain exactly three `secrets: inherit` lines. - No called workflow may declare `workflow_call.secrets`. - The old check that the file contained no `secrets: inherit` is gone. The only `secrets.*` references left in the rollout workflow are in the `followups` job. **Verification** - The release rollout, rollout script, hosted UI deploy and preview CLI tests pass (94). `previewRuntimeImages` and `releaseValidation` also pass (50). ESLint is clean on the test file. - As a check that the test catches the problem, I put `linux-signing` back to a named secret in a scratch copy. The test failed with "linux-signing inherits the secrets its called jobs read". I then restored the file. - None of this has run in GitHub Actions yet. The next tag release will be the first real check that inherited secrets reach the protected Docker Hub and RPM signing jobs. I found nothing else outside F3 that needed fixing. PR: #3719 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
|
✅ Applied the requested follow-up changes in commit fa191c0 Summary of ChangesI reverted the previous F3 fix. Commit 3d829f4 had switched the What's back in place:
Checks: the contract test passes (25 tests). The other release tests also pass: rollout, hosted UI deploy, preview CLI workflow, preview runtime images and release validation (119 tests). ESLint is clean on the test file. F3 needs no code change, as you clarified, so the next review can treat it as resolved. There's nothing visual here, so I made no previews. Review digestRisk-tiered paths
Diff size: 4 files changed, +52/−32 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… the `release-rollout.yml` calls to `secrets: inherit`; I put the four files it changed back exactly as they were at 19af099, which is the named-secrets form from 89730c7. I reverted the previous F3 fix. Commit 3d829f4 had switched the `release-rollout.yml` calls to `secrets: inherit`; I put the four files it changed back exactly as they were at 19af099, which is the named-secrets form from 89730c7. What's back in place: - **`release-rollout.yml`:** `runtime-agent` and `runtime-app-ui` pass `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` by name, and `linux-signing` passes `PROPR_DESKTOP_RPM_PRIVATE_KEY` and `PROPR_DESKTOP_RPM_PASSPHRASE` by name. The header comment explains named passing again. - **`preview-runtime-images.yml` and `desktop-linux-signed-preview.yml`:** their `workflow_call.secrets` declarations and the original comments are restored. - **`test/releaseRolloutWorkflow.test.mjs`:** the contract test is back to the earlier version. It requires every secret a called job reads to be declared and passed by name, and it checks that `release-rollout.yml` contains no `secrets: inherit`. `deploy-hosted-ui` in `docker-images.yml` still uses `secrets: inherit`; 3d829f4 didn't touch that file. **Checks:** the contract test passes (25 tests). The other release tests also pass: rollout, hosted UI deploy, preview CLI workflow, preview runtime images and release validation (119 tests). ESLint is clean on the test file. F3 needs no code change, as you clarified, so the next review can treat it as resolved. There's nothing visual here, so I made no previews. PR: #3719 Comment by: @integry (ID: 6995189393) Model: Claude Opus 5.5
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the rollout checker, reusable workflow orchestration, hosted UI failure reporting, and external follow-up preparation with substantial targeted coverage. No verified merge blocker was found in the supplied code; it is ready to merge within the reviewed scope, conditional on the pending checks passing. ✅ Visible deploy failures — Missing Cloudflare credentials now produce an error annotation, summary entry, and failing exit after release publication and latest promotion finish. ✅ Source-bound rollout — The planner resolves the release tag commit, verifies ancestry and versions, and validates downstream digest references against that commit. ✅ Clarification respected — The hosted UI call inherits secrets, while runtime publication and Linux signing retain the explicitly requested named secret passing. The original issue specifications contain explicit truncation notices, so acceptance criteria beyond the visible excerpts could not be assessed. This was a static review; no commands were run. The supplied authoritative status reports zero failed checks and five pending. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S4: 🟢 Bound follow-up HTTP requestsConsider applying the existing HTTP timeout convention to S5: 🟢 Exercise the composed workflowA controlled rollout would usefully supplement the contract tests with evidence covering same-run artifact downloads, signing provenance, reusable workflow outputs, and protected environment approvals. The supplied tests validate these components extensively in isolation; an integration run would confirm their interaction with GitHub Actions. This is additional confidence work, not a demonstrated code defect. ScoreThe visible implementation is coherent and well covered, with no verified blocker. Pending checks and the truncated issue specifications limit the certainty of the assessment. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
✅ Epic merged: Release flow: roll every release out to desktop builds, hosted UI, demo and HostedEpic PR #3719 has been merged into main. 4 of 4 issues merged into main through this epic PR. All planned epic work is now merged. Posted automatically by ProPR |
Release flow: roll every release out to desktop builds, hosted UI, demo and Hosted
This Epic PR aggregates all changes for the plan: Release flow: roll every release out to desktop builds, hosted UI, demo and Hosted
Issues in this Epic
Auto-close
When this PR is merged, the following issues will be automatically closed:
Fixes #3713
Fixes #3714
Fixes #3715
Fixes #3716
Created automatically by ProPR