Skip to content

Commit c99d612

Browse files
authored
Merge pull request #1200 from dlt-hub/devel
master merge for 0.4.8
2 parents e9c8f61 + 7939749 commit c99d612

File tree

560 files changed

+11014
-6843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

560 files changed

+11014
-6843
lines changed

.github/workflows/deploy_docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: deploy docs
1+
name: docs | deploy docs
22

33
on:
44
schedule:
@@ -11,6 +11,7 @@ env:
1111
jobs:
1212
deploy:
1313
runs-on: ubuntu-latest
14+
if: ${{ !github.event.pull_request.head.repo.fork }}
1415
steps:
1516
- name: Trigger deploy hook
1617
run: curl ${{ env.NETLIFY_DOCS_PRODUCTION_DEPLOY_HOOK }} -X POST

.github/workflows/get_docs_changes.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: get docs changes
1+
name: util | get docs changes
22

33
on:
44
workflow_call:
@@ -13,6 +13,7 @@ env:
1313

1414
jobs:
1515
get_docs_changes:
16+
name: docs changes
1617
runs-on: ubuntu-latest
1718
outputs:
1819
changes_outside_docs: ${{ steps.check_changes.outputs.changes_outside_docs }}

.github/workflows/lint.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
name: lint
2+
name: lint | code & tests
33

44
on:
55
pull_request:
@@ -14,10 +14,11 @@ concurrency:
1414

1515
jobs:
1616
get_docs_changes:
17+
name: docs changes
1718
uses: ./.github/workflows/get_docs_changes.yml
1819

1920
run_lint:
20-
name: Lint
21+
name: lint
2122
needs: get_docs_changes
2223
if: needs.get_docs_changes.outputs.changes_outside_docs == 'true'
2324
strategy:
@@ -65,14 +66,8 @@ jobs:
6566
export PATH=$PATH:"/c/Program Files/usr/bin" # needed for Windows
6667
make lint
6768
68-
# - name: print envs
69-
# run: |
70-
# echo "The GitHub Actor's username is: $GITHUB_ACTOR"
71-
# echo "The GitHub repo owner is: $GITHUB_REPOSITORY_OWNER"
72-
# echo "The GitHub repo is: $GITHUB_REPOSITORY"
73-
7469
matrix_job_required_check:
75-
name: Lint results
70+
name: lint | code & tests
7671
needs: run_lint
7772
runs-on: ubuntu-latest
7873
if: always()

.github/workflows/test_airflow.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test airflow integration
1+
name: tools | airflow
22

33
on:
44
pull_request:
@@ -13,10 +13,11 @@ concurrency:
1313

1414
jobs:
1515
get_docs_changes:
16+
name: docs changes
1617
uses: ./.github/workflows/get_docs_changes.yml
1718

1819
run_airflow:
19-
name: Tests Airflow integration
20+
name: tools | airflow tests
2021
needs: get_docs_changes
2122
if: needs.get_docs_changes.outputs.changes_outside_docs == 'true'
2223
runs-on: ubuntu-latest

.github/workflows/test_build_images.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test build docker images
1+
name: tools | docker images
22

33
on:
44
pull_request:
@@ -13,10 +13,11 @@ concurrency:
1313

1414
jobs:
1515
get_docs_changes:
16+
name: docs changes
1617
uses: ./.github/workflows/get_docs_changes.yml
1718

1819
run_airflow:
19-
name: Build alpine and airflow images
20+
name: tools | docker images build
2021
needs: get_docs_changes
2122
if: needs.get_docs_changes.outputs.changes_outside_docs == 'true'
2223
runs-on: ubuntu-latest
@@ -38,4 +39,4 @@ jobs:
3839
installer-parallel: true
3940

4041
- name: Build images
41-
run: make test-build-images
42+
run: make test-build-images

.github/workflows/test_common.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test common
1+
name: common | common
22

33
on:
44
pull_request:
@@ -16,10 +16,11 @@ env:
1616

1717
jobs:
1818
get_docs_changes:
19+
name: docs changes
1920
uses: ./.github/workflows/get_docs_changes.yml
2021

