Skip to content

Commit 8af3f3f

Browse files
committed
Merge remote branch into VED-789-Schema-Validation
2 parents 8a37408 + e836130 commit 8af3f3f

File tree

114 files changed

+722
-1391
lines changed

Some content is hidden

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

114 files changed

+722
-1391
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ version: 2
77
updates:
88
- package-ecosystem: "docker"
99
directories:
10+
- "/batch_processor_filter"
11+
- "/infrastructure/grafana/non-prod/docker"
12+
- "/lambdas/filenameprocessor"
1013
- "/lambdas/ack_backend"
1114
- "/lambdas/delta_backend"
12-
- "/filenameprocessor"
13-
- "/infrastructure/grafana/non-prod/docker"
15+
- "/lambdas/recordprocessor"
1416
- "/mesh_processor"
15-
- "/recordprocessor"
1617
- "/sandbox"
1718
schedule:
1819
interval: "daily"
@@ -50,17 +51,17 @@ updates:
5051
- "/"
5152
- "/backend"
5253
- "/batch_processor_filter"
53-
- "/tests/e2e"
54-
- "/tests/e2e_batch"
55-
- "/filenameprocessor"
5654
- "/mesh_processor"
57-
- "/recordprocessor"
55+
- "/lambdas/recordprocessor"
5856
- "/lambdas/ack_backend"
5957
- "/lambdas/delta_backend"
60-
- "/lambdas/redis_sync"
58+
- "/lambdas/filenameprocessor"
6159
- "/lambdas/id_sync"
6260
- "/lambdas/mns_subscription"
61+
- "/lambdas/redis_sync"
6362
- "/lambdas/shared"
63+
- "/tests/e2e"
64+
- "/tests/e2e_batch"
6465
schedule:
6566
interval: "daily"
6667
open-pull-requests-limit: 1

.github/workflows/deploy-backend.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ jobs:
137137
if: ${{ inputs.environment == 'dev' && inputs.create_mns_subscription }}
138138
working-directory: "./lambdas/mns_subscription"
139139
env:
140+
APIGEE_ENVIRONMENT: int
140141
SQS_ARN: ${{ env.ID_SYNC_QUEUE_ARN }}
141142
run: |
142143
poetry install --no-root

.github/workflows/pr-teardown.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
- name: Unsubscribe MNS
6464
working-directory: "./lambdas/mns_subscription"
6565
env:
66+
APIGEE_ENVIRONMENT: int
6667
SQS_ARN: ${{ env.ID_SYNC_QUEUE_ARN }}
6768
run: |
6869
poetry install --no-root

