Repository navigation
Name the workflow step that blocked a release deployment (0.3.23) - #36
Merged
Merged
Conversation
A deployment its workflow blocked had only the outcome `workflow_prerequisite_failed`, which names neither the step that failed nor the workflow, so the Releases rows read as if they contradicted Command Center's `migrate failed · 2 blocked`. `deployment-release-history` now reads each deployment with `include=workflow_run`, and a blocked deployment carries `blockedBy`: the workflow run (`workflowRunUid`, `workflowPath`, `workflowState`) and the steps that failed. They are found by walking back from the deployment's own workflow steps through the steps they need, past the ones that did not run, to the ones that failed; when that leads nowhere, every failed step is named. `deployment-run` and `deployment-wait` (now also read with the workflow run) return it too. Checked against Production: every blocked deployment of the last 7 days names a step (`metatables-api.yaml: migrate failed`, `connector.yaml: image failed`, ...), and no other row carries one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 task done
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.
Why
A release deployment its workflow blocked carried only
outcome: workflow_prerequisite_failed. The Releases tab showed "Workflow prerequisite failed" with all stages skipped. Command Center shows the same workflow run asmigrate failed · 2 blocked, so the two looked like they disagreed.What
deployment-release-historyreads withinclude=workflow_run, still one request per page.blockeddeployment carriesblockedBy: { workflowRunUid, workflowPath, workflowState, steps: [{ key, state }] }. The steps are found by walking from the deployment's own workflow steps (workflow_step_keys, or steps with itsdeployment_run_uid) throughneeds, past steps that did not run (blocked,skipped,superseded), to the ones that failed (failed,cancelled,timed_out, …). An agent deployment that needsdeploy_api, which needsmigrate, namesmigrate. If the graph leads nowhere, every failed step is named. Any other row hasblockedBy: null.deployment-runalready read the workflow run, anddeployment-waitnow does too, so both returnblockedBy.Checks
npm test: 203/203, with new tests for the dependency walk (through a blocked step, a cycle, the fallback, no workflow) and for theincludeon the history and wait reads.metatables-api.yaml: migrate failed,connector.yaml: image failed,crm-api.yaml: deploy_api failed, …), and no non-blocked row with ablockedBy. A 100-row page grows to about 97 KB.After merge (needs the owner's go-ahead)
Tag
v0.3.23to publish, then pin it in the Claude Desktop PR that shows the text (mainsequence-sdk/mainsequence-claude-desktop, branchclaude/blocked-reason). The Codex panel needs the same one-line change once this is on npm.🤖 Generated with Claude Code