tpagectl: deployment promote swallows site-status URL fetch error #569
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/thwap-pagesd#569
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
runPromote(internal/tpagectl/deployment/promote.go), the site-status GET used to fetch the URL is silently best-effort:if err := c.Get(...); err == nil && status.URL != "". If the status fetch fails (e.g. 500, auth error, transient network issue), the error is dropped and the user sees the "Deployed …" line with no URL and no indication anything failed.Suggested fix: surface the status-fetch failure (e.g. log/warn or append the error to the output) rather than swallowing it entirely.
Ref: PR #568
Fixed in #634:
deployment promoteprints a warning when the site-URL fetch fails instead of silently swallowing the error, and still reports deployment success.