Skip to content

v1.116.0

Compare
Choose a tag to compare
@cloudposse-releaser cloudposse-releaser released this 05 Dec 19:36
· 59 commits to refs/heads/main since this release
0ff08d5
Show failed command and how to resume after `atmos workflow` failure @Cerebrovinny (#767)

What

  • Show failed command and how to resume after atmos workflow failure
  • Added improved workflow failure handling with clear error messages
  • 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

Tests

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'"

When step-2 fails, users will see:

CleanShot 2024-11-08 at 20 00 10