2122
run_common:
22-
name: Tests common dlt code
23+
name: test
2324
needs: get_docs_changes
2425
if: needs.get_docs_changes.outputs.changes_outside_docs == 'true'
2526
strategy:
@@ -52,6 +53,18 @@ jobs:
5253
with:
5354
python-version: ${{ matrix.python-version }}
5455

56+
- name: Install tzdata on windows
57+
run: |
58+
cd %USERPROFILE%
59+
curl https://data.iana.org/time-zones/releases/tzdata2021e.tar.gz --output tzdata.tar.gz
60+
mkdir tzdata
61+
tar --extract --file tzdata.tar.gz --directory tzdata
62+
mkdir %USERPROFILE%\Downloads\tzdata
63+
copy tzdata %USERPROFILE%\Downloads\tzdata
64+
curl https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windowsZones.xml --output %USERPROFILE%\Downloads\tzdata\windowsZones.xml
65+
if: runner.os == 'Windows'
66+
shell: cmd
67+
5568
- name: Install Poetry
5669
# https://github.com/snok/install-poetry#running-on-windows
5770
uses: snok/[email protected]
@@ -135,7 +148,7 @@ jobs:
135148
# shell: cmd
136149

137150
matrix_job_required_check:
138-
name: Common tests
151+
name: common | common tests
139152
needs: run_common
140153
runs-on: ubuntu-latest
141154
if: always()

.github/workflows/test_dbt_cloud.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
name: test dbt cloud
2+
name: tools | dbt cloud
33

44
on:
55
pull_request:
@@ -22,22 +22,18 @@ env:
2222

2323
jobs:
2424
get_docs_changes:
25+
name: docs changes
2526
uses: ./.github/workflows/get_docs_changes.yml
26-
if: ${{ !github.event.pull_request.head.repo.fork }}
27+
if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}}
2728

2829
run_dbt_cloud:
29-
name: Tests dbt cloud
30+
name: tools | dbt cloud tests
3031
needs: get_docs_changes
3132
if: needs.get_docs_changes.outputs.changes_outside_docs == 'true'
32-
strategy:
33-
fail-fast: false
34-
matrix:
35-
os: ["ubuntu-latest"]
36-
# os: ["ubuntu-latest", "macos-latest", "windows-latest"]
3733
defaults:
3834
run:
3935
shell: bash
40-
runs-on: ${{ matrix.os }}
36+
runs-on: "ubuntu-latest"
4137

4238
steps:
4339

@@ -70,21 +66,4 @@ jobs:
7066

7167
- run: |
7268
poetry run pytest tests/helpers/dbt_cloud_tests -k '(not venv)'
73-
if: runner.os != 'Windows'
7469
name: Run dbt cloud - Linux/MAC
75-
- run: |
76-
poetry run pytest tests/helpers/dbt_cloud_tests -k "(not venv)"
77-
if: runner.os == 'Windows'
78-
name: Run dbt cloud - Windows
79-
shell: cmd
80-
81-
matrix_job_required_check:
82-
name: dbt cloud tests
83-
needs: run_dbt_cloud
84-
runs-on: ubuntu-latest
85-
if: always()
86-
steps:
87-
- name: Check matrix job results
88-
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
89-
run: |
90-
echo "One or more matrix job tests failed or were cancelled. You may need to re-run them." && exit 1

.github/workflows/test_dbt_runner.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
name: test dbt runner
2+
name: tools | dbt runner
33

44
on:
55
pull_request:
@@ -19,22 +19,18 @@ env:
1919

2020
jobs:
2121
get_docs_changes:
22+
name: docs changes
2223
uses: ./.github/workflows/get_docs_changes.yml
23-
if: ${{ !github.event.pull_request.head.repo.fork }}
24+
if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}}
2425

2526
run_dbt:
26-
name: Tests dbt runner
27+
name: tools | dbt runner tests
2728
needs: get_docs_changes
2829
if: needs.get_docs_changes.outputs.changes_outside_docs == 'true'
29-
strategy:
30-
fail-fast: false
31-
matrix:
32-
os: ["ubuntu-latest"]
33-
# os: ["ubuntu-latest", "macos-latest", "windows-latest"]
3430
defaults:
3531
run:
3632
shell: bash
37-
runs-on: ${{ matrix.os }}
33+
runs-on: "ubuntu-latest"
3834

