Skip to content

Commit 34c24cd

Browse files
committed
Merge branch 'main' of github.com:meaningfy-ws/ted-sws into feature/TED-524
� Conflicts: � .gitignore � infra/fuseki/docker-compose.yml
2 parents 7ec09db + 4ae2f00 commit 34c24cd

200 files changed

Lines changed: 26930 additions & 555 deletions

File tree

Some content is hidden

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

.github/workflows/unit-tests-hermes.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- name: Get Saxon
2828
run: make init-saxon
2929

30+
- name: Get Allure
31+
run: make install-allure
32+
3033
# - name: Start staging infra
3134
# run: make start-project-services
3235

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,10 @@ tests/test_data/notice_transformer/mapping_suite_processor_repository/test_packa
121121
tests/test_data/notice_transformer/mapping_suite_processor_repository/test_package_fake/transformation/resources/languages.json
122122
tests/test_data/notice_transformer/mapping_suite_processor_repository/test_package_fake/transformation/resources/main_activity.json
123123
tests/test_data/notice_transformer/mapping_suite_processor_repository/test_package_fake/transformation/resources/nuts.json
124-
/infra/digest_api/digest_service/project_requirements.txt
124+
infra/airflow-cluster/requirements.txt
125+
node_modules
126+
tests/reports/allure/report/
127+
tests/reports/allure/test_results/
128+
package-lock.json
129+
package.json
130+
/infra/digest_api/digest_service/project_requirements.txt

Makefile

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test-unit:
3737

3838
test-features:
3939
@ echo -e "$(BUILD_PRINT)Gherkin Features Testing ...$(END_BUILD_PRINT)"
40-
# @ tox -e features
40+
@ tox -e features
4141

4242
test-e2e:
4343
@ echo -e "$(BUILD_PRINT)End to End Testing ...$(END_BUILD_PRINT)"
@@ -91,11 +91,41 @@ create-env-airflow:
9191
@ chmod 777 ${AIRFLOW_INFRA_FOLDER}/logs ${AIRFLOW_INFRA_FOLDER}/plugins ${AIRFLOW_INFRA_FOLDER}/.env
9292
@ cp requirements.txt ./infra/airflow/
9393

94+
create-env-airflow-cluster:
95+
@ echo -e "$(BUILD_PRINT) Create Airflow env $(END_BUILD_PRINT)"
96+
@ echo -e "$(BUILD_PRINT) ${AIRFLOW_INFRA_FOLDER} ${ENVIRONMENT} $(END_BUILD_PRINT)"
97+
@ mkdir -p ${AIRFLOW_INFRA_FOLDER}/logs ${AIRFLOW_INFRA_FOLDER}/plugins ${AIRFLOW_INFRA_FOLDER}/.env
98+
@ ln -s -f -n ${PROJECT_PATH}/dags ${AIRFLOW_INFRA_FOLDER}/dags
99+
@ ln -s -f -n ${PROJECT_PATH}/ted_sws ${AIRFLOW_INFRA_FOLDER}/ted_sws
100+
@ chmod 777 ${AIRFLOW_INFRA_FOLDER}/logs ${AIRFLOW_INFRA_FOLDER}/plugins ${AIRFLOW_INFRA_FOLDER}/.env
101+
@ cp requirements.txt ./infra/airflow-cluster/
102+
94103
build-airflow: guard-ENVIRONMENT create-env-airflow build-externals
95104
@ echo -e "$(BUILD_PRINT) Build Airflow services $(END_BUILD_PRINT)"
96-
@ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow/docker-compose.yaml --env-file ${ENV_FILE} build --no-cache --force-rm
105+
@ docker build -t meaningfy/airflow ./infra/airflow/
97106
@ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow/docker-compose.yaml --env-file ${ENV_FILE} up -d --force-recreate
98107

108+
build-airflow-cluster: guard-ENVIRONMENT create-env-airflow-cluster build-externals
109+
@ echo -e "$(BUILD_PRINT) Build Airflow services $(END_BUILD_PRINT)"
110+
@ docker build -t meaningfy/airflow ./infra/airflow-cluster/
111+
@ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow-cluster/docker-compose.yaml --env-file ${ENV_FILE} up -d airflow-init
112+
113+
start-airflow-cluster: build-externals
114+
@ echo -e "$(BUILD_PRINT)Starting Airflow services $(END_BUILD_PRINT)"
115+
@ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow-cluster/docker-compose.yaml --env-file ${ENV_FILE} up -d --force-recreate airflow-webserver airflow-scheduler airflow-triggerer flower
116+
117+
start-airflow-cluster-worker: build-externals
118+
@ echo -e "$(BUILD_PRINT)Starting Airflow services $(END_BUILD_PRINT)"
119+
@ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow-cluster/docker-compose.yaml --env-file ${ENV_FILE} up -d airflow-worker
120+
121+
stop-airflow-cluster:
122+
@ echo -e "$(BUILD_PRINT)Stopping Airflow Cluster $(END_BUILD_PRINT)"
123+
@ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow-cluster/docker-compose.yaml --env-file ${ENV_FILE} down airflow-webserver airflow-scheduler airflow-triggerer flower
124+
125+
stop-airflow-cluster-worker:
126+
@ echo -e "$(BUILD_PRINT)Stopping Airflow Cluster Worker $(END_BUILD_PRINT)"
127+
@ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow-cluster/docker-compose.yaml --env-file ${ENV_FILE} down airflow-worker
128+
99129
start-airflow: build-externals
100130
@ echo -e "$(BUILD_PRINT)Starting Airflow services $(END_BUILD_PRINT)"
101131
@ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow/docker-compose.yaml --env-file ${ENV_FILE} up -d
@@ -340,3 +370,7 @@ restore-mongodb:
340370
@ docker exec -it mongodb-${ENVIRONMENT} rm -rf mongodb_dump
341371
@ echo -e "Finish restore data in mongodb."
342372

373+
install-allure:
374+
@ echo -e "Start install Allure commandline."
375+
@ apt install npm
376+
@ npm install -g allure-commandline

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
![UTest build](https://github.com/meaningfy-ws/ted-sws/actions/workflows/unit-tests.yml/badge.svg?branch=main)
1414
![E2E Test build](https://github.com/meaningfy-ws/ted-sws/actions/workflows/unit-tests-hermes.yml/badge.svg?branch=main)
1515

16+
[![codecov](https://codecov.io/gh/OP-TED/ted-rdf-conversion-pipeline/branch/main/graph/badge.svg?token=DzceZJWLaL)](https://codecov.io/gh/OP-TED/ted-rdf-conversion-pipeline) [CodeCov Icicle](https://codecov.io/gh/OP-TED/ted-rdf-conversion-pipeline/branch/main/graphs/icicle.svg?token=DzceZJWLaL)
17+
1618
## Table of contents
1719

1820
- [Developer documentation](#developer-documentation)

0 commit comments

Comments
 (0)