Skip to content

Commit 720a74b

Browse files
Fix manual release workflow Python version for Ubuntu 26.04 runners.
Use Python 3.14.6 (available on ubuntu-26.04 via setup-python) instead of 3.14.0, and add a contract test to keep manual-releases in sync with versions.yaml. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent cfe49b5 commit 720a74b

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Comprehensive automated testing and validation pipeline that runs on every push
266266

267267
#### **Environment Configuration**
268268

269-
- **Python**: 3.14.0
269+
- **Python**: 3.14.6
270270
- **Terraform**: 1.14.6
271271
- **Kubectl**: v1.34.2
272272
- **Operating System**: Ubuntu 24.04
@@ -348,7 +348,7 @@ Controlled release management system that allows manual version bumping and rele
348348

349349
#### **Environment Configuration**
350350

351-
- **Python**: 3.14.0
351+
- **Python**: 3.14.6
352352
- **Semver Package**: 3.0.4
353353
- **Operating System**: Ubuntu 24.04
354354

.github/workflows/manual-releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ on:
4949

5050
# Environment variables for consistent tool versions
5151
env:
52-
PYTHON_VERSION: '3.14.0' # Python version for semantic versioning
52+
PYTHON_VERSION: '3.14.6' # Python version for semantic versioning (semver_packages.python_version)
5353
SEMVER_PYTHON_PACKAGE_VERSION: "3.0.4" # Specific semver package version
5454

5555
# Required permissions for release operations

docs/MANUAL_RELEASES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ The manual release workflow is located at:
336336

337337
| Variable | Description | Default |
338338
|----------|---------------------------------------------------------------------------------------------|--------|
339-
| `PYTHON_VERSION` | Python [version](https://www.python.org/doc/versions/) used | `3.14.0` |
339+
| `PYTHON_VERSION` | Python [version](https://www.python.org/doc/versions/) used | `3.14.6` |
340340
| `SEMVER_PYTHON_PACKAGE_VERSION` | Version of the PyPi ["semver"](https://pypi.org/project/semver/) package to use | `3.0.4` |
341341

342342
### Secrets

tests/bats/contract-tests.bats

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ _all_tf_output_names() {
8888
[[ "$output" == *"$yaml_ver"* ]]
8989
}
9090

91+
@test "CONTRACT: manual-releases workflow PYTHON_VERSION matches versions.yaml semver_packages" {
92+
if ! command -v yq >/dev/null 2>&1; then skip "yq not installed"; fi
93+
local yaml_ver
94+
yaml_ver=$(yq eval '.semver_packages.python_version.current' "$VERSIONS_FILE")
95+
run grep "PYTHON_VERSION:" "${PROJECT_ROOT}/.github/workflows/manual-releases.yml"
96+
[[ "$output" == *"$yaml_ver"* ]]
97+
}
98+
9199
@test "CONTRACT: CI workflow TERRAFORM_VERSION matches versions.yaml" {
92100
if ! command -v yq >/dev/null 2>&1; then skip "yq not installed"; fi
93101
local yaml_ver

0 commit comments

Comments
 (0)