Repository navigation
ci(showcase): fail loud on empty redeploy set + alert on starter build failures - #5956
Merged
Merged
Conversation
…d failures Two pre-existing silent-failure gaps in the showcase build/deploy/notify pipeline (surfaced in code review): 1. Green-but-zero-redeploy: the redeploy-staging job computes the redeploy set as (build matrix ∩ build-success). This job only runs when any_success=='true', so an EMPTY intersection means builds succeeded but none maps to a matrix dispatch_name — a dispatch_name/service contract skew. The old code emitted an empty services= and exited 0, going GREEN while redeploying nothing. Now it fails loud with a diagnostic naming both sides of the skew. The legitimate nothing-changed/nothing-succeeded no-ops stay guarded at the job level, so they are unaffected. 2. Starter-failure-invisible: the notify job's needs omitted build-starters, so a failed starter image build produced no Slack alert and no PR comment. Added detect-starter-changes + build-starters to notify.needs, and gave build-starters a per-slot build-result artifact mirroring the main build matrix (distinct starter-build-result-* prefix so it never pollutes the showcase aggregator's build-result-* set).
jpr5
requested review from
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
July 14, 2026 05:16
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
Contributor
|
Size Change: 0 B Total Size: 1.19 MB ℹ️ View Unchanged
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two silent-failure gaps in the showcase build/deploy/notify pipeline
These are pre-existing silent-failure holes surfaced in code review (not
caused by any recent PR). This PR fixes the two load-bearing ones.
1. Green-but-zero-redeploy (silent "we thought we shipped but didn't")
The
redeploy-stagingjob computes the redeploy set as the intersection of thebuild matrix and the build-success set. This job only runs when
aggregate-build-results.outputs.any_success == 'true'(job-levelif:guard). So if that intersection comes back EMPTY, it does NOT mean "nothing
to deploy" — it means at least one slot built successfully yet none of those
successes maps back to a matrix
dispatch_name. That's adispatch_name↔servicecontract skew (the aggregator'sservicevalues and the matrix'sdispatch_namevalues drifted apart).The old code emitted
services=(empty) and exited 0 → the build went GREENwhile redeploying NOTHING, silently.
Fix: on an empty intersection in this any_success-guaranteed step, fail loud
(
::error::+exit 1) with a diagnostic naming both sides of the skew.The legitimate "nothing changed / nothing succeeded" no-op paths are guarded at
the job level (
has_changes=='true' && any_success=='true'), so the fixedstep never runs there — no false-red.
2. Starter build failures had no alert surface (invisible failures)
The
notifyjob'sneeds(and itsif: failure()) omitteddetect-starter-changesandbuild-starters, andbuild-starterswrote noper-slot build-result artifact. So a failed starter image build produced NO
Slack alert and NO PR comment — it shipped silently.
Fix:
detect-starter-changes+build-starterstonotify.needssoif: failure()sees a starter build failure → Slack alert + PR comment.build-startersa per-slot build-result artifact mirroring the mainbuildmatrix (same{service,status}shape,cancelled→skippednormalization,
if: always(),if-no-files-found: error), using adistinct
starter-build-result-*prefix so it never matches theaggregator's
build-result-*download pattern (starters must not pollute theshowcase redeploy set keyed by
dispatch_name).Red / Green
Finding #1 — extracted the step's shell/jq logic and drove it with synthetic
inputs:
RED (pre-fix), any_success=true + empty intersection:
GREEN (post-fix), same inputs:
No-regression: non-empty intersection →
EXIT=0 ; services=shell. Thenothing-changed/nothing-succeeded paths are skipped at the job level (never
reach the step) → no false-red.
Finding #2 — modeled
if: failure()(fires iff anyneedsjob result isfailure):Validation
python3 yaml.safe_loadparses OK.actionlint: only pre-existing findings remain (matrix jq SC2086 + the knowndepot-ubuntu-24.04-4runner-label warning); no new errors in edited regions.yamllint: only pre-existing line-length/document-start/truthy warnings.Scope
Touches only
.github/workflows/showcase_build.yml, and only these twoconcerns. Does NOT touch the
shell_dashboardpaths-filter region (PR #5955'sdomain), nor the other backlog debt (false-root-cause comment, double-alert,
check-lockfile guard). Self-contained; not stacked on #5955.