Skip to content

Commit 5322fac

Browse files
authored
Merge branch 'master' into VED-298-Sandbox-Response
2 parents 0fc8702 + 2836c5b commit 5322fac

File tree

154 files changed

+7592
-8192
lines changed

Some content is hidden

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

154 files changed

+7592
-8192
lines changed

.github/dependabot.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,34 @@ updates:
1717
- "/temporary_sandbox"
1818
schedule:
1919
interval: "daily"
20+
open-pull-requests-limit: 1
21+
groups:
22+
docker-minor-patch:
23+
update-types:
24+
- "minor"
25+
- "patch"
2026

2127
- package-ecosystem: "github-actions"
2228
directory: "/"
2329
schedule:
2430
interval: "daily"
31+
open-pull-requests-limit: 1
32+
groups:
33+
github-actions-minor-patch:
34+
update-types:
35+
- "minor"
36+
- "patch"
2537

2638
- package-ecosystem: "npm"
2739
directory: "/"
2840
schedule:
2941
interval: "daily"
42+
open-pull-requests-limit: 1
43+
groups:
44+
npm-minor-patch:
45+
update-types:
46+
- "minor"
47+
- "patch"
3048

3149
- package-ecosystem: "pip"
3250
directories:
@@ -41,13 +59,25 @@ updates:
4159
- "/recordprocessor"
4260
schedule:
4361
interval: "daily"
62+
open-pull-requests-limit: 1
63+
groups:
64+
pip-minor-patch:
65+
update-types:
66+
- "minor"
67+
- "patch"
4468

4569
- package-ecosystem: "terraform"
4670
directories:
4771
- "/grafana/non-prod/terraform"
48-
- "/infra/**"
72+
- "/infra"
4973
- "/mesh-infra"
5074
- "/terraform"
5175
- "/terraform_aws_backup/**"
5276
schedule:
5377
interval: "daily"
78+
open-pull-requests-limit: 1
79+
groups:
80+
terraform-minor-patch:
81+
update-types:
82+
- "minor"
83+
- "patch"

.github/workflows/continuous-disintegration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Teardown
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [closed]
66

77
jobs:

.github/workflows/sonarcloud.yml

Lines changed: 46 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919

