Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/cleanup-stale-schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ env:
jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
strategy:
fail-fast: false
matrix:
Expand All @@ -30,6 +33,13 @@ jobs:
- databricks_catalog
- athena
steps:
- name: Configure AWS credentials
if: matrix.warehouse-type == 'athena'
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_ARN }}
aws-region: eu-west-1

- name: Checkout dbt package
uses: actions/checkout@v6
with:
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/test-warehouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ jobs:
defaults:
run:
working-directory: elementary
permissions:
contents: read
id-token: write
concurrency:
# Serialises runs for the same warehouse × dbt-version × branch.
# The schema name is derived from a hash of this group (see "Write dbt profiles").
Expand All @@ -82,6 +85,12 @@ jobs:
path: elementary
ref: ${{ inputs.elementary-ref }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_ARN }}
aws-region: eu-west-1

- name: Checkout dbt package
uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -382,8 +391,6 @@ jobs:
- name: Run send report
env:
SLACK_TOKEN: ${{ secrets.CI_SLACK_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AZURE_CONNECTION_STRING: ${{ secrets.AZURE_CONNECTION_STRING }}
run: >
edr monitor send-report
Expand All @@ -394,8 +401,6 @@ jobs:
--slack-token "$SLACK_TOKEN"
--slack-channel-name data-ops
--bucket-file-path "ci_reports/report_${{ inputs.warehouse-type }}_${{ env.BRANCH_NAME }}.html"
--aws-access-key-id "$AWS_ACCESS_KEY_ID"
--aws-secret-access-key "$AWS_SECRET_ACCESS_KEY"
--s3-bucket-name elementary-ci-artifacts
--azure-connection-string "$AZURE_CONNECTION_STRING"
--azure-container-name reports
Expand Down
3 changes: 1 addition & 2 deletions tests/profiles/profiles.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ elementary_tests:
region_name: {{ athena_region | toyaml }}
database: awsdatacatalog
schema: {{ schema_name }}
aws_access_key_id: {{ athena_aws_access_key_id | toyaml }}
aws_secret_access_key: {{ athena_aws_secret_access_key | toyaml }}
work_group: oss_tests
threads: 4

# The internal CLI dbt_project uses profile "elementary", so we alias the
Expand Down
Loading