3935
steps:
4036

@@ -84,21 +80,4 @@ jobs:
8480

8581
- run: |
8682
poetry run pytest tests/helpers/dbt_tests --ignore=tests/helpers/dbt_tests/local -k '(not local)'
87-
if: runner.os != 'Windows'
8883
name: Run dbt runner with venv - Linux/MAC
89-
- run: |
90-
poetry run pytest tests/helpers/dbt_tests --ignore=tests/helpers/dbt_tests/local -m "not forked" -k "(not local)"
91-
if: runner.os == 'Windows'
92-
name: Run dbt runner with venv - Windows
93-
shell: cmd
94-
95-
matrix_job_required_check:
96-
name: dbt runner tests
97-
needs: run_dbt
98-
runs-on: ubuntu-latest
99-
if: always()
100-
steps:
101-
- name: Check matrix job results
102-
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
103-
run: |
104-
echo "One or more matrix job tests failed or were cancelled. You may need to re-run them." && exit 1

.github/workflows/test_destination_athena.yml

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11

2-
name: test athena
2+
name: dest | athena
33

44
on:
55
pull_request:
66
branches:
77
- master
88
- devel
99
workflow_dispatch:
10+
schedule:
11+
- cron: '0 2 * * *'
1012

1113
concurrency:
1214
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -20,27 +22,23 @@ env:
2022
RUNTIME__DLTHUB_TELEMETRY_SEGMENT_WRITE_KEY: TLJiyRkGVZGCi2TtjClamXpFcxAA1rSB
2123
ACTIVE_DESTINATIONS: "[\"athena\"]"
2224
ALL_FILESYSTEM_DRIVERS: "[\"memory\"]"
23-
EXCLUDED_DESTINATION_CONFIGURATIONS: "[\"athena-parquet-staging-iceberg\"]"
25+
EXCLUDED_DESTINATION_CONFIGURATIONS: "[\"athena-parquet-staging-iceberg\", \"athena-parquet-no-staging-iceberg\"]"
2426

2527
jobs:
2628
get_docs_changes:
29+
name: docs changes
2730
uses: ./.github/workflows/get_docs_changes.yml
2831
# Tests that require credentials do not run in forks
29-
if: ${{ !github.event.pull_request.head.repo.fork }}
32+
if: ${{ !github.event.pull_request.head.repo.fork || contains(github.event.pull_request.labels.*.name, 'ci from fork')}}
3033

3134
run_loader:
32-
name: test destination athena
35+
name: dest | athena tests
3336
needs: get_docs_changes
3437
if: needs.get_docs_changes.outputs.changes_outside_docs == 'true'
35-
strategy:
36-
fail-fast: false
37-
matrix:
38-
os: ["ubuntu-latest"]
39-
# os: ["ubuntu-latest", "macos-latest", "windows-latest"]
4038
defaults:
4139
run:
4240
shell: bash
43-
runs-on: ${{ matrix.os }}
41+
runs-on: "ubuntu-latest"
4442

4543
steps:
4644

@@ -75,22 +73,11 @@ jobs:
7573
run: pwd && echo "$DLT_SECRETS_TOML" > tests/.dlt/secrets.toml
7674

7775
- run: |
78-
poetry run pytest tests/load
79-
if: runner.os != 'Windows'
80-
name: Run tests Linux/MAC
76+
poetry run pytest tests/load -m "essential"
77+
name: Run essential tests Linux
78+
if: ${{ ! (contains(github.event.pull_request.labels.*.name, 'ci full') || !github.event_name == 'schedule')}}
79+
8180
- run: |
8281
poetry run pytest tests/load
83-
if: runner.os == 'Windows'
84-
name: Run tests Windows
85-
shell: cmd
86-
87-
matrix_job_required_check:
88-
name: Redshift, PostgreSQL and DuckDB tests
89-
needs: run_loader
90-
runs-on: ubuntu-latest
91-
if: always()
92-
steps:
93-
- name: Check matrix job results
94-
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
95-
run: |
96-
echo "One or more matrix job tests failed or were cancelled. You may need to re-run them." && exit 1
82+
name: Run all tests Linux
83+
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci full') || github.event_name == 'schedule'}}

0 commit comments

Comments
 (0)