Repository navigation
[3714 by Claude Opus 5.5] Hosted UI deploy must not report success when it did not deploy - #3720
Conversation
…tials are missing, instead of ending green. It only runs after the GitHub release and `latest` promotion have finished, so a failure doesn't block or roll back the release. All 15 tests in `test/hostedUiReleaseDeploy.test.mjs` pass. I haven't run the workflow on GitHub Actions, and `actionlint` isn't installed here, so the YAML was only checked by the tests. `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.
|
/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: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR correctly makes missing Cloudflare credentials fail the hosted UI deployment while preserving completed release publication. The changes are focused and merge-ready within scope, conditional on pending checks completing successfully. ✅ Visible deployment failure — The credential check emits an error annotation and summary, then exits 1. Subsequent build and deploy steps retain GitHub Actions’ default success gating. ✅ Release dependency handling — The deploy waits for promotion to finish, explicitly requires successful GitHub release publication, and uses ✅ Focused regression coverage — Tests exercise missing-secret combinations, failure output, and secret non-disclosure. Review was limited to static analysis of the supplied code; no commands or tests were run. Current checks report no failures and five pending checks. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Clarify recovery documentationIn S2: 🟢 Qualify latest publication statusThe missing-credentials section says the ScoreThe implementation satisfies the scoped objective with targeted tests and no verified code blockers. Pending CI and the absence of an executed Actions validation leave modest verification uncertainty. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3714
Branch:
3714/claude-opus-5-5-hosted-ui-deploy-must-not-20261118-1739-lwkCommits: ✅ Changes committed (a460976)
AI Processing Completed
Execution Details:
Summary:
The hosted UI deploy now fails (shows red) when the Cloudflare credentials are missing, instead of ending green. It only runs after the GitHub release and
latestpromotion have finished, so a failure doesn't block or roll back the release. All 15 tests intest/hostedUiReleaseDeploy.test.mjspass. I haven't run the workflow on GitHub Actions, andactionlintisn't installed here, so the YAML was only checked by the tests.hosted-ui-deploy.ymlmainwith thatrelease_tag.configuredoutput 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.main.docker-images.ymldeploy-hosted-uinow also waits forpromote-latest, so the red job appears only after every other release step is done.latestpromotion failed or was skipped (a manual release withoutpush_latest). It is skipped if the GitHub release didn't succeed or the run was cancelled.latestpromotion, 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)main.main. That applies to the current v0.9.2 deploy too.Tests
needsandifondeploy-hosted-ui, and that it has nocontinue-on-errorNo visual preview, since nothing here is visible in the UI.
Review digest
Risk-tiered paths
.github/workflows/docker-images.yml(+7/−2): CI or workflow file.github/workflows/hosted-ui-deploy.yml(+9/−17): CI or workflow filedocs/docs/operations/hosted-ui-release.md(+13/−5)test/hostedUiReleaseDeploy.test.mjs(+24/−19)Diff size: 4 files changed, +53/−43 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3714.
💡 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!