Skip to content

Commit 7acd230

Browse files
Merge remote-tracking branch 'origin/PRMP-1057-2' into PRMP-1058
2 parents ca9bb27 + ab6d112 commit 7acd230

File tree

240 files changed

+22662
-14150
lines changed

Some content is hidden

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

240 files changed

+22662
-14150
lines changed

.github/workflows/automated-pr-validator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
output-format: sarif
5757

5858
- name: Upload Anchore scan SARIF report
59-
uses: github/codeql-action/upload-sarif@v3
59+
uses: github/codeql-action/upload-sarif@v4
6060
if: always()
6161
with:
6262
sarif_file: ${{ steps.sbom-scan.outputs.sarif }}

.github/workflows/base-cypress-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
working-directory: ./app
4545

4646
- name: Cypress build
47-
uses: cypress-io/github-action@v6
47+
uses: cypress-io/github-action@v7
4848
with:
4949
# Disable running of tests within install job
5050
install: false
@@ -53,7 +53,7 @@ jobs:
5353
working-directory: ./app
5454

5555
- name: Save build folder
56-
uses: actions/upload-artifact@v5
56+
uses: actions/upload-artifact@v6
5757
with:
5858
name: build
5959
if-no-files-found: error

.github/workflows/base-cypress-smoketest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
working-directory: ./app
5656

5757
- name: Cypress run
58-
uses: cypress-io/github-action@v6
58+
uses: cypress-io/github-action@v7
5959
with:
6060
install: false
6161
browser: chrome
@@ -71,13 +71,13 @@ jobs:
7171
CYPRESS_KEY: ${{ secrets.CYPRESS_KEY }}
7272
CYPRESS_OUTPUT_VIDEO: true
7373

74-
- uses: actions/upload-artifact@v5
74+
- uses: actions/upload-artifact@v6
7575
if: failure()
7676
with:
7777
name: cypress-screenshots
7878
path: /home/runner/work/national-document-repository/national-document-repository/app/cypress/screenshots
7979
if-no-files-found: ignore
80-
- uses: actions/upload-artifact@v5
80+
- uses: actions/upload-artifact@v6
8181
if: failure()
8282
with:
8383
name: cypress-videos
@@ -109,7 +109,7 @@ jobs:
109109
working-directory: ./app
110110

111111
- name: Cypress run
112-
uses: cypress-io/github-action@v6
112+
uses: cypress-io/github-action@v7
113113
with:
114114
install: false
115115
browser: edge

.github/workflows/base-cypress-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
ref: ${{ inputs.build_branch }}
4545

4646
- name: Download the build folder
47-
uses: actions/download-artifact@v6
47+
uses: actions/download-artifact@v7
4848
with:
4949
name: build
5050
path: ./app/build
@@ -62,7 +62,7 @@ jobs:
6262
run: cp ./app/build/main.html ./app/build/index.html
6363

6464
- name: Cypress run
65-
uses: cypress-io/github-action@v6
65+
uses: cypress-io/github-action@v7
6666
with:
6767
install: false
6868
start: serve -s build
@@ -72,13 +72,13 @@ jobs:
7272
CYPRESS_BASE_URL: ${{ inputs.cypress_base_url }}
7373
CYPRESS_grepTags: "regression"
7474

75-
- uses: actions/upload-artifact@v5
75+
- uses: actions/upload-artifact@v6
7676
if: failure()
7777
with:
7878
name: cypress-screenshots-${{ inputs.cypress_browser}}
7979
path: /home/runner/work/national-document-repository/national-document-repository/app/cypress/screenshots
8080
if-no-files-found: ignore
81-
- uses: actions/upload-artifact@v5
81+
- uses: actions/upload-artifact@v6
8282
if: failure()
8383
with:
8484
name: cypress-videos-${{ inputs.cypress_browser}}

.github/workflows/base-e2e-backendtest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Z-BASE E2e Test: E2e shared actions for running tests on the NDR Backend"
1+
name: "Z-BASE E2E Test: E2E shared actions for running Lloyd George FHIR API E2E tests on the NDR Backend"
22

33
run-name: "${{ github.event.inputs.build_branch }} | ${{ github.event.inputs.environment }} | ${{ github.event.inputs.sandbox }}"
44

@@ -27,7 +27,7 @@ permissions:
2727
contents: read
2828

2929
jobs:
30-
e2e-test:
30+
lg-fhir-e2e-test:
3131
runs-on: ubuntu-latest
3232
environment: ${{ inputs.environment }}
3333
steps:
@@ -82,6 +82,6 @@ jobs:
8282
env:
8383
SANDBOX: ${{ inputs.sandbox }}
8484

85-
- name: Run E2e Tests
85+
- name: Run Lloyd George FHIR API E2E tests
8686
run: |
8787
make test-api-e2e

.github/workflows/base-e2e-fhir-backendtest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Z-BASE FHIR API E2E Test: E2e shared actions for running FHIR API tests on the NDR Backend"
1+
name: "Z-BASE E2E Test: E2E shared actions for running Core FHIR API E2E tests on the NDR Backend"
22

33
run-name: "${{ github.event.inputs.build_branch }} | ${{ github.event.inputs.environment }} | ${{ github.event.inputs.sandbox }}"
44

@@ -27,7 +27,7 @@ permissions:
2727
contents: read
2828

2929
jobs:
30-
e2e-test:
30+
core-fhir-e2e-test:
3131
runs-on: ubuntu-latest
3232
environment: ${{ inputs.environment }}
3333
outputs:
@@ -62,5 +62,5 @@ jobs:
6262
source ./lambdas/venv/bin/activate
6363
echo PATH=$PATH >> $GITHUB_ENV
6464
65-
- name: Run E2e Tests
65+
- name: Run Core FHIR API E2E tests
6666
run: make test-fhir-api-e2e WORKSPACE=${{ inputs.sandbox }}

.github/workflows/base-run-bulk-upload.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,21 @@ on:
3535
required: false
3636
type: "string"
3737
default: "3"
38+
lambda_type:
39+
description: "Which lambda to trigger (BulkUploadMetadataLambda or BulkUploadMetadataProcessor)"
40+
required: false
41+
type: "string"
42+
default: "BulkUploadMetadataLambda"
43+
run_bulk_upload_setup:
44+
description: "Run bulk upload setup step"
45+
required: false
46+
type: "boolean"
47+
default: true
48+
run_document_review_setup:
49+
description: "Run document review setup step"
50+
required: false
51+
type: "boolean"
52+
default: true
3853
secrets:
3954
AWS_ASSUME_ROLE:
4055
required: true
@@ -67,6 +82,7 @@ jobs:
6782
working-directory: ./tests/bulk-upload/scripts
6883

6984
- name: Setup Bulk Upload
85+
if: ${{ inputs.run_bulk_upload_setup }}
7086
run: |
7187
python setup_bulk_upload.py \
7288
--environment "${{ inputs.sandbox }}" \
@@ -80,6 +96,7 @@ jobs:
8096
working-directory: ./tests/bulk-upload/scripts
8197

8298
- name: Setup Document Review
99+
if: ${{ inputs.run_document_review_setup }}
83100
run: |
84101
python setup_document_review.py
85102
working-directory: ./tests/bulk-upload/scripts
@@ -90,5 +107,6 @@ jobs:
90107
run: |
91108
python run_bulk_upload.py \
92109
--environment "${{ inputs.sandbox }}" \
110+
--lambda-type "${{ inputs.lambda_type }}" \
93111
--start-bulk-upload
94112
working-directory: ./tests/bulk-upload/scripts

.github/workflows/full-deploy-to-pre-prod.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ jobs:
136136
secrets:
137137
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
138138

139-
run_backend_e2e_tests:
140-
name: Run E2E Tests
139+
run_fhir_api_e2e_tests:
140+
name: Run FHIR API E2E Tests
141141
needs: ["deploy_all_lambdas"]
142142
uses: ./.github/workflows/ndr-e2e-test-sandbox.yml
143143
with:
@@ -146,4 +146,3 @@ jobs:
146146
sandbox: pre-prod
147147
secrets:
148148
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
149-

.github/workflows/full-deploy-to-sandbox.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ on:
2525
required: true
2626
type: boolean
2727
default: false
28+
lambda_type:
29+
description: "Which lambda to trigger for bulk upload (only applies if bulk_upload is true)"
30+
required: false
31+
type: choice
32+
options:
33+
- "Bulk upload metadata"
34+
- "NEW bulk metadata processor"
35+
default: "Bulk upload metadata"
2836
disable_pds:
2937
description: "Do you want to disable the PDS stub?"
3038
required: true
@@ -169,5 +177,6 @@ jobs:
169177
combi_settings: "combi300"
170178
base_branch: ${{ inputs.build_branch }}
171179
file_count: "3"
180+
lambda_type: ${{ inputs.lambda_type == 'NEW bulk metadata processor' && 'BulkUploadMetadataProcessor' || 'BulkUploadMetadataLambda' }}
172181
secrets:
173182
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}

.github/workflows/run-bulk-upload-dev.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Run Bulk Upload - Dev
22

3-
run-name: "${{ github.event.inputs.sandbox }} | ${{ github.event.inputs.combi_settings }} | ${{ github.event.inputs.file_count }}"
3+
run-name: "${{ github.event.inputs.sandbox }} | ${{ github.event.inputs.combi_settings }} | ${{ github.event.inputs.file_count }} | ${{ github.event.inputs.lambda_type }}"
44

55
permissions:
66
pull-requests: write
@@ -27,6 +27,14 @@ on:
2727
required: true
2828
type: "string"
2929
default: "3"
30+
lambda_type:
31+
description: "Which lambda to trigger"
32+
required: true
33+
type: choice
34+
options:
35+
- "BulkUploadMetadataLambda"
36+
- "BulkUploadMetadataProcessor"
37+
default: "BulkUploadMetadataLambda"
3038

3139
jobs:
3240
bulk_upload:
@@ -36,5 +44,6 @@ jobs:
3644
sandbox: "${{ inputs.sandbox }}"
3745
combi_settings: "${{ inputs.combi_settings }}"
3846
file_count: "${{ inputs.file_count }}"
47+
lambda_type: "${{ inputs.lambda_type }}"
3948
secrets:
4049
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}

0 commit comments

Comments
 (0)