<#767 Show failed command after atmos workflow fai...
# atmos-dev
g
#767 Show failed command after atmos workflow failure Pull request opened by Cerebrovinny What • Added improved workflow failure handling with clear error messages • Added
--from-step
flag to resume workflows from specific steps • Added documentation and help text for workflow failure handling • Added example workflow demonstrating failure scenarios Why • Makes it easier to debug and fix workflow failures by showing: • Which step failed • The exact command that failed • How to resume from the failed step • Saves time by allowing users to resume workflows from failed steps instead of restarting from beginning • Improves user experience with clear guidance on how to recover from failures Example workflow demonstrating the feature: workflows: test-1: description: "Test workflow with intentionally failing steps" steps: - name: "step-1" type: shell command: "echo 'This step will succeed' && exit 0" - name: "step-2" type: shell command: "echo 'This step will fail' && exit 1" - name: "step-3" type: shell command: "echo 'This step should not execute'" Tests Last test after requested changes @Erik Osterman (Cloud Posse) @aknysh When step-2 fails, users will see: CleanShot 2024-11-08 at 20 00 10 references DEV-2717 Summary by CodeRabbit • New Features • Enhanced error handling during workflow execution, providing detailed error messages and instructions for resuming from failed steps. • Updated command documentation to include failure handling and resume functionality with examples. • Documentation • Added a new section on "Workflow Failure Handling and Resume" to clarify user experience during workflow failures. • Clarified the "Stack Precedence" section to improve understanding of stack definitions in workflows. cloudposse/atmos GitHub Actions: release GitHub Actions: vhs ✅ 27 other checks have passed 27/29 successful checks
🙌 2
e
@Dan Miller (Cloud Posse) ☝️ this was something you had requested, I think.
d
great! I'll try it out next time I use workflows