From c2640d469977eca77d909a68c39d2f108ca758dc Mon Sep 17 00:00:00 2001 From: AlexWells Date: Thu, 3 Dec 2026 08:52:25 +0000 Subject: [PATCH] Build master dependencies against master epicscorelibs in periodic CI epicscorelibs master moved its ABI version to 7.0.11.99.0.0a1. pvxs and p4p were built from git in isolated build environments, which install the latest stable epicscorelibs from PyPI (7.0.10.99.0.2) rather than master, so p4p pinned epicscorelibs<7.0.10.99.1 and the install could no longer resolve. pip behaves the same way here as uv. Install build requirements and epicscorelibs master first, then build pvxs, p4p and softioc without isolation in dependency order, repeating each git URL so the resolver cannot replace it with a PyPI release. Disable the setup-uv cache, as uv caches git builds by commit only and could restore a wheel built against an older epicscorelibs. Add a step that fails if any master package was not installed from git. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/periodic.yml | 42 +++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml index 01abeea9..e63bd6bb 100644 --- a/.github/workflows/periodic.yml +++ b/.github/workflows/periodic.yml @@ -29,19 +29,49 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v10.3.2 + with: + # uv caches wheels built from git by commit, not by what they were + # built against, so a restored cache could supply a p4p or pvxs + # wheel built against an older epicscorelibs + enable-cache: false + # pvxs, p4p and softioc each pin the epicscorelibs ABI they were built + # against. If they are built in isolated environments, those + # environments get the latest stable epicscorelibs from PyPI rather + # than master, and the pins then conflict with master as soon as its + # ABI version moves on. So build everything without isolation, in + # dependency order, against the master epicscorelibs, and repeat + # each git URL in later installs so it is never replaced from PyPI. - name: Install master versions + env: + EPICSCORELIBS: git+https://github.com/epics-base/epicscorelibs.git + PVXS: git+https://github.com/epics-base/pvxs.git + P4P: git+https://github.com/epics-base/p4p.git + AIOCA: git+https://github.com/DiamondLightSource/aioca + COTHREAD: git+https://github.com/DiamondLightSource/cothread run: | uv venv + # Build requirements of all the packages below, plus epicscorelibs uv pip install --pre setuptools setuptools_scm setuptools_dso \ - git+https://github.com/epics-base/p4p.git \ - git+https://github.com/epics-base/pvxs.git \ - git+https://github.com/epics-base/epicscorelibs.git \ - git+https://github.com/DiamondLightSource/aioca \ - git+https://github.com/DiamondLightSource/cothread - # Build against the master epicscorelibs installed above + wheel numpy Cython "$EPICSCORELIBS" + # pvxs builds against epicscorelibs + uv pip install --pre --no-build-isolation "$EPICSCORELIBS" "$PVXS" + # p4p builds against epicscorelibs and pvxs + uv pip install --pre --no-build-isolation \ + "$EPICSCORELIBS" "$PVXS" "$P4P" "$AIOCA" "$COTHREAD" + # softioc builds against epicscorelibs uv pip install --no-build-isolation -e . --group dev uv pip freeze + - name: Check master versions were not replaced + run: | + uv pip freeze | tee freeze.txt + for pkg in epicscorelibs pvxslibs p4p aioca cothread; do + grep -q "^$pkg @ git+" freeze.txt || { + echo "::error::$pkg is not installed from git master" + exit 1 + } + done + - name: Run tests run: uv run --no-sync pytest