Commit c8a0e07
abs2023
fix(cicd): allow skipped Deploy-to-Morpheus-P-Node to satisfy C-Node deploy needs
Root cause of the first v7 test-branch run (GH Actions run 24796856145):
the drain job ran and deregistered the dev C-Node from both NLB target
groups, then Deploy-to-Morpheus-C-Node was silently skipped because its
implicit success() guard propagated the skip from Deploy-to-Morpheus-P-Node
(which is main-only and intentionally skips on test pushes). That left
dev with the old C-Node task running in ECS but with no load-balancer
membership until we manually re-registered it.
Fix:
- Add an explicit `if` to Deploy-to-Morpheus-C-Node that:
- Requires GHCR build + drain success.
- Accepts Deploy-to-Morpheus-P-Node.result in {success, skipped}.
- Wraps in `!cancelled()` so manual cancels still short-circuit.
- Rewrite the inline comment that previously (incorrectly) claimed
skipped jobs are treated as successful for dependency resolution;
they are not.
No change to the deploy logic itself, the drain job, or any other
workflow sequencing. This is a pure `needs` / guard correctness fix.
Made-with: Cursor1 parent 68e39db commit c8a0e07
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1297 | 1297 | | |
1298 | 1298 | | |
1299 | 1299 | | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
1300 | 1312 | | |
| 1313 | + | |
1301 | 1314 | | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
1302 | 1318 | | |
1303 | | - | |
| 1319 | + | |
1304 | 1320 | | |
1305 | 1321 | | |
1306 | 1322 | | |
1307 | 1323 | | |
1308 | 1324 | | |
1309 | 1325 | | |
1310 | | - | |
1311 | | - | |
1312 | 1326 | | |
1313 | 1327 | | |
1314 | 1328 | | |
| |||
0 commit comments