Skip to content

fix(test): fail smoke test scripts eagerly if a command fails#1394

Merged
SuperFluffy merged 2 commits intomainfrom
ENG-738/abort-smoke-test-on-failure
Aug 23, 2024
Merged

fix(test): fail smoke test scripts eagerly if a command fails#1394
SuperFluffy merged 2 commits intomainfrom
ENG-738/abort-smoke-test-on-failure

Conversation

@SuperFluffy
Copy link
Copy Markdown
Contributor

@SuperFluffy SuperFluffy commented Aug 22, 2024

Summary

Fail smoke tests eagerly if one command fails.

Background

Smoke test scripts kept executing even though some of their commands failed. This patch uses the bash built-in set -e to immediately exit tests with non-zero exit code.

Changes

  • Use set -e in all smoke tests.

Testing

This correctly fails tests if the conditions don't apply (tested offline and verified in CI).

Related Issues

Partially addresses #1392.
This patch will fail CI until after #1393 is merged.

@github-actions github-actions bot added the cd label Aug 22, 2024
@SuperFluffy SuperFluffy force-pushed the ENG-738/abort-smoke-test-on-failure branch from c0c1f00 to cef17e3 Compare August 22, 2024 13:40
@SuperFluffy SuperFluffy marked this pull request as ready for review August 22, 2024 17:31
@SuperFluffy SuperFluffy requested a review from a team as a code owner August 22, 2024 17:31
@SuperFluffy SuperFluffy requested a review from joroshiba August 22, 2024 17:31
@SuperFluffy SuperFluffy enabled auto-merge August 23, 2024 16:10
@SuperFluffy SuperFluffy added this pull request to the merge queue Aug 23, 2024
Merged via the queue into main with commit fe86755 Aug 23, 2024
@SuperFluffy SuperFluffy deleted the ENG-738/abort-smoke-test-on-failure branch August 23, 2024 16:24
steezeburger added a commit that referenced this pull request Aug 26, 2024
* main:
  fix(test): use correct conditions to dermine smoke test success (#1395)
  fix(test): fail smoke test scripts eagerly if a command fails (#1394)
  fix(cli, tests): add force flag to overwrite withdrawal target path (#1393)
  release(charts): update with biweekly image cuts (#1399)
  Chore(Charts): seq-faucet bech32m chart update (#1301)
  chore: preview environment with astria-geth changes (#1401)
  release: biweekly release cut (#1398)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants