Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
41204c1
Bump aiohttp from 3.10.2 to 3.10.11
dependabot[bot] Nov 18, 2024
1efca7b
Update package mode
jameslinnell Dec 15, 2025
b51cb0a
Set python project version in azure
jameslinnell Dec 15, 2025
751023c
Update Azure to use python 3.8
jameslinnell Dec 15, 2025
dda4830
Use python 3.8 on build
jameslinnell Dec 15, 2025
a813780
Hard code build to use python 3.8
jameslinnell Dec 15, 2025
7848829
python v3.8 on build
jameslinnell Dec 15, 2025
5741353
Add python_version
jameslinnell Dec 15, 2025
3a8dfd5
Add python_version to template
jameslinnell Dec 15, 2025
3058f6c
default python 3.8
jameslinnell Dec 15, 2025
b3615a1
pyproject to use 3.8
jameslinnell Dec 15, 2025
597918b
Cache python 3.8
jameslinnell Dec 15, 2025
c5a45bc
use python version override
jameslinnell Dec 15, 2025
29d8d58
Maybe this time it will work
jameslinnell Dec 15, 2025
ad48db1
Does this work
jameslinnell Dec 15, 2025
79f048d
Use local apigee-build
jameslinnell Dec 15, 2025
a34a111
get tag as 3.8 is not supported
jameslinnell Dec 15, 2025
7f26c63
Better jq
jameslinnell Dec 15, 2025
d926c90
Perhaps this fixes it.
jameslinnell Dec 15, 2025
d7e03f8
Hard code python version
jameslinnell Dec 15, 2025
653ea4b
Remove second setting of LD_LIBRARY_PATH
jameslinnell Dec 15, 2025
f331f21
Output python version on spec compile
jameslinnell Dec 15, 2025
2363826
Use python 3.8
jameslinnell Dec 16, 2025
dfdbed8
Update python in run-tests
jameslinnell Dec 16, 2025
b40f1eb
Remove python version form pr pipeline
jameslinnell Dec 16, 2025
2372906
Merge remote-tracking branch 'origin/dependabot/pip/aiohttp-3.10.11' …
jameslinnell Dec 19, 2025
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: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ clean:
rm -rf dist

publish: clean
python --version
mkdir -p build
npm run publish 2> /dev/null

Expand Down
76 changes: 44 additions & 32 deletions azure/azure-build-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,55 @@
name: "$(SourceBranchName)+$(BuildID)"

trigger:
branches:
include:
- tags/refs/v*
tags:
include:
- v*
branches:
include:
- tags/refs/v*
tags:
include:
- v*

pr:
branches:
include: ['*']
branches:
include: ["*"]

resources:
repositories:
- repository: common
type: github
name: NHSDigital/api-management-utils
ref: refs/heads/edge
endpoint: NHSDigital
repositories:
- repository: common
type: github
name: NHSDigital/api-management-utils
ref: refs/heads/edge
endpoint: NHSDigital

variables:
- template: project.yml
- template: project.yml

extends:
template: azure/common/apigee-build.yml@common
parameters:
service_name: ${{ variables.service_name }}
short_service_name: ${{ variables.short_service_name }}
cache_steps:
- task: s3-cache-action@1
inputs:
key: 'node modules | ${{ variables.service_name }} | ${{ variables.service_name }}/package-lock.json'
location: '${{ variables.service_name }}/node_modules'
debug: true
displayName: cache node modules
- task: s3-cache-action@1
inputs:
key: 'poetry | ${{ variables.service_name }} | ${{ variables.service_name }}/poetry.lock'
location: '${{ variables.service_name }}/.venv'
debug: true
displayName: cache python dependencies
template: azure/common/apigee-build.yml@common

parameters:
python_version: ${{ variables.python_version }}
service_name: ${{ variables.service_name }}
short_service_name: ${{ variables.short_service_name }}
cache_steps:
- bash: |
echo "Resolved latest python version: 3.8.10"
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]/agent/_work/_tool/Python/3.8.10/x64/lib/"
displayName: "Query and set python tool cache path"

