Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving dbt commands to retrying make command #312

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all 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: 2 additions & 8 deletions .github/workflows/ci_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,12 @@ jobs:
if: matrix.operating-system == 'windows-latest'
run: |
$env:Path += ';C:\Users\runneradmin\.local\bin'
poetry run dbt deps
poetry run dbt build
poetry run dbt docs generate
poetry run dbt-bouncer --config-file ./dbt-bouncer-example.yml
make build-and-run-dbt-bouncer
- name: Regenerate dbt artifacts and run `dbt-bouncer`
if: matrix.operating-system != 'windows-latest'
run: |
poetry run dbt deps
poetry run dbt build
poetry run dbt docs generate
poetry run dbt-bouncer --config-file ./dbt-bouncer-example.yml
(r=3;while ! make build-and-run-dbt-bouncer ; do ((--r))||exit;done)
e2e-tests:
needs: [pre-commit]
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/dbt_artifact_probes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,4 @@

- name: Regenerate dbt artifacts and run `dbt-bouncer`
run: |
poetry run dbt deps
poetry run dbt build
poetry run dbt docs generate
poetry run dbt-bouncer --config-file ./dbt-bouncer-example.yml
(r=3;while ! make build-and-run-dbt-bouncer ; do ((--r))||exit;done)
10 changes: 2 additions & 8 deletions .github/workflows/merge_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,9 @@
if: matrix.operating-system == 'windows-latest'
run: |
$env:Path += ';C:\Users\runneradmin\.local\bin'
poetry run dbt deps
poetry run dbt build
poetry run dbt docs generate
poetry run dbt-bouncer --config-file ./dbt-bouncer-example.yml
make build-and-run-dbt-bouncer
- name: Regenerate dbt artifacts and run `dbt-bouncer`
if: matrix.operating-system != 'windows-latest'
run: |
poetry run dbt deps
poetry run dbt build
poetry run dbt docs generate
poetry run dbt-bouncer --config-file ./dbt-bouncer-example.yml
(r=3;while ! make build-and-run-dbt-bouncer ; do ((--r))||exit;done)
10 changes: 2 additions & 8 deletions .github/workflows/post_release_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,9 @@ jobs:
if: matrix.operating-system == 'windows-latest'
run: |
$env:Path += ';C:\Users\runneradmin\.local\bin'
poetry run dbt deps
poetry run dbt build
poetry run dbt docs generate
poetry run dbt-bouncer --config-file ./dbt-bouncer-example.yml
make build-and-run-dbt-bouncer
- name: Regenerate dbt artifacts and run `dbt-bouncer`
if: matrix.operating-system != 'windows-latest'
run: |
poetry run dbt deps
poetry run dbt build
poetry run dbt docs generate
poetry run dbt-bouncer --config-file ./dbt-bouncer-example.yml
(r=3;while ! make build-and-run-dbt-bouncer ; do ((--r))||exit;done)
7 changes: 7 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# On GitHub the `dbt build` command often returns "leaked semaphores" errors.
build-and-run-dbt-bouncer:
poetry run dbt deps
poetry run dbt build
poetry run dbt docs generate
poetry run dbt-bouncer --config-file ./dbt-bouncer-example.yml

build-artifacts:
poetry run python ./scripts/generate_artifacts.py

Expand Down