20+
- name: Install poetry
21+
run: pip install poetry==1.8.4
22+
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: |
26+
3.10
27+
3.11
28+
cache: 'poetry'
29+
2030
- name: Set up AWS credentials
2131
env:
2232
AWS_ACCESS_KEY_ID: "FOOBARKEY"
@@ -25,64 +35,78 @@ jobs:
2535
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
2636
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
2737
28-
- name: Initialize Unit Test Failure Tracker
29-
run: echo "false" > test_failed.txt
30-
3138
- name: Run unittest with filenameprocessor-coverage
39+
working-directory: filenameprocessor
3240
id: filenameprocessor
3341
continue-on-error: true
3442
run: |
35-
pip install poetry==1.8.4 moto==4.2.11 coverage redis botocore==1.35.49 simplejson pandas freezegun responses structlog fhir.resources jsonpath_ng pydantic==1.10.13 requests aws-lambda-typing cffi pyjwt boto3-stubs-lite[dynamodb]~=1.26.90 python-stdnum==1.20 fakeredis
36-
poetry run coverage run --source=filenameprocessor -m unittest discover -s filenameprocessor || echo "filenameprocessor tests failed" >> failed_tests.txt
37-
poetry run coverage xml -o sonarcloud-coverage-filenameprocessor-coverage.xml
43+
poetry env use 3.10
44+
poetry install
45+
poetry run coverage run -m unittest discover || echo "filenameprocessor tests failed" >> ../failed_tests.txt
46+
poetry run coverage xml -o ../sonarcloud-coverage-filenameprocessor-coverage.xml
3847
3948
- name: Run unittest with recordprocessor-coverage
49+
working-directory: recordprocessor
4050
id: recordprocessor
4151
continue-on-error: true
4252
run: |
43-
poetry run coverage run --source=recordprocessor -m unittest discover -s recordprocessor || echo "recordprocessor tests failed" >> failed_tests.txt
44-
poetry run coverage xml -o sonarcloud-coverage-recordprocessor-coverage.xml
53+
poetry env use 3.10
54+
poetry install
55+
poetry run coverage run -m unittest discover || echo "recordprocessor tests failed" >> ../failed_tests.txt
56+
poetry run coverage xml -o ../sonarcloud-coverage-recordprocessor-coverage.xml
4557
58+
# This step is redundant - all of these tests will be run in the backend step below
4659
- name: Run unittest with recordforwarder-coverage
60+
working-directory: backend
4761
id: recordforwarder
4862
continue-on-error: true
4963
run: |
50-
PYTHONPATH=$(pwd)/backend:$(pwd)/backend/tests poetry run coverage run --source=backend -m unittest discover -s backend/tests -p "*batch*.py" || echo "recordforwarder tests failed" >> failed_tests.txt
51-
poetry run coverage xml -o sonarcloud-coverage-recordforwarder-coverage.xml
64+
poetry env use 3.11
65+
poetry install
66+
poetry run coverage run -m unittest discover -s "./tests" -p "*batch*.py" || echo "recordforwarder tests failed" >> ../failed_tests.txt
67+
poetry run coverage xml -o ../sonarcloud-coverage-recordforwarder-coverage.xml
5268
5369
- name: Run unittest with coverage-ack-lambda
70+
working-directory: ack_backend
5471
id: acklambda
5572
continue-on-error: true
5673
run: |
57-
pip install poetry==1.8.4 coverage moto==4.2.11 freezegun
58-
poetry run coverage run --source=ack_backend -m unittest discover -s ack_backend || echo "ack-lambda tests failed" >> failed_tests.txt
59-
poetry run coverage xml -o sonarcloud-coverage-ack-lambda.xml
74+
poetry env use 3.10
75+
poetry install
76+
poetry run coverage run -m unittest discover || echo "ack-lambda tests failed" >> ../failed_tests.txt
77+
poetry run coverage xml -o ../sonarcloud-coverage-ack-lambda.xml
6078
6179
- name: Run unittest with coverage-delta
80+
working-directory: delta_backend
6281
id: delta
6382
env:
6483
PYTHONPATH: delta_backend/src:delta_backend/tests
6584
continue-on-error: true
6685
run: |
67-
pip install poetry==1.8.4 moto==4.2.11 mypy-boto3-dynamodb==1.35.54 boto3==1.26.165 coverage botocore==1.29.165 jmespath==1.0.1 python-dateutil==2.9.0 urllib3==1.26.20 s3transfer==0.6.2 typing-extensions==4.12.2
68-
poetry run coverage run --source=delta_backend -m unittest discover -s delta_backend || echo "delta tests failed" >> failed_tests.txt
69-
poetry run coverage xml -o sonarcloud-coverage-delta.xml
86+
poetry env use 3.11
87+
poetry install
88+
poetry run coverage run -m unittest discover || echo "delta tests failed" >> ../failed_tests.txt
89+
poetry run coverage xml -o ../sonarcloud-coverage-delta.xml
7090
7191
- name: Run unittest with coverage-fhir-api
92+
working-directory: backend
7293
id: fhirapi
7394
continue-on-error: true
7495
run: |
75-
pip install poetry==1.8.4 moto==4.2.11 coverage redis botocore==1.35.49 simplejson responses structlog fhir.resources jsonpath_ng pydantic==1.10.13 requests aws-lambda-typing cffi pyjwt boto3-stubs-lite[dynamodb]~=1.26.90 python-stdnum==1.20
76-
poetry run coverage run --source=backend -m unittest discover -s backend || echo "fhir-api tests failed" >> failed_tests.txt
77-
poetry run coverage xml -o sonarcloud-coverage.xml
96+
poetry env use 3.11
97+
poetry install
98+
poetry run coverage run -m unittest discover || echo "fhir-api tests failed" >> ../failed_tests.txt
99+
poetry run coverage xml -o ../sonarcloud-coverage.xml
78100
79101
- name: Run unittest with coverage-mesh-processor
102+
working-directory: mesh_processor
80103
id: meshprocessor
81104
continue-on-error: true
82105
run: |
83-
pip install poetry==1.8.4 moto==4.2.11 coverage redis botocore==1.35.49 simplejson responses structlog fhir.resources jsonpath_ng pydantic==1.10.13 requests aws-lambda-typing cffi pyjwt boto3-stubs-lite[dynamodb]~=1.26.90 python-stdnum==1.20
84-
poetry run coverage run --source=mesh_processor -m unittest discover -s mesh_processor || echo "mesh_processor tests failed" >> failed_tests.txt
85-
poetry run coverage xml -o sonarcloud-mesh_processor-coverage.xml
106+
poetry env use 3.10
107+
poetry install
108+
poetry run coverage run -m unittest discover || echo "mesh_processor tests failed" >> ../failed_tests.txt
109+
poetry run coverage xml -o ../sonarcloud-mesh_processor-coverage.xml
86110
87111
- name: Run Test Failure Summary
88112
id: check_failure

0 commit comments

Comments
 (0)