Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
7c3a67f
call validator lambda
anthony-nhs May 4, 2025
0eb5bf1
fix role
anthony-nhs May 4, 2025
905fc7b
Merge remote-tracking branch 'origin/master' into lambda_validator
anthony-nhs May 4, 2025
9ba3227
fix name
anthony-nhs May 4, 2025
bc68cf1
trigger build
anthony-nhs May 4, 2025
97f038f
fix name
anthony-nhs May 5, 2025
c180d8d
fix role name
anthony-nhs May 5, 2025
204bc85
make it work both ways
anthony-nhs May 5, 2025
929393b
rollback
anthony-nhs May 5, 2025
751978f
bob
anthony-nhs May 5, 2025
179f54d
logging
anthony-nhs May 5, 2025
072b1a5
call the snap
anthony-nhs May 5, 2025
d302529
really call the snap
anthony-nhs May 5, 2025
13918d6
snap in name
anthony-nhs May 5, 2025
23624b9
payload to string
anthony-nhs May 5, 2025
7faac29
parse json
anthony-nhs May 5, 2025
5593b6d
better parsing
anthony-nhs May 5, 2025
ecde4ab
refactor some code
anthony-nhs May 6, 2025
bb86f95
Merge remote-tracking branch 'origin/master' into lambda_validator
anthony-nhs May 6, 2025
5984e21
do not call validator in eps hosted container
anthony-nhs May 6, 2025
453d059
remove validator from eps hosted
anthony-nhs May 6, 2025
dd4960c
fix healthcheck
anthony-nhs May 6, 2025
892937e
Merge remote-tracking branch 'origin/master' into lambda_validator
anthony-nhs May 7, 2025
7bce385
reest tests
anthony-nhs May 7, 2025
dab2c7d
Merge branch 'master' into lambda_validator
anthony-nhs May 7, 2025
06e9792
Merge branch 'master' into lambda_validator
anthony-nhs May 11, 2025
1274bd1
Merge branch 'master' into lambda_validator
anthony-nhs May 22, 2025
f8676d6
release to ref
anthony-nhs May 28, 2025
79ca512
Merge remote-tracking branch 'origin/master' into lambda_validator
anthony-nhs May 28, 2025
2744ad2
Merge branch 'master' into lambda_validator
anthony-nhs Jun 20, 2025
b15170c
Merge branch 'master' into lambda_validator
anthony-nhs Jul 1, 2025
22e2cb2
better logging
anthony-nhs Jul 1, 2025
058fb6d
Merge remote-tracking branch 'origin/master' into lambda_validator
anthony-nhs Jan 12, 2026
d7bb3e6
downgrade typescript
anthony-nhs Jan 12, 2026
bc546ae
fix it
anthony-nhs Jan 12, 2026
7906552
trigger build
anthony-nhs Jan 12, 2026
19dc8d5
trigger build
anthony-nhs Jan 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/scripts/fix_cdk_json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ fix_string_key targetSpineServer "${TARGET_SPINE_SERVER}"
fix_string_key logLevel "${LOG_LEVEL}"
fix_string_key toAsid "${TO_ASID}"
fix_string_key toPartyKey "${TO_PARTY_KEY}"
fix_string_key validatorLogLevel "${VALIDATOR_LOG_LEVEL}"
fix_string_key enableDefaultAsidPartyKey "${ENABLE_DEFAULT_ASID_PARTY_KEY}"
fix_string_key defaultPTLAsid "${DEFAULT_PTL_ASID}"
fix_string_key defaultPTLPartyKey "${DEFAULT_PTL_PARTY_KEY}"
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/cdk_package_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,6 @@ jobs:
docker build -t "fhir-facade-repo:${{ inputs.VERSION_NUMBER }}" -f packages/coordinator/Dockerfile .
docker save "fhir-facade-repo:${{ inputs.VERSION_NUMBER }}" -o FHIR_facade_docker.img

- name: get latest validator release
id: get_latest_validator_release
run: |
LATEST_VALIDATOR_VERSION=v1.0.311-alpha
echo "LATEST_VALIDATOR_VERSION=${LATEST_VALIDATOR_VERSION}" >> "$GITHUB_ENV"

