Skip to content

Commit 64e2d01

Browse files
authored
Merge branch 'main' into di-447-update-data-quality-tests
2 parents ccd1a92 + 64badf3 commit 64e2d01

File tree

112 files changed

+3714
-6081
lines changed

Some content is hidden

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

112 files changed

+3714
-6081
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This file specifies owners for pull request approval
2+
# See https://help.github.com/articles/about-code-owners/
3+
4+
* @LBHackney-IT/data-analytics-platform @LBHackney-IT/data-insight

.github/workflows/deploy_terraform.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ on:
7777
jobs:
7878
deploy:
7979
name: Terraform Apply
80-
runs-on: ubuntu-20.04
80+
runs-on: ubuntu-24.04
8181
environment: ${{ inputs.environment }}
8282
steps:
8383
- name: Checkout Source
@@ -86,7 +86,7 @@ jobs:
8686
- name: Set Github Auth
8787
run: git config --global url."https://oauth2:${{ secrets.TERRAFORM_SECRET_TOKEN}}@github.com".insteadOf https://github.com
8888
shell: bash
89-
89+
9090
- name: Install Terraform
9191
uses: hashicorp/[email protected]
9292
with:

.github/workflows/deploy_terraform_networking.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ on:
7373
jobs:
7474
deploy:
7575
name: Terraform Apply
76-
runs-on: ubuntu-20.04
76+
runs-on: ubuntu-24.04
7777
environment: ${{ inputs.environment }}
7878
steps:
7979
- name: Checkout Source
8080
uses: actions/checkout@v3
8181

8282
- name: Set Github Auth
8383
run: git config --global url."https://oauth2:${{ secrets.TERRAFORM_SECRET_TOKEN}}@github.com".insteadOf https://github.com
84-
shell: bash
84+
shell: bash
8585

8686
- name: Install Terraform
8787
uses: hashicorp/[email protected]

.github/workflows/lint-terraform.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ on:
6666
jobs:
6767
lint:
6868
name: Terraform Lint
69-
runs-on: ubuntu-20.04
69+
runs-on: ubuntu-24.04
7070
steps:
7171
- name: Checkout
7272
uses: actions/checkout@v3
7373

7474
- name: Set Github Auth
7575
run: git config --global url."https://oauth2:${{ secrets.TERRAFORM_SECRET_TOKEN}}@github.com".insteadOf https://github.com
7676
shell: bash
77-
77+
7878
- name: Install Terraform
7979
uses: hashicorp/[email protected]
8080
with:

.github/workflows/plan-terraform.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ on:
6666
jobs:
6767
plan:
6868
name: Terraform Plan
69-
runs-on: ubuntu-20.04
69+
runs-on: ubuntu-24.04
7070
steps:
7171
- uses: terraform-compliance/github_action@main
7272

7373
- name: Checkout
7474
uses: actions/checkout@v3
75-
75+
7676
- name: Set Github Auth
7777
run: git config --global url."https://oauth2:${{ secrets.TERRAFORM_SECRET_TOKEN}}@github.com".insteadOf https://github.com
7878
shell: bash
79-
79+
8080
- name: Install Terraform
8181
uses: hashicorp/[email protected]
8282
with:

.github/workflows/test-python-and-lambda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
tests:
88
name: Test Python Jobs & Lambda Functions
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-24.04
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v3

.github/workflows/unlock_terraform_state.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ on:
7676
jobs:
7777
deploy:
7878
name: Terraform State Unlock
79-
runs-on: ubuntu-20.04
79+
runs-on: ubuntu-24.04
8080
steps:
8181
- name: Checkout Source
8282
uses: actions/checkout@v3

.github/workflows/validate-and-lint-terraform.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ on:
6666
jobs:
6767
validate:
6868
name: Terraform Validate
69-
runs-on: ubuntu-20.04
69+
runs-on: ubuntu-24.04
7070
steps:
7171
- name: Checkout
7272
uses: actions/checkout@v3
@@ -108,15 +108,15 @@ jobs:
108108
109109
lint:
110110
name: Terraform Lint
111-
runs-on: ubuntu-20.04
111+
runs-on: ubuntu-24.04
112112
steps:
113113
- name: Checkout
114114
uses: actions/checkout@v3
115115

116116
- name: Set Github Auth
117117
run: git config --global url."https://oauth2:${{ secrets.TERRAFORM_SECRET_TOKEN}}@github.com".insteadOf https://github.com
118118
shell: bash
119-
119+
120120
- name: Install Terraform
121121
uses: hashicorp/[email protected]
122122
with:

docker/sql-to-parquet/entrypoint.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,17 @@ echo "Snapshot Id - $SNAPSHOT_ID"
1919
FILENAME="liberator_dump_${DATE}"
2020
DBNAME="liberator"
2121

22-
MYSQL_CONN_PARAMS="--user=${MYSQL_USER} --password=${MYSQL_PASS} --host=${MYSQL_HOST}"
22+
echo "Retrieving pem file..."
23+
wget -O /tmp/rds-combined-ca-bundle.pem https://truststore.pki.rds.amazonaws.com/eu-west-2/eu-west-2-bundle.pem
24+
25+
MYSQL_CONN_PARAMS="--user=${MYSQL_USER} --password=${MYSQL_PASS} --host=${MYSQL_HOST} --ssl-ca=/tmp/rds-combined-ca-bundle.pem"
26+
27+
OTHER_FLAGS=${MYSQL_OTHER_FLAGS:-""}
28+
29+
if [ -n "$OTHER_FLAGS" ]; then
30+
MYSQL_CONN_PARAMS="$MYSQL_CONN_PARAMS $OTHER_FLAGS"
31+
echo "Additional MySQL flags: $OTHER_FLAGS"
32+
fi
2333

2434
echo "Deleting old snapshots in database..."
2535
python3 delete_db_snapshots_in_db.py
@@ -50,3 +60,4 @@ echo "Taking snapshot of RDS database..."
5060
aws rds create-db-snapshot --db-instance-identifier "${RDS_INSTANCE_ID}" --db-snapshot-identifier "${SNAPSHOT_ID}"
5161

5262
echo "Done"
63+

external-lib/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
all: target/java-lib-1.0-SNAPSHOT-jar-with-dependencies.jar target/deequ-1.0.3.jar target/pydeequ-1.0.1.zip
44

55
target/java-lib-1.0-SNAPSHOT-jar-with-dependencies.jar: pom.xml
6-
mvn assembly:assembly -DdescriptorId=jar-with-dependencies
6+
mvn clean package
77

88
target/deequ-1.0.3.jar:
99
wget https://repo1.maven.org/maven2/com/amazon/deequ/deequ/1.0.3/deequ-1.0.3.jar -O target/deequ-1.0.3.jar

0 commit comments

Comments
 (0)