From 94fafb3455894b0b1dfd7e8bdf3867f45c0e31b9 Mon Sep 17 00:00:00 2001 From: Israel Fruchter Date: Thu, 19 Dec 2024 23:45:59 +0200 Subject: [PATCH] feature(git-actions): new action to test hydra on macos --- .github/workflows/test-hydra-macos.yaml | 21 +++++++++++++++++++++ sdcm/utils/aws_okta.py | 1 + 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/test-hydra-macos.yaml diff --git a/.github/workflows/test-hydra-macos.yaml b/.github/workflows/test-hydra-macos.yaml new file mode 100644 index 0000000000..fb51164758 --- /dev/null +++ b/.github/workflows/test-hydra-macos.yaml @@ -0,0 +1,21 @@ +on: + pull_request: + branches: + - master +jobs: + test: + runs-on: macos-13 + env: + AWS_ACCESS_KEY_ID: ${{ secrets.QA_USER_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.QA_USER_AWS_SECRET_ACCESS_KEY }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Docker + uses: douglascamata/setup-docker-macos-action@v1-alpha + - run: | + #!/usr/bin/env bash -x + AWS_OPTIONS=$(env | sed -n 's/^\(AWS_[^=]\+\)=.*/--env \1/p') + echo $AWS_OPTIONS + - name: Run Hydra + run: bash -x ./docker/env/hydra.sh list-images diff --git a/sdcm/utils/aws_okta.py b/sdcm/utils/aws_okta.py index 3da699d367..25e3bd221d 100644 --- a/sdcm/utils/aws_okta.py +++ b/sdcm/utils/aws_okta.py @@ -40,6 +40,7 @@ def can_get_to_aws_account(): assert response['Account'] == account_id LOGGER.info("logged in as %s", response['Arn']) except (NoCredentialsError, AssertionError): + LOGGER.exception("failed") return False return True