Skip to content

Commit

Permalink
env: handle error during s3 gw deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Zayats <zayatsevgeniy@nspcc.io>
  • Loading branch information
Evgeniy Zayats committed Oct 24, 2024
1 parent 394868e commit 2014c42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ jobs:
neofs_other_expiration_period: ${{ vars.OTHER_EXPIRATION_PERIOD }}
neofs_testcases_ref: ${{ inputs.neofs_testcases_ref }}
tests_parallel_level: 3
os: '[{"runner": "ubuntu-latest"},{"runner": "macos-14"}]'
os: '[{"runner": "macos-14"}]'
secrets: inherit
8 changes: 7 additions & 1 deletion neofs-testlib/neofs_testlib/env/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,13 @@ def start(self, fresh=True):
self._generate_config()
logger.info(f"Launching S3 GW: {self}")
self._launch_process()
self._wait_until_ready()
try:
self._wait_until_ready()
except Exception as e:
allure.attach.file(self.stderr, name="s3 gw stderr", extension="txt")
allure.attach.file(self.stdout, name="s3 gw stdout", extension="txt")
allure.attach.file(self.config_path, name="s3 gw config", extension="txt")
raise e

@allure.step("Stop s3 gw")
def stop(self):
Expand Down

0 comments on commit 2014c42

Please sign in to comment.