fix(ci): stop CI resolving against half-published PyPI releases

Co-authored-by: George Weale <gweale@google.com>
PiperOrigin-RevId: 963546374
This commit is contained in:
George Weale
2026-08-12 11:00:11 -07:00
committed by Copybara-Service
parent 77d4647c8e
commit f4b432db11
@@ -78,6 +78,12 @@ jobs:
with:
enable-cache: true
- name: Set the dependency resolution cutoff
# PyPI uploads a release's wheels one platform at a time, so resolving
# mid-upload can select a version whose wheel for this interpreter does
# not exist yet and fail the install. Skip the last hour of releases.
run: echo "UV_EXCLUDE_NEWER=$(date -u -d '1 hour ago' +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_ENV"
- name: Generate Baseline
env:
TARGET_BRANCH: ${{ github.base_ref || github.ref_name }}
@@ -149,6 +155,12 @@ jobs:
with:
enable-cache: true
- name: Set the dependency resolution cutoff
# PyPI uploads a release's wheels one platform at a time, so resolving
# mid-upload can select a version whose wheel for this interpreter does
# not exist yet and fail the install. Skip the last hour of releases.
run: echo "UV_EXCLUDE_NEWER=$(date -u -d '1 hour ago' +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_ENV"
- name: Install dependencies
run: |
uv venv .venv
@@ -193,6 +205,12 @@ jobs:
with:
enable-cache: true
- name: Set the dependency resolution cutoff
# PyPI uploads a release's wheels one platform at a time, so resolving
# mid-upload can select a version whose wheel for this interpreter does
# not exist yet and fail the install. Skip the last hour of releases.
run: echo "UV_EXCLUDE_NEWER=$(date -u -d '1 hour ago' +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_ENV"
- name: Install dependencies
run: |
uv venv .venv