Skip to content

Commit 01673c0

Browse files
authored
Merge pull request #547 from OP-TED/feature/TED4-170-feedback
Feature/ted4 170 feedback
2 parents f6feb9f + 5ae9c66 commit 01673c0

21 files changed

Lines changed: 558 additions & 2 deletions

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.jar filter=lfs diff=lfs merge=lfs -text

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
python-version: 3.8
2626
- name: Install dependencies
2727
run: |
28+
sudo apt-get update
2829
sudo apt-get install -y libssl-dev libcurl4-openssl-dev
2930
python -m pip install --upgrade setuptools pip wheel
3031
make install

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,5 @@ package.json
118118
.limes/*
119119
*.ser
120120
.DS_Store
121-
.scannerwork/*
121+
.scannerwork/*
122+
/infra/alpine/libraries/

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ create-env-airflow:
9595
@ cp requirements.txt ./infra/airflow/
9696
@ cp -r ted_sws ./infra/airflow/
9797
@ cp -r dags ./infra/airflow/
98+
@ cp -r libraries ./infra/airflow/
9899

99100

100101
build-airflow: guard-ENVIRONMENT create-env-airflow build-externals

dags/pipelines/notice_processor_pipelines.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def notice_transformation_pipeline(notice: Notice, mongodb_client: MongoClient)
3838
message=f"This notice {notice.ted_id} is not eligible for transformation. Notice info: "
3939
f"form_number=[{notice.normalised_metadata.form_number}],"
4040
f" eform_subtype=[{notice.normalised_metadata.eforms_subtype}], "
41-
f"xsd_version=[{notice.normalised_metadata.xsd_version}]. Check mapping suites!",
41+
f"xsd_version=[{notice.normalised_metadata.xsd_version}], "
42+
f"eform_sdk_version=[{notice.normalised_metadata.eform_sdk_version}]. Check mapping suites!",
4243
notice_id=notice.ted_id, domain_action=notice_transformation_pipeline.__name__, notice_status=notice.status,
4344
notice_form_number=notice.normalised_metadata.form_number,
4445
notice_eforms_subtype=notice.normalised_metadata.eforms_subtype)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
excludePatterns=**/src/docs/**/*,**/src/tests/**/*

filters/odc-exclusion.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
excludePatterns=**/src/docs/**/*,**/src/tests/**/*

infra/airflow-cluster/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ RUN apt-get update && apt-get install -y \
1515
# back to normal user
1616
USER airflow
1717

18+
COPY libraries /home/airflow
19+
1820
# requirements.txt shall be made availble from the **ted-sws** GitHub repository
1921
COPY requirements.txt /opt/airflow
2022

infra/airflow/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ RUN apt-get update && apt-get install -y \
1515
# back to normal user
1616
USER airflow
1717

18+
COPY libraries /home/airflow
1819
# requirements.txt shall be made availble from the **ted-sws** GitHub repository
1920
COPY requirements.txt /opt/airflow
2021

2122
# working in the /opt/airflow
2223
WORKDIR /opt/airflow
24+
2325
RUN mkdir -p ./dags ./ted_sws
2426

2527

libraries/.limes/limes.jar

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:88363c8d83f41d7a6dec9ea9b66cb4a72dd2f022343f58ec03dfb814722b43b6
3+
size 128740593

0 commit comments

Comments
 (0)