- task: UsePythonVersion@0
displayName: "Use Python ${{ variables.python_version }}"
inputs:
versionSpec: ${{ variables.python_version }}

- task: s3-cache-action@1
inputs:
key: "node modules | ${{ variables.service_name }} | ${{ variables.service_name }}/package-lock.json"
location: "${{ variables.service_name }}/node_modules"
debug: true
displayName: cache node modules
- task: s3-cache-action@1
inputs:
key: "poetry | ${{ variables.service_name }} | ${{ variables.service_name }}/poetry.lock"
location: "${{ variables.service_name }}/.venv"
debug: true
displayName: cache python dependencies
104 changes: 56 additions & 48 deletions azure/azure-pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,57 +4,65 @@ trigger: none
pr: none

resources:
repositories:
- repository: common
type: github
name: NHSDigital/api-management-utils
ref: refs/heads/edge
endpoint: NHSDigital
pipelines:
- pipeline: build_pipeline
source: "Spine-Directory-Service-Build"
trigger:
branches:
exclude:
- master
- refs/heads/master
- refs/tags/v*
repositories:
- repository: common
type: github
name: NHSDigital/api-management-utils
ref: refs/heads/edge
endpoint: NHSDigital
pipelines:
- pipeline: build_pipeline
source: "Spine-Directory-Service-Build"
trigger:
branches:
exclude:
- master
- refs/heads/master
- refs/tags/v*

pool:
name: 'AWS-ECS'
name: "AWS-ECS"

variables:
- template: project.yml
- template: project.yml

extends:
template: azure/common/apigee-deployment.yml@common
parameters:
service_name: ${{ variables.service_name }}
service_base_path: ${{ variables.service_base_path }}
short_service_name: ${{ variables.short_service_name }}
deploy_review_sandbox: true
secret_ids:
- ptl/client/ldap.nis1.national.ncrs.nhs.uk/key
- ptl/client/ldap.nis1.national.ncrs.nhs.uk/crt
- ptl/veit07.devspineservices.nhs.uk/root-ca/crt
config_ids:
- /ptl/api-deployment/sds/ldap/private-key
- /ptl/api-deployment/sds/ldap/client-cert
- /ptl/api-deployment/sds/ldap/ca-certs
jinja_templates:
hosted_target_healthcheck_suffix: /healthcheck/deep
apigee_deployments:
- environment: internal-dev
post_deploy:
- template: ./templates/run-tests.yml
parameters:
e2e_tests: true
smoke_tests: true
security_tests: true
- environment: internal-dev-sandbox
proxy_path: sandbox
post_deploy:
- template: ./templates/run-tests.yml
parameters:
e2e_tests: true
smoke_tests: true
template: azure/common/apigee-deployment.yml@common
parameters:
service_name: ${{ variables.service_name }}
service_base_path: ${{ variables.service_base_path }}
short_service_name: ${{ variables.short_service_name }}
deploy_review_sandbox: true
secret_ids:
- ptl/client/ldap.nis1.national.ncrs.nhs.uk/key
- ptl/client/ldap.nis1.national.ncrs.nhs.uk/crt
- ptl/veit07.devspineservices.nhs.uk/root-ca/crt
config_ids:
- /ptl/api-deployment/sds/ldap/private-key
- /ptl/api-deployment/sds/ldap/client-cert
- /ptl/api-deployment/sds/ldap/ca-certs
jinja_templates:
hosted_target_healthcheck_suffix: /healthcheck/deep
apigee_deployments:
- environment: internal-dev
pre_deploy:
parameters:
python_version: ${{ variables.python_version }}
post_deploy:
- template: ./templates/run-tests.yml
parameters:
e2e_tests: true
smoke_tests: true
security_tests: true
python_version: ${{ variables.python_version }}
- environment: internal-dev-sandbox
proxy_path: sandbox
pre_deploy:
parameters:
python_version: ${{ variables.python_version }}
post_deploy:
- template: ./templates/run-tests.yml
parameters:
e2e_tests: true
smoke_tests: true
python_version: ${{ variables.python_version }}
Loading
Loading