.github/workflows/quality-checks.yml

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,6 @@ jobs:
9797
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
9898
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
9999
100-
- name: Run unittest with filenameprocessor-coverage
101-
working-directory: filenameprocessor
102-
id: filenameprocessor
103-
continue-on-error: true
104-
run: |
105-
poetry install
106-
poetry run coverage run -m unittest discover || echo "filenameprocessor tests failed" >> ../failed_tests.txt
107-
poetry run coverage xml -o ../filenameprocessor-coverage.xml
108-
109100
- name: Run unittest with batchprocessorfilter-coverage
110101
working-directory: batch_processor_filter
111102
id: batchprocessorfilter
@@ -118,15 +109,15 @@ jobs:
118109
poetry run coverage xml -o ../batchprocessorfilter-coverage.xml
119110
120111
- name: Run unittest with recordprocessor-coverage
121-
working-directory: recordprocessor
112+
working-directory: lambdas/recordprocessor
122113
id: recordprocessor
123114
env:
124-
PYTHONPATH: ${{ github.workspace }}/recordprocessor/src:${{ github.workspace }}/recordprocessor/tests
115+
PYTHONPATH: ${{ env.LAMBDA_PATH }}/recordprocessor/src:${{ env.LAMBDA_PATH }}/recordprocessor/tests:${{ env.SHARED_PATH }}/src
125116
continue-on-error: true
126117
run: |
127118
poetry install
128-
poetry run coverage run -m unittest discover || echo "recordprocessor tests failed" >> ../failed_tests.txt
129-
poetry run coverage xml -o ../recordprocessor-coverage.xml
119+
poetry run coverage run --source=src -m unittest discover || echo "recordprocessor tests failed" >> ../../failed_tests.txt
120+
poetry run coverage xml -o ../../recordprocessor-coverage.xml
130121
131122
# This step is redundant - all of these tests will be run in the backend step below
132123
- name: Run unittest with recordforwarder-coverage
@@ -182,6 +173,28 @@ jobs:
182173
poetry run coverage run -m unittest discover || echo "delta tests failed" >> ../../failed_tests.txt
183174
poetry run coverage xml -o ../../delta-coverage.xml
184175
176+
- name: Run unittest with filenameprocessor-coverage
177+
working-directory: lambdas/filenameprocessor
178+
id: filenameprocessor
179+
env:
180+
PYTHONPATH: ${{ env.LAMBDA_PATH }}/filenameprocessor/src:${{ env.LAMBDA_PATH }}/filenameprocessor/tests:${{ env.SHARED_PATH }}/src
181+
continue-on-error: true
182+
run: |
183+
poetry install
184+
poetry run coverage run -m unittest discover || echo "filenameprocessor tests failed" >> ../../failed_tests.txt
185+
poetry run coverage xml -o ../../filenameprocessor-coverage.xml
186+
187+
- name: Run unittest with id_sync
188+
working-directory: lambdas/id_sync
189+
id: id_sync
190+
env:
191+
PYTHONPATH: ${{ env.LAMBDA_PATH }}/id_sync/src:${{ env.LAMBDA_PATH }}/id_sync/tests:${{ env.SHARED_PATH }}/src
192+
continue-on-error: true
193+
run: |
194+
poetry install
195+
poetry run coverage run --rcfile=.coveragerc --source=src -m unittest discover || echo "id_sync tests failed" >> ../../failed_tests.txt
196+
poetry run coverage xml -o ../../id_sync-coverage.xml
197+
185198
- name: Run unittest with coverage-mns-subscription
186199
working-directory: lambdas/mns_subscription
187200
id: mns_subscription
@@ -216,17 +229,6 @@ jobs:
216229
poetry run coverage run --rcfile=.coveragerc --source=src -m unittest discover -s tests -p "test_*.py" -v || echo "shared tests failed" >> ../../failed_tests.txt
217230
poetry run coverage xml -o ../../shared-coverage.xml
218231
219-
- name: Run unittest with id_sync
220-
working-directory: lambdas/id_sync
221-
id: id_sync
222-
env:
223-
PYTHONPATH: ${{ env.LAMBDA_PATH }}/id_sync/src:${{ env.LAMBDA_PATH }}/id_sync/tests:${{ env.SHARED_PATH }}/src
224-
continue-on-error: true
225-
run: |
226-
poetry install
227-
poetry run coverage run --rcfile=.coveragerc --source=src -m unittest discover || echo "id_sync tests failed" >> ../../failed_tests.txt
228-
poetry run coverage xml -o ../../id_sync-coverage.xml
229-
230232
- name: Run Test Failure Summary
231233
id: check_failure
232234
run: |

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHELL=/usr/bin/env bash -euo pipefail
22

3-
PYTHON_PROJECT_DIRS_WITH_UNIT_TESTS = backend batch_processor_filter filenameprocessor mesh_processor recordprocessor lambdas/ack_backend lambdas/delta_backend lambdas/redis_sync lambdas/id_sync lambdas/mns_subscription lambdas/shared
3+
PYTHON_PROJECT_DIRS_WITH_UNIT_TESTS = backend batch_processor_filter mesh_processor lambdas/ack_backend lambdas/delta_backend lambdas/filenameprocessor lambdas/id_sync lambdas/mns_subscription lambdas/recordprocessor lambdas/redis_sync lambdas/shared
44
PYTHON_PROJECT_DIRS = tests/e2e tests/e2e_batch quality_checks $(PYTHON_PROJECT_DIRS_WITH_UNIT_TESTS)
55

66
.PHONY: install lint format format-check clean publish build-proxy release initialise-all-python-venvs update-all-python-dependencies run-all-python-unit-tests build-all-docker-images

filenameprocessor/Dockerfile

Lines changed: 0 additions & 25 deletions
This file was deleted.

filenameprocessor/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

filenameprocessor/batch.Dockerfile

Lines changed: 0 additions & 31 deletions
This file was deleted.

filenameprocessor/src/clients.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

filenameprocessor/src/errors.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)