Skip to content

[3714 by Claude Opus 5.5] Hosted UI deploy must not report success when it did not deploy - #3720

Merged
integry merged 1 commit into
3713-epic-release-flow-z2mfrom
3714/claude-opus-5-5-hosted-ui-deploy-must-not-20261118-1739-lwk
Nov 18, 2026
Merged

integry merged 1 commit into
3713-epic-release-flow-z2mfrom
3714/claude-opus-5-5-hosted-ui-deploy-must-not-20261118-1739-lwk

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3714

Branch: 3714/claude-opus-5-5-hosted-ui-deploy-must-not-20261118-1739-lwk
Commits: ✅ 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 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.

Review digest

Risk-tiered paths

  • High risk (2 files)
    • .github/workflows/docker-images.yml (+7/−2): CI or workflow file
    • .github/workflows/hosted-ui-deploy.yml (+9/−17): CI or workflow file
  • Normal risk: none
  • Low risk (2 files)
    • docs/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!

…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.
@propr-dev

propr-dev Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=3
Triggered automatically by the requested execution settings.

@propr-dev propr-dev Bot added the ultrafix label Nov 18, 2026
@propr-dev

propr-dev Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 3)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The 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 !cancelled() to allow failed or skipped promotion without allowing cancelled runs.

✅ 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 blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Clarify recovery documentation

In docs/docs/operations/hosted-ui-release.md, the assertion that v0.9.2 and earlier reruns “would just skip again” is too broad: the supplied old credential check proceeds when both secrets have been added. Dispatching from main remains useful for obtaining corrected workflow steps, so the recommended recovery remains valid; clarifying the rationale is a non-blocking documentation improvement.

S2: 🟢 Qualify latest publication status

The missing-credentials section says the latest tags are already published, but the changed dependency condition deliberately permits failed or skipped promotion. Say promotion has finished or been skipped, while immutable release artifacts remain published. This would align the explanation with the correctly implemented control flow.

Score

The 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

  • Model: GPT-6 Astra
  • Time: 21s
  • Tokens: 42,461 (41,989 in / 472 out)
  • Cost: $0.31

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1 S2

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 18, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3714 by Claude Opus 5.5] Hosted UI deploy must not report success when it did not deploy ✅❾ [3714 by Claude Opus 5.5] Hosted UI deploy must not report success when it did not deploy Nov 18, 2026
@integry
integry merged commit 6c679ff into 3713-epic-release-flow-z2m Nov 18, 2026
59 checks passed
@propr-dev propr-dev Bot changed the title ✅❾ [3714 by Claude Opus 5.5] Hosted UI deploy must not report success when it did not deploy [3714 by Claude Opus 5.5] Hosted UI deploy must not report success when it did not deploy Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant