Repository navigation
[3715 by Claude Opus 5.5] Start the desktop preview builds and the preview CLI bundle from the release - #3722
Conversation
…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.
|
/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: Validate Changes, Full Test Suite Shard 1/4, Run Full Test Suite Please investigate and fix these CI failures.
Failure evidence
Failure evidence
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryThe failure wasn't caused by this PR's code, so I made no changes. Cause: The Why it isn't the PR:
What's needed: The failed job just needs to run again once the mirror recovers. I tried No visual previews, since nothing in the UI changed. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
ℹ️ Analyzed the follow-up request by @github-actions[bot] Analysis SummaryI didn't change any code: the failure was in the CI runner's setup, and no test ran. What happened: Run 44380031728 tested this branch's current head ( Both attempts stalled while downloading Playwright's font and mesa packages from the runner's Ubuntu mirror ( Other runs on this commit:
Next step: Re-run the failed "Build & Lint Check" job. Changing the branch wouldn't help. If the mirror is still slow, the re-run can time out the same way, and you'd need to retry once it recovers. I added this case to my notes on this kind of failure. Nothing in this change is visible in the UI, so there are no previews. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
Full Test Suite ResultsValidation failed during: Test shard (shard 1).
View shard 1/4 outputDetails truncated; see the uploaded artifacts for complete failure rows and logs. |
|
✅ Applied the requested follow-up changes in commit ccb0339 Summary of ChangesI fixed the shard 1 failure. I reproduced it locally first, and Cause: this PR's new Fix: in Checks: the failing test and the other test files that read There are no visual previews, since nothing in the UI changed. Review digestRisk-tiered paths
Diff size: 1 file changed, +3/−0 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… 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
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR coherently connects the existing preview workflows into a release-tag rollout. No merge-blocking defect was verified from the supplied diff and surrounding context. It is merge-ready within the reviewed scope, conditional on the remaining check completing successfully. ✅ Source-bound rollout — The planner validates tag/version agreement and main ancestry, then forwards source-specific, digest-pinned runtime references. ✅ Preserved publication boundaries — Reusable calls retain protected environments and narrowly scoped permissions and secrets. Same-run signing acceptance checks the current run identity and reviewed rollout workflow. ✅ Release tag separation — App/UI release tags consistently use This was a static review; no commands were run. The authoritative check summary reports 34 passed, one pending, and no failures. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Record the first hosted rolloutCapture the first complete GitHub-hosted rollout, including automatic tag detection, reusable-workflow attestation verification, environment approvals, and failed-job resumption. The added tests validate helper logic and workflow structure, but cannot reproduce GitHub’s orchestration behavior. This is useful operational confirmation rather than a verified code defect requiring correction. ScoreThe implementation is scoped, preserves existing trust gates, and includes substantial regression coverage. Static review found no actionable defect; hosted orchestration remains to be confirmed and one current check is pending. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3715
Branch:
3715/claude-opus-5-5-start-the-desktop-preview-20261118-1901-mp2Commits: ✅ Changes committed (2183e1e)
AI Processing Completed
Execution Details:
Summary:
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>andrelease-<commit SHA>, and no longer writes the barepropr/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 acceptpropr/app:<source SHA>@sha256:…, as do four validator scripts. Inscripts/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
release_tag, or on its own after Docker Images succeeds for av*.*.*tag push. A firstplanjob (scripts/release-rollout-plan.mjs) checks that the tag commit is reachable frommainand that itspackage.jsonversion matches the tag.Changes to existing gates
unsigned_run_id/signing_run_id, but only while that run is in progress and itsworkflow_refismain'srelease-rollout.yml(apps/desktop/scripts/release-rollout-run.mjs). Separate dispatches keep their old rules.scripts/preview-cli-workflow.mjsandpackages/cli/scripts/preview-package.mjs) now also accept aworkflow_runevent frommain'srelease-rollout.yml.Limits to know
preview-package.mjsdoes the event check, so for older tags start the rollout by hand.propr/app:<SHA>from a release would needrelease-<SHA>instead. I found no consumer inside the repo.head_branchaworkflow_runrun 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 totest:unit) covers:I updated
test/buildImages.test.mjsand 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, andactionlintreports 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.mdanddocs/docs/operations/linux-rpm-signing.md. There are no visual previews, since nothing in the UI changed.Review digest
Risk-tiered paths
.github/workflows/desktop-linux-preview.yml(+26/−0): CI or workflow file.github/workflows/desktop-linux-signed-preview.yml(+43/−1): CI or workflow file.github/workflows/desktop-macos-preview.yml(+23/−0): CI or workflow file.github/workflows/preview-cli-bundle.yml(+31/−3): CI or workflow file.github/workflows/preview-runtime-images.yml(+29/−0): CI or workflow file.github/workflows/release-rollout.yml(added, +290/−0): CI or workflow filepackage.json(+1/−1): dependency manifestapps/desktop/scripts/linux-preview-release.mjs(+16/−4)apps/desktop/scripts/release-rollout-run.mjs(added, +28/−0)packages/cli/scripts/preview-package.mjs(+6/−2)scripts/build-images.sh(+31/−9)scripts/preview-cli-workflow.mjs(+12/−6)scripts/preview-runtime-images.mjs(+37/−3)scripts/release-rollout-plan.mjs(added, +248/−0).github/CONTRIBUTING.md(+20/−1)CHANGELOG.md(+19/−0)apps/desktop/README.md(+22/−0)docs/docs/operations/linux-rpm-signing.md(+8/−0)packages/cli/scripts/preview-package.md(+12/−0)test/buildImages.test.mjs(+68/−17)test/previewCliPackage.test.mjs(+9/−1)test/previewCliWorkflow.test.mjs(+36/−11)test/releaseRolloutWorkflow.test.mjs(added, +483/−0)Diff size: 23 files changed, +1,498/−59 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3715.
💡 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!