Skip to content

Commit 6944c4f

Browse files
committed
Merge branch 'develop'
2 parents 39c497b + 146abdb commit 6944c4f

File tree

109 files changed

+2890
-308
lines changed

Some content is hidden

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

109 files changed

+2890
-308
lines changed

.env.docker

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ ONETL_SFTP_PORT=2222
8787
ONETL_SFTP_USER=onetl
8888
ONETL_SFTP_PASSWORD=AesujeifohgoaCu0Boosiet5aimeitho
8989

90+
# Samba
91+
ONETL_SAMBA_HOST=samba
92+
ONETL_SAMBA_PROTOCOL=SMB
93+
ONETL_SAMBA_UID=1000
94+
ONETL_SAMBA_GID=1000
95+
ONETL_SAMBA_PORT=445
96+
ONETL_SAMBA_SHARE=SmbShare
97+
ONETL_SAMBA_USER=onetl
98+
ONETL_SAMBA_PASSWORD=awd123fd1
99+
90100
# Webdav
91101
ONETL_WEBDAV_HOST=webdav
92102
ONETL_WEBDAV_PORT=80

.env.local

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ export ONETL_SFTP_PORT=2222
8787
export ONETL_SFTP_USER=onetl
8888
export ONETL_SFTP_PASSWORD=AesujeifohgoaCu0Boosiet5aimeitho
8989

90+
# Samba
91+
export ONETL_SAMBA_HOST=localhost
92+
export ONETL_SAMBA_PROTOCOL=SMB
93+
export ONETL_SAMBA_UID=1000
94+
export ONETL_SAMBA_GID=1000
95+
export ONETL_SAMBA_PORT=445
96+
export ONETL_SAMBA_SHARE=SmbShare
97+
export ONETL_SAMBA_USER=onetl
98+
export ONETL_SAMBA_PASSWORD=awd123fd1
99+
90100
# Webdav
91101
export ONETL_WEBDAV_HOST=localhost
92102
export ONETL_WEBDAV_PORT=8000

.github/workflows/data/greenplum/matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ min: &min
77

88
max: &max
99
# Greenplum connector does not support Spark 3.3+
10-
spark-version: 3.2.3
10+
spark-version: 3.2.4
1111
python-version: '3.10'
1212
java-version: 11
1313
os: ubuntu-latest

.github/workflows/data/local-fs/matrix.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ min: &min
44
java-version: 8
55
os: ubuntu-latest
66

7-
avro: &avro
7+
min_avro: &min_avro
88
spark-version: 2.4.8
99
python-version: '3.7'
1010
java-version: 8
1111
os: ubuntu-latest
1212

13+
min_excel: &min_excel
14+
spark-version: 3.2.4
15+
python-version: '3.7'
16+
java-version: 8
17+
os: ubuntu-latest
18+
1319
max: &max
1420
spark-version: 3.4.1
1521
python-version: '3.11'
@@ -25,12 +31,15 @@ latest: &latest
2531
matrix:
2632
small:
2733
- <<: *max
28-
- <<: *avro
34+
- <<: *min_avro
35+
- <<: *min_excel
2936
full:
3037
- <<: *min
31-
- <<: *avro
38+
- <<: *min_avro
39+
- <<: *min_excel
3240
- <<: *max
3341
nightly:
3442
- <<: *min
35-
- <<: *avro
43+
- <<: *min_avro
44+
- <<: *min_excel
3645
- <<: *latest

.github/workflows/data/mongodb/matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
min: &min
22
# MongoDB connector does not support Spark 2
3-
spark-version: 3.2.3
3+
spark-version: 3.2.4
44
python-version: '3.7'
55
java-version: 8
66
os: ubuntu-latest

.github/workflows/data/s3/matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ min: &min
22
# prior image versions returns empty content of bucket root, some kind of bug
33
minio-version: 2021.3.17
44
# Minimal Spark version with Hadoop 3.x support
5-
spark-version: 3.2.3
5+
spark-version: 3.2.4
66
python-version: '3.7'
77
java-version: 8
88
os: ubuntu-latest
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
min: &min
2+
python-version: '3.7'
3+
os: ubuntu-latest
4+
5+
max: &max
6+
python-version: '3.11'
7+
os: ubuntu-latest
8+
9+
matrix:
10+
small:
11+
- server-version: latest
12+
<<: *max
13+
full: &full
14+
- server-version: latest
15+
<<: *min
16+
- server-version: latest
17+
<<: *max
18+
nightly: *full
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/samba*

.github/workflows/get-matrix.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ on:
4141
value: ${{ jobs.get-matrix.outputs.matrix-s3 }}
4242
matrix-sftp:
4343
value: ${{ jobs.get-matrix.outputs.matrix-sftp }}
44+
matrix-samba:
45+
value: ${{ jobs.get-matrix.outputs.matrix-samba }}
4446
matrix-webdav:
4547
value: ${{ jobs.get-matrix.outputs.matrix-webdav }}
4648

@@ -69,6 +71,7 @@ jobs:
6971
matrix-hdfs: ${{ toJson(fromJson(steps.matrix-hdfs.outputs.result)[steps.key-hdfs.outputs.key]) }}
7072
matrix-s3: ${{ toJson(fromJson(steps.matrix-s3.outputs.result)[steps.key-s3.outputs.key]) }}
7173
matrix-sftp: ${{ toJson(fromJson(steps.matrix-sftp.outputs.result)[steps.key-sftp.outputs.key]) }}
74+
matrix-samba: ${{ toJson(fromJson(steps.matrix-samba.outputs.result)[steps.key-samba.outputs.key]) }}
7275
matrix-webdav: ${{ toJson(fromJson(steps.matrix-webdav.outputs.result)[steps.key-webdav.outputs.key]) }}
7376
steps:
7477
- name: Checkout code
@@ -635,6 +638,36 @@ jobs:
635638
with:
636639
cmd: yq -o=json '.matrix' .github/workflows/data/sftp/matrix.yml
637640

641+
- name: Check if Samba files are changed
642+
id: changed-samba
643+
uses: tj-actions/changed-files@v35
644+
with:
645+
files_from_source_file: .github/workflows/data/samba/tracked.txt
646+
files_ignore_from_source_file: .github/workflows/data/samba/ignored.txt
647+
648+
- name: Print Samba files changed
649+
run: |
650+
echo '${{ steps.changed-samba.outputs.all_changed_files }}'
651+
652+
- name: Calculate Samba matrix key
653+
id: key-samba
654+
run: |
655+
if ${{ inputs.nightly }}; then
656+
key=nightly
657+
elif ${{ steps.changed-base.outputs.any_changed }} || ${{ steps.changed-file.outputs.any_changed }} || ${{ steps.changed-samba.outputs.any_changed }}; then
658+
key=full
659+
else
660+
key=small
661+
fi
662+
echo key=$key
663+
echo key=$key >> $GITHUB_OUTPUT
664+
665+
- name: Get Samba matrix
666+
id: matrix-samba
667+
uses: mikefarah/yq@v4.33.3
668+
with:
669+
cmd: yq -o=json '.matrix' .github/workflows/data/samba/matrix.yml
670+
638671
- name: Check if WebDAV files are changed
639672
id: changed-webdav
640673
uses: tj-actions/changed-files@v35

0 commit comments

Comments
 (0)