From 742b7a46c92f1f5f7937310a6066beb21bb10600 Mon Sep 17 00:00:00 2001 From: KazeemHamzat Date: Tue, 3 Mar 2026 09:29:21 +0000 Subject: [PATCH 1/3] Testing with 8GB Testing with 8GB --- .github/workflows/masterfhirvalidation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/masterfhirvalidation.yml b/.github/workflows/masterfhirvalidation.yml index 72bada1..6a51b28 100644 --- a/.github/workflows/masterfhirvalidation.yml +++ b/.github/workflows/masterfhirvalidation.yml @@ -65,12 +65,12 @@ jobs: - name: Build FHIR env: - MAVEN_OPTS: -Xmx2G + MAVEN_OPTS: -Xmx8G run: cd validation-service-fhir-r4 && mvn clean package - name: Run FHIR Validator run: | - nohup java -Xmx2G -jar validation-service-fhir-r4/target/fhir-validator.jar --terminology.url=https://ontology.nhs.uk/production1/fhir --terminology.authorization.tokenUrl=https://ontology.nhs.uk/authorisation/auth/realms/nhs-digital-terminology/protocol/openid-connect/token --terminology.authorization.clientId=${{ secrets.ONTO_CLIENT_ID }} --terminology.authorization.clientSecret=${{ secrets.ONTO_CLIENT_SECRET }} --aws.validationSupport=false --aws.queueEnabled=false & + nohup java -Xms2G-Xmx8G -jar validation-service-fhir-r4/target/fhir-validator.jar --terminology.url=https://ontology.nhs.uk/production1/fhir --terminology.authorization.tokenUrl=https://ontology.nhs.uk/authorisation/auth/realms/nhs-digital-terminology/protocol/openid-connect/token --terminology.authorization.clientId=${{ secrets.ONTO_CLIENT_ID }} --terminology.authorization.clientSecret=${{ secrets.ONTO_CLIENT_SECRET }} --aws.validationSupport=false --aws.queueEnabled=false & # Wait for it to become ready, try 30 times, with 10 seconds between for i in {1..60}; do if curl -sSf http://localhost:9001/metadata > /dev/null || \ From fa019867565b3c92283fc9049ed0147c601552db Mon Sep 17 00:00:00 2001 From: KazeemHamzat Date: Tue, 3 Mar 2026 09:58:49 +0000 Subject: [PATCH 2/3] Testing with 12s Testing with 12s --- src/validator.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validator.test.ts b/src/validator.test.ts index 44508d5..7d055df 100644 --- a/src/validator.test.ts +++ b/src/validator.test.ts @@ -11,7 +11,7 @@ const args = require('minimist')(process.argv.slice(2)) let terminology = true; -jest.setTimeout(40*1000) +jest.setTimeout(120_000) let gitHubSummary = '### :fire_engine: Logs '+NEW_LINE; From 5694c8876e2d18fe79148ab040a3a0988e539999 Mon Sep 17 00:00:00 2001 From: KazeemHamzat Date: Tue, 3 Mar 2026 11:13:09 +0000 Subject: [PATCH 3/3] Update Update --- src/validator.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/validator.test.ts b/src/validator.test.ts index 7d055df..36b661d 100644 --- a/src/validator.test.ts +++ b/src/validator.test.ts @@ -7,8 +7,10 @@ import fs from "fs"; -const args = require('minimist')(process.argv.slice(2)) +// Retry flaky specs (e.g., when the terminology endpoint is slow) +jest.retryTimes(2, { logErrorsBeforeRetry: true }); +const args = require('minimist')(process.argv.slice(2)) let terminology = true; jest.setTimeout(120_000)