Skip to content

Commit c0a5d31

Browse files
Merge branch 'dev' into clinical-reasoning-dep-update
2 parents 30d6951 + 53f4b2c commit c0a5d31

852 files changed

Lines changed: 67180 additions & 30099 deletions

File tree

Some content is hidden

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

.docker/create-dbs.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = 'link-notification') CRE
66
IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = 'link-tenant') CREATE DATABASE [link-tenant];
77
IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = 'link-validation') CREATE DATABASE [link-validation];
88
IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = 'link-querydispatch') CREATE DATABASE [link-querydispatch];
9-
IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = 'link-account') CREATE DATABASE [link-account];
9+
IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = 'link-account') CREATE DATABASE [link-account];
10+
IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = 'link-submission') CREATE DATABASE [link-submission];

.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ KAFKA_INTER_BROKER_PASSWORD=controller_password
88
AZURITE_CONNECTION_STRING=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1
99
INTERNAL_BLOB_CONTAINER_NAME=internal
1010
EXTERNAL_BLOB_CONTAINER_NAME=external
11+
ISSUER_URI=https://oauth.nhsnlink.org/realms/NHSNLink
12+
13+
KafkaConnection__SaslUsername=${KAFKA_SASL_CLIENT_USER}
14+
KafkaConnection__SaslPassword=${KAFKA_SASL_CLIENT_PASSWORD}
15+
Redis__Password=${REDIS_PASS}

.github/workflows/deploy-eventcatalog.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
on:
44
push:
55
branches:
6+
- dev
67
- tech_debt/ec-docs
78

89
permissions:

.github/workflows/pr-title-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
} else {
3131
core.setFailed('Cannot determine PR title for validation.')
3232
}
33-
const prTitleExpectedPattern = /(^LNK-\d+:\s)|(^TECH_DEBT:\s)|(^DOCS:\s)/g
34-
const prTitleMismatchError = 'Invalid PR title! Must begin with LNK-nnnn:<space> or TECH_DEBT:<space> or DOCS:<space>, e.g. LNK-1234: My PR title, or TECH_DEBT: My PR title or DOCS: My PR title'
33+
const prTitleExpectedPattern = /(^LNK-\d+:\s)|(^TECH_DEBT:\s)|(^DOCS:\s)|(^SNYK:\s)|(^Bump\s)/g
34+
const prTitleMismatchError = 'Invalid PR title "' + prTitle + '"! Must begin with LNK-nnnn:<space> or TECH_DEBT:<space> or DOCS:<space> or SNYK:<space> or Bump<space>, e.g. LNK-1234: My PR title, or TECH_DEBT or DOCS or SNYK or Bump: My PR title or DOCS: My PR title or [Snyk] My PR title'
3535
if (!prTitleExpectedPattern.test(prTitle)) {
3636
// Fail the workflow
3737
console.log(prTitleMismatchError)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
title: "SNYK: {{ snyk_pull_request_type }} for {{ package_name }}"
2+
description: |
3+
{{ #is_upgrade_pr }}
4+
This PR has been opened by Snyk to make sure our repositories are kept up-to-date.
5+
It updates **{{ package_name }}** from version {{ package_from }} to version {{ package_to }}.
6+
Review relevant docs for possible breaking changes.
7+
{{ /is_upgrade_pr }}
8+
9+
{{ #is_fix_pr }}
10+
This PR applies a fix for a vulnerability in **{{ package_name }}**.
11+
{{ /is_fix_pr }}
12+
13+
**Issues Fixed:** {{ issue_count }}

.github/workflows/tests.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,28 @@ jobs:
197197
path: ./TestResults/dotnet-unit-test-results.trx
198198
reporter: dotnet-trx
199199

200+
docs-build:
201+
name: Build Documentation
202+
runs-on: ubuntu-latest
203+
timeout-minutes: 10
204+
205+
steps:
206+
- name: Checkout code
207+
uses: actions/checkout@v4
208+
209+
- name: Setup Node.js
210+
uses: actions/setup-node@v4
211+
with:
212+
node-version: '22'
213+
214+
- name: Install dependencies
215+
run: npm ci
216+
working-directory: ./docs
217+
218+
- name: Build documentation
219+
run: npm run build
220+
working-directory: ./docs
221+
200222
java-unit-tests:
201223
name: Unit Tests for Java
202224
runs-on: ['ubuntu-latest']

Azure_Pipelines/_deploy_all_services.yml

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ variables:
2626
value: 'nhsnlink-aks'
2727
- name: nhsn_resourcegroup
2828
value: 'nhsnlink-rg'
29+
- name: env
30+
${{ if eq(parameters.environment, 'dev-scale') }}:
31+
value: 'dev'
32+
${{ if eq(parameters.environment, 'scale-test') }}:
33+
value: 'test'
34+
${{ if eq(parameters.environment, 'scale-qa') }}:
35+
value: 'qa'
2936

3037
jobs:
3138

@@ -82,58 +89,77 @@ jobs:
8289
serviceName: account
8390
repoName: account
8491
containerName: account
92+
healthUrl: https://$(env)-account.nhsnlink.org/health
8593
admin:
8694
serviceName: admin
8795
repoName: admin
8896
containerName: admin
97+
healthUrl: https://$(env)-admin.nhsnlink.org/api/health
8998
admin-ui:
9099
serviceName: admin-ui
91100
repoName: admin-ui
92101
containerName: admin-ui
102+
healthUrl: https://$(env)-admin.nhsnlink.org/
93103
audit:
94104
serviceName: audit
95105
repoName: audit
96106
containerName: audit
107+
healthUrl: https://$(env)-audit.nhsnlink.org/health
97108
census:
98109
serviceName: census
99110
repoName: census
100111
containerName: census
112+
healthUrl: https://$(env)-census.nhsnlink.org/health
101113
data-acquisition:
102114
serviceName: data-acquisition
103115
repoName: dataacquisition
104116
containerName: data
117+
healthUrl: https://$(env)-data.nhsnlink.org/health
105118
data-acquisition-worker:
106119
serviceName: data-acquisition-worker
107120
repoName: dataacquisition-worker
108121
containerName: data-worker
122+
healthUrl: https://$(env)-data.nhsnlink.org/health
109123
measure-eval:
110124
serviceName: measure
111125
repoName: measureeval
112126
containerName: measure
127+
healthUrl: https://$(env)-measure.nhsnlink.org/health
113128
normalization:
114129
serviceName: normalization
115130
repoName: normalization
116131
containerName: normalization
132+
healthUrl: https://$(env)-normalization.nhsnlink.org/health
117133
query-dispatch:
118134
serviceName: query-dispatch
119135
repoName: querydispatch
120136
containerName: query-dispatch
137+
healthUrl: https://$(env)-querydispatch.nhsnlink.org/health
121138
report:
122139
serviceName: report
123140
repoName: report
124141
containerName: report
142+
healthUrl: https://$(env)-report.nhsnlink.org/health
125143
submission:
126144
serviceName: submission
127145
repoName: submission
128146
containerName: submission
147+
healthUrl: https://$(env)-submission.nhsnlink.org/health
129148
tenant:
130149
serviceName: tenant
131150
repoName: tenant
132151
containerName: tenant
152+
healthUrl: https://$(env)-tenant.nhsnlink.org/health
153+
terminology:
154+
serviceName: terminology
155+
repoName: terminology
156+
containerName: terminology
157+
healthUrl: https://$(env)-terminology.nhsnlink.org/health
133158
validation:
134159
serviceName: validation
135160
repoName: validation
136161
containerName: validation
162+
healthUrl: https://$(env)-validation.nhsnlink.org/health
137163

138164
steps:
139165
- task: KubeloginInstaller@0
@@ -156,4 +182,25 @@ jobs:
156182
kubernetesCluster: '$(kube_clustername)'
157183
namespace: '$(kube_namespace)'
158184
command: set
159-
arguments: 'image -n $(kube_namespace) deployment $(serviceName)-deploy $(containerName)=$(containerRegistry)/link-$(repoName):$(Build.SourceBranchName)-$(GIT_COMMIT)'
185+
arguments: 'image -n $(kube_namespace) deployment $(serviceName)-deploy $(containerName)=$(containerRegistry)/link-$(repoName):$(Build.SourceBranchName)-$(GIT_COMMIT)'
186+
187+
- task: Bash@3
188+
displayName: 'Site Validation for $(serviceName)'
189+
inputs:
190+
targetType: 'inline'
191+
script: |
192+
echo "Starting health check for app..."
193+
URL="$(healthUrl)"
194+
195+
for i in {1..20}; do
196+
STATUS=$(curl -s -o /dev/null -w "%{http_code}" $URL)
197+
if [ "$STATUS" == "200" ]; then
198+
echo "Health check succeeded with HTTP $STATUS"
199+
exit 0
200+
fi
201+
echo "Attempt $i: App not healthy yet (HTTP $STATUS)"
202+
sleep 10
203+
done
204+
205+
echo "Application failed health check after 10 attempts."
206+
exit 1

Azure_Pipelines/_summarize_delta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy_All_Services
1+
name: Summarize Delta
22

33
trigger: none
44

Azure_Pipelines/azure-pipelines.admin-ui.cd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ variables:
3535
steps:
3636
- task: NodeTool@0
3737
inputs:
38-
versionSpec: '18.x'
38+
versionSpec: '20.x'
3939
displayName: 'Install Node.js'
4040

4141
- task: Npm@1
42-
displayName: 'Angular CLI 13.2.5'
42+
displayName: 'Angular CLI 20.3.7'
4343
inputs:
4444
command: custom
4545
verbose: false

Azure_Pipelines/azure-pipelines.census.cd.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -97,28 +97,6 @@ steps:
9797
$(MyTag)
9898
buildContext: '$(Build.Repository.LocalPath)'
9999

100-
- task: DotNetCoreCLI@2
101-
displayName: Install dotnet-ef
102-
inputs:
103-
command: 'custom'
104-
custom: 'tool'
105-
arguments: 'install --global dotnet-ef'
106-
107-
# - script: |
108-
# dotnet ef migrations script \
109-
# --idempotent \
110-
# --verbose \
111-
# -c CensusContext \
112-
# -s $(build.sourcesdirectory)/$(project) \
113-
# -p $(build.sourcesdirectory)/$(project) \
114-
# -o $(build.artifactstagingdirectory)/DotNet/Census/Scripts/censusDb.sql
115-
# displayName: Generate SQL Script
116-
117-
# - task: PublishPipelineArtifact@1
118-
# inputs:
119-
# targetPath: '$(Build.ArtifactStagingDirectory)'
120-
# artifact: 'manifest'
121-
122100
- task: PublishBuildArtifacts@1
123101
inputs:
124102
PathtoPublish: '$(Build.ArtifactStagingDirectory)'

0 commit comments

Comments
 (0)