Resolve stable releases dynamically for exec-server compatibility tests (#54623)

## What changed

Replace fixed release pins for app-server/exec-server compatibility tests with the latest stable version and the stable release published closest to 60 days ago. Exclude drafts and prereleases, and prefer the higher version when publication dates are equally close.

Resolve release versions and SHA-256 asset digests before Linux Bazel CI runs, passing them through `CODEX_COMPAT_RELEASES` to the release archive repositories. Reuse the argument comment lint action so it also prepares compatibility releases. Add bounded retries for transient GitHub release reads.

## Testing

Add unit coverage for stable release filtering, version ordering, nearest publication dates, tie-breaking, and deduplication when both selections resolve to the same release.

GitOrigin-RevId: 5a8cf8bdabd77ab3fa89bbb711367b5d9ce8044b
This commit is contained in:
felixxia-oai
2026-10-16 14:49:23 +00:00
committed by copyberry
parent 2bf2bdf82c
commit b5115cdd66
9 changed files with 275 additions and 80 deletions
+24
View File
@@ -75,6 +75,14 @@ jobs:
shell: bash
run: ./scripts/check-module-bazel-lock.sh
- name: Resolve app-server/exec-server compatibility releases
if: runner.os == 'Linux'
env:
GH_TOKEN: ${{ github.token }}
run: |
releases="$(python3 .github/scripts/resolve_exec_server_releases.py)"
echo "CODEX_COMPAT_RELEASES=$releases" >> "$GITHUB_ENV"
- name: bazel test //...
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
@@ -367,6 +375,14 @@ jobs:
target: ${{ matrix.target }}
cache-scope: bazel-${{ github.job }}
- name: Resolve app-server/exec-server compatibility releases
if: runner.os == 'Linux'
env:
GH_TOKEN: ${{ github.token }}
run: |
releases="$(python3 .github/scripts/resolve_exec_server_releases.py)"
echo "CODEX_COMPAT_RELEASES=$releases" >> "$GITHUB_ENV"
- name: bazel build --config=clippy lint targets
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
@@ -466,6 +482,14 @@ jobs:
target: ${{ matrix.target }}
cache-scope: bazel-${{ github.job }}
- name: Resolve app-server/exec-server compatibility releases
if: runner.os == 'Linux'
env:
GH_TOKEN: ${{ github.token }}
run: |
releases="$(python3 .github/scripts/resolve_exec_server_releases.py)"
echo "CODEX_COMPAT_RELEASES=$releases" >> "$GITHUB_ENV"
- name: bazel build verify-release-build targets
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}