- name: Download Dockerfile, manifest.json and JAR file for Validator
run: |
curl -L -o Dockerfile "https://github.com/NHSDigital/validation-service-fhir-r4/releases/download/${{ env.LATEST_VALIDATOR_VERSION }}/Dockerfile"
curl -L -o manifest.json "https://github.com/NHSDigital/validation-service-fhir-r4/releases/download/${{ env.LATEST_VALIDATOR_VERSION }}/manifest.json"
curl -L -o fhir-validator.jar "https://github.com/NHSDigital/validation-service-fhir-r4/releases/download/${{ env.LATEST_VALIDATOR_VERSION }}/fhir-validator.jar"

- name: Build Validator Docker image
id: build-validator-image
run: |
docker build -t "validator-repo:${{ inputs.VERSION_NUMBER }}" -f Dockerfile .
docker images
docker save "validator-repo:${{ inputs.VERSION_NUMBER }}" -o validator_docker.img

- name: "package cdk"
run: |
tar -rf artifact.tar \
Expand All @@ -117,4 +98,3 @@ jobs:
name: docker_artifact
path: |
FHIR_facade_docker.img
validator_docker.img
23 changes: 0 additions & 23 deletions .github/workflows/cdk_release_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ on:
LOG_LEVEL:
required: true
type: string
VALIDATOR_LOG_LEVEL:
required: false
type: string
default: INFO
LOG_RETENTION_DAYS:
required: true
type: string
Expand Down Expand Up @@ -184,11 +180,6 @@ jobs:
run: |
docker load -i FHIR_facade_docker.img

- name: Extract validator docker image
id: extract-validator-image
run: |
docker load -i validator_docker.img

- name: extract build_artifact
run: |
mkdir -p .build
Expand Down Expand Up @@ -217,11 +208,6 @@ jobs:
docker tag "fhir-facade-repo:${{ inputs.VERSION_NUMBER }}" "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/fhir-facade-repo:${{ inputs.DOCKER_IMAGE_TAG }}"
docker push "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/fhir-facade-repo:${{ inputs.DOCKER_IMAGE_TAG }}"

- name: Push Validator image to Amazon ECR
run: |
docker tag "validator-repo:${{ inputs.VERSION_NUMBER }}" "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/validator-repo:${{ inputs.DOCKER_IMAGE_TAG }}"
docker push "${{ env.ACCOUNT_ID }}.dkr.ecr.eu-west-2.amazonaws.com/validator-repo:${{ inputs.DOCKER_IMAGE_TAG }}"

- name: Check fhir facade scan results
env:
REPOSITORY_NAME: fhir-facade-repo
Expand All @@ -230,14 +216,6 @@ jobs:
run: |
./check_ecr_image_scan_results.sh

- name: Check validator scan results
env:
REPOSITORY_NAME: validator-repo
IMAGE_TAG: ${{ inputs.DOCKER_IMAGE_TAG }}
working-directory: .github/scripts
run: |
./check_ecr_image_scan_results.sh

- name: fix cdk.json for deployment
run: |
./.github/scripts/fix_cdk_json.sh
Expand All @@ -252,7 +230,6 @@ jobs:
LOG_LEVEL: "${{ inputs.LOG_LEVEL }}"
TO_ASID: "${{ inputs.TO_ASID }}"
TO_PARTY_KEY: "${{ inputs.TO_PARTY_KEY }}"
VALIDATOR_LOG_LEVEL: "${{ inputs.VALIDATOR_LOG_LEVEL }}"
ENABLE_DEFAULT_ASID_PARTY_KEY: "${{ inputs.ENABLE_DEFAULT_ASID_PARTY_KEY }}"
DEFAULT_PTL_ASID: "${{ secrets.DEFAULT_PTL_ASID }}"
DEFAULT_PTL_PARTY_KEY: "${{ secrets.DEFAULT_PTL_PARTY_KEY }}"
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
VERSION_NUMBER: PR-${{ needs.get_issue_number.outputs.issue_number }}
COMMIT_ID: ${{ needs.get_commit_id.outputs.commit_id }}

release_code:
release_dev:
needs: [get_issue_number, package_code, get_commit_id]
uses: ./.github/workflows/cdk_release_code.yml
with:
Expand All @@ -110,7 +110,6 @@ jobs:
VERSION_NUMBER: PR-${{ needs.get_issue_number.outputs.issue_number }}
COMMIT_ID: ${{ needs.get_commit_id.outputs.commit_id }}
LOG_LEVEL: debug
VALIDATOR_LOG_LEVEL: INFO
LOG_RETENTION_DAYS: 30
DEPLOY_APIGEE: true
TARGET_SPINE_SERVER: msg.veit07.devspineservices.nhs.uk
Expand Down Expand Up @@ -154,7 +153,6 @@ jobs:
VERSION_NUMBER: PR-${{ needs.get_issue_number.outputs.issue_number }}
COMMIT_ID: ${{ needs.get_commit_id.outputs.commit_id }}
LOG_LEVEL: debug
VALIDATOR_LOG_LEVEL: INFO
LOG_RETENTION_DAYS: 30
DEPLOY_APIGEE: true
TARGET_SPINE_SERVER: unused
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ jobs:
VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}}
COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}}
LOG_LEVEL: debug
VALIDATOR_LOG_LEVEL: INFO
LOG_RETENTION_DAYS: 30
DEPLOY_APIGEE: true
# CREATE_INT_RELEASE_NOTES: true
Expand Down Expand Up @@ -139,7 +138,6 @@ jobs:
VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}}
COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}}
LOG_LEVEL: debug
VALIDATOR_LOG_LEVEL: INFO
LOG_RETENTION_DAYS: 30
DEPLOY_APIGEE: true
TARGET_SPINE_SERVER: unused
Expand Down Expand Up @@ -190,7 +188,6 @@ jobs:
VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}}
COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}}
LOG_LEVEL: debug
VALIDATOR_LOG_LEVEL: INFO
LOG_RETENTION_DAYS: 30
DEPLOY_APIGEE: true
TARGET_SPINE_SERVER: prescriptions.refspineservices.nhs.uk
Expand Down Expand Up @@ -237,7 +234,6 @@ jobs:
VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}}
COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}}
LOG_LEVEL: debug
VALIDATOR_LOG_LEVEL: INFO
LOG_RETENTION_DAYS: 30
DEPLOY_APIGEE: true
TARGET_SPINE_SERVER: msg.intspineservices.nhs.uk
Expand Down Expand Up @@ -281,7 +277,6 @@ jobs:
VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}}
COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}}
LOG_LEVEL: debug
VALIDATOR_LOG_LEVEL: INFO
LOG_RETENTION_DAYS: 30
DEPLOY_APIGEE: true
TARGET_SPINE_SERVER: msg.intspineservices.nhs.uk
Expand Down Expand Up @@ -331,7 +326,6 @@ jobs:
VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}}
COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}}
LOG_LEVEL: debug
VALIDATOR_LOG_LEVEL: INFO
LOG_RETENTION_DAYS: 30
DEPLOY_APIGEE: true
TARGET_SPINE_SERVER: unused
Expand Down Expand Up @@ -372,7 +366,6 @@ jobs:
VERSION_NUMBER: ${{needs.tag_release.outputs.version_tag}}
COMMIT_ID: ${{needs.get_commit_id.outputs.commit_id}}
LOG_LEVEL: info
VALIDATOR_LOG_LEVEL: INFO
LOG_RETENTION_DAYS: 731
# MARK_JIRA_RELEASED: true
# CREATE_PROD_RELEASE_NOTES: true
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release_ref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
VERSION_NUMBER: ${{ inputs.versionNumber }}
COMMIT_ID: ${{ inputs.commitId}}
LOG_LEVEL: debug
VALIDATOR_LOG_LEVEL: INFO
LOG_RETENTION_DAYS: 30
DEPLOY_APIGEE: true
TARGET_SPINE_SERVER: prescriptions.refspineservices.nhs.uk
Expand Down
1 change: 0 additions & 1 deletion cdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
"logLevel": "foo",
"toAsid": "foo",
"toPartyKey": "foo",
"validatorLogLevel": "foo",
"enableDefaultAsidPartyKey": "foo",
"defaultPTLAsid": "foo",
"defaultPTLPartyKey": "foo",
Expand Down
Loading
Loading