Repository navigation
[3716 by Claude Opus 5.5] Release rollout: demo, Hosted repin and site links as tracked follow-up steps - #3724
Conversation
…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.
|
/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: |
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
|
ℹ️ Analyzed the follow-up request by @github-actions[bot], @propr-dev[bot] Analysis SummaryI made no code changes: this failure isn't caused by the PR. It needs a re-run of Validate Changes, which I couldn't start from here. What failed: the "Install Chromium for PWA Smoke Test" step. It downloads the browser's system packages from Ubuntu's mirror on the GitHub-hosted runner, and the mirror (
Why it isn't this PR: the branch doesn't touch the UI, the Playwright setup, or that install script. Its changes are the release-rollout workflows, Next step: I tried I didn't make the install timeout longer. That would change a CI script this PR doesn't touch, and the 3-minute cap is there on purpose so a stalled mirror can't hold a PR for an hour. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds the three release handoffs, connects them to rollout outputs, and documents the operator workflow clearly. It needs a localized reliability fix before merge. The current-head Validate Changes failure also remains unresolved; the supplied evidence does not trace it to changed code. ✅ Verified artifact handoff — The CLI workflow exposes the verified tarball hash and uploaded artifact ID for the fleet follow-up. ✅ Publication-aware site handoff — Site instructions require a publication date and successful or previously completed desktop publication. ✅ Useful fallback coverage — Tests exercise missing secrets and duplicate-issue handling through the workflow’s shell steps. This review is based on static inspection of the supplied code; no commands or tests were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Isolate release lookup failures
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Diagnose the failing validation checkThe authoritative current-head status reports Validate Changes as failed, although the historical diagnostics show successful individual stages. Inspect the current failure before merging. This is not a code finding because the supplied evidence does not identify a PR-introduced cause. S2: 🟢 Bound the SSH deployment durationThe SSH step limits connection establishment but not remote command execution. A stalled deployment can consume the entire job timeout before fallback text is generated. A shorter deployment deadline would preserve time for the documented warning and follow-up path; this is an operational resilience improvement beyond the demonstrated lookup defect. ScoreThe handoff design and targeted tests are solid, but one external lookup can suppress every follow-up. That defect and the unresolved current-head validation failure prevent merge readiness. 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 eeef008
Summary of ChangesI fixed F1. If the GitHub release lookup fails, the run now still writes the fleet and demo follow-ups, The fix (
The demo lookup already had this protection through Tests (
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 Review digestRisk-tiered paths
Diff size: 2 files changed, +60/−12 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
… 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
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the three release follow-ups with reusable workflow outputs, readiness checks, optional issue creation, and a manual fallback. It is merge-ready within the reviewed scope, conditional on the pending validation check passing. ✅ Useful manual fallback — Ready follow-ups include their exact titles and bodies in the summary when the issue token is absent. ✅ Publication-aware handoffs — Fleet readiness requires successful bundle preparation and artifact metadata; site readiness requires the publication date and both desktop releases. ✅ Isolated lookup failures — GitHub request and JSON parsing failures become an unavailable publication date without preventing fleet and demo follow-ups. This was a static review of the supplied code; no commands were run. Current checks report 34 passed, none failed, one pending, and 11 neutral/skipped. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Bound external operation durationsConsider adding an explicit timeout to S4: 🟢 Exercise actual issue filteringThe fake ScoreThe implementation fits the objective and includes meaningful failure-path and workflow-contract coverage. No merge blocker was verified; final readiness remains conditional on the pending validation check. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
One change to the optional SSH demo step in the Problem: Wanted:
Nothing else in the PR needs to change. |
|
✅ Applied the requested follow-up changes in commit fca543d Summary of ChangesThe SSH demo step in the 1. Detached start (
2. Demo follow-up (
3. SSH keepalive: the ssh call now has 4. Tests
Decision for you: line 136 of Review digestRisk-tiered paths
Diff size: 4 files changed, +144/−19 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…loy 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
AI Implementation Summary
Closes #3716
Branch:
3716/claude-opus-5-5-release-rollout-demo-host-20261118-2035-lvnCommits: ✅ Changes committed (4bd420e)
AI Processing Completed
Execution Details:
Summary:
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 AI Fix for Issue #169: Bug: Live Event Stream 'Currently' shows To-Do instead of last Thought #178 listed), plus the repin steps. It is only written if the preview CLI bundle succeeded.integry/propr-site: the release'spublished_atline forfollow.tsand the twodesktopRelease(...)lines with the desktop pre-release tags forreleases.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 theDEMO_API_IMAGE/DEMO_UI_IMAGEpins indeploy.env. It is skipped whendemo.propr.dev/api/statusalready reports the release.A follow-up that isn't ready says why in the summary.
How the job files them:
RELEASE_FOLLOWUP_ISSUES_TOKEN, which needs only Issues read/write on those three repositories. With it, the workflow callsgh issue createand skips any issue whose exact title already exists (open or closed), so re-runs don't file duplicates.DEPLOY_HOST,DEPLOY_USERandDEPLOY_SSH_KEYare set, the job runs the documented./scripts/deploy.sh allover 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:
deploy.sh alldoesn't change the pins indeploy.env. That's why the job re-checks the demo afterwards rather than assuming the deploy worked.ssh. The snippet inpropr-deployruns on the self-hosted runner, so the server must accept SSH from GitHub-hosted runners.Supporting changes:
cli_version,artifact_name,artifact_id,tarballandtarball_sha256.desktop_version,linux_release_tagandmacos_release_tag..github/CONTRIBUTING.mdlists the full release flow in order: metadata PR, tag, automatic publication,release-rollout.ymland its approvals, follow-up issues, thennpm run release:rollout. It also documents the follow-ups, the token and the deploy secrets.CHANGELOG.mdandpackages/cli/scripts/preview-package.mdare updated too.test/releaseFollowups.test.mjscovers the text generation and the job contract. That includes running the job's shell steps without secrets, and with a fakeghto check that duplicates are skipped. It's added totest: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.
Review digest
Risk-tiered paths
.github/workflows/preview-cli-bundle.yml(+23/−0): CI or workflow file.github/workflows/release-rollout.yml(+120/−0): CI or workflow filepackage.json(+1/−1): dependency manifestscripts/preview-cli-workflow.mjs(+2/−1)scripts/release-followups.mjs(added, +240/−0)scripts/release-rollout-plan.mjs(+4/−0).github/CONTRIBUTING.md(+26/−2)CHANGELOG.md(+11/−0)packages/cli/scripts/preview-package.md(+7/−2)test/previewCliWorkflow.test.mjs(+1/−1)test/releaseFollowups.test.mjs(added, +252/−0)test/releaseRolloutWorkflow.test.mjs(+8/−0)Diff size: 12 files changed, +695/−7 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3716.
💡 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!