Skip to content

Commit 8b467c1

Browse files
committed
init: move
1 parent d569421 commit 8b467c1

File tree

13 files changed

+23
-21
lines changed

13 files changed

+23
-21
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ updates:
99
directories:
1010
- "/batch_processor_filter"
1111
- "/infrastructure/grafana/non-prod/docker"
12-
- "/lambdas/filenameprocessor"
1312
- "/lambdas/ack_backend"
1413
- "/lambdas/delta_backend"
14+
- "/lambdas/filenameprocessor"
15+
- "/lambdas/mesh_processor"
1516
- "/lambdas/recordprocessor"
16-
- "/mesh_processor"
1717
- "/sandbox"
1818
schedule:
1919
interval: "daily"
@@ -51,13 +51,13 @@ updates:
5151
- "/"
5252
- "/backend"
5353
- "/batch_processor_filter"
54-
- "/mesh_processor"
55-
- "/lambdas/recordprocessor"
5654
- "/lambdas/ack_backend"
5755
- "/lambdas/delta_backend"
5856
- "/lambdas/filenameprocessor"
5957
- "/lambdas/id_sync"
58+
- "/lambdas/mesh_processor"
6059
- "/lambdas/mns_subscription"
60+
- "/lambdas/recordprocessor"
6161
- "/lambdas/redis_sync"
6262
- "/lambdas/shared"
6363
- "/tests/e2e"

.github/workflows/quality-checks.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,6 @@ jobs:
142142
poetry run coverage run -m unittest discover || echo "fhir-api tests failed" >> ../failed_tests.txt
143143
poetry run coverage xml -o ../backend-coverage.xml
144144
145-
- name: Run unittest with coverage-mesh-processor
146-
working-directory: mesh_processor
147-
id: meshprocessor
148-
continue-on-error: true
149-
run: |
150-
poetry install
151-
poetry run coverage run -m unittest discover || echo "mesh_processor tests failed" >> ../failed_tests.txt
152-
poetry run coverage xml -o ../mesh_processor-coverage.xml
153-
154145
- name: Run unittest with coverage-ack-lambda
155146
working-directory: lambdas/ack_backend
156147
id: acklambda
@@ -195,6 +186,15 @@ jobs:
195186
poetry run coverage run --rcfile=.coveragerc --source=src -m unittest discover || echo "id_sync tests failed" >> ../../failed_tests.txt
196187
poetry run coverage xml -o ../../id_sync-coverage.xml
197188
189+
- name: Run unittest with coverage-mesh-processor
190+
working-directory: lambdas/mesh_processor
191+
id: meshprocessor
192+
continue-on-error: true
193+
run: |
194+
poetry install
195+
poetry run coverage run -m unittest discover || echo "mesh_processor tests failed" >> ../../failed_tests.txt
196+
poetry run coverage xml -o ../../mesh_processor-coverage.xml
197+
198198
- name: Run unittest with coverage-mns-subscription
199199
working-directory: lambdas/mns_subscription
200200
id: mns_subscription

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 mesh_processor lambdas/ack_backend lambdas/delta_backend lambdas/filenameprocessor lambdas/id_sync lambdas/mns_subscription lambdas/recordprocessor lambdas/redis_sync lambdas/shared
3+
PYTHON_PROJECT_DIRS_WITH_UNIT_TESTS = backend batch_processor_filter lambdas/ack_backend lambdas/delta_backend lambdas/filenameprocessor lambdas/id_sync lambdas/mesh_processor 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

immunisation-fhir-api.code-workspace

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
{
77
"path": "backend",
88
},
9-
{
10-
"path": "mesh_processor",
11-
},
129
{
1310
"path": "lambdas/ack_backend",
1411
},
@@ -21,6 +18,9 @@
2118
{
2219
"path": "lambdas/id_sync",
2320
},
21+
{
22+
"path": "lambdas/mesh_processor",
23+
},
2424
{
2525
"path": "lambdas/mns_subscription",
2626
},

infrastructure/instance/mesh_processor.tf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Define the directory containing the Docker image and calculate its SHA-256 hash for triggering redeployments
22
locals {
3-
mesh_processor_lambda_dir = abspath("${path.root}/../../mesh_processor")
3+
mesh_processor_lambda_dir = abspath("${path.root}/../../lambdas/mesh_processor")
44
mesh_processor_lambda_files = fileset(local.mesh_processor_lambda_dir, "**")
55
mesh_processor_lambda_dir_sha = sha1(join("", [for f in local.mesh_processor_lambda_files : filesha1("${local.mesh_processor_lambda_dir}/${f}")]))
66
# This should match the prefix used in the global Terraform
@@ -33,8 +33,9 @@ resource "aws_ecr_repository" "mesh_file_converter_lambda_repository" {
3333
module "mesh_processor_docker_image" {
3434
count = var.create_mesh_processor ? 1 : 0
3535

36-
source = "terraform-aws-modules/lambda/aws//modules/docker-build"
37-
version = "8.1.0"
36+
source = "terraform-aws-modules/lambda/aws//modules/docker-build"
37+
version = "8.1.0"
38+
dockerfilepath = "./meshprocessor/Dockerfile"
3839

3940
create_ecr_repo = false
4041
ecr_repo = aws_ecr_repository.mesh_file_converter_lambda_repository[0].name
@@ -57,9 +58,10 @@ module "mesh_processor_docker_image" {
5758

5859
platform = "linux/amd64"
5960
use_image_tag = false
60-
source_path = local.mesh_processor_lambda_dir
61+
source_path = abspath("${path.root}/../../lambdas")
6162
triggers = {
6263
dir_sha = local.mesh_processor_lambda_dir_sha
64+
shared_dir_sha = local.shared_dir_sha
6365
}
6466
}
6567

File renamed without changes.

0 commit comments

Comments
 (0)