Skip to content

fix: never reuse a pip-cached arcticpy wheel across runner images - #331

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/arcticpy-wheel-cache-libgsl
Nov 11, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/arcticpy-wheel-cache-libgsl

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

autocti_workspace Smoke Tests have been red on main since GitHub's runners moved from ubuntu-24.04 to ubuntu-26.04 (run 42883685928). arcticpy ships only an sdist, so install_arcticpy.sh builds the wheel on the runner, and that wheel links the machine's libgsl by soname. smoke-tests.yml caches ~/.cache/pip with no image identity in the key, so pip restored the wheel built on 24.04 against libgsl.so.27. 26.04 only has libgsl28, so import arcticpy failed.

This PR installs arcticpy with --no-cache-dir, so the wheel is always built against the GSL actually present. That costs about 12–15 s per job: the uncached build in self-test run 32780221181 took 12 s. The fix sits in the one shared recipe, so it covers smoke tests, CTI lib-tests, docs builds and the local smoke runner. No manual cache deletion is needed. A regression test pins the flag.

Fixes #330.

Corrective-PR exception (AUTONOMY.md)

  • Heart RED reason, verbatim (pyauto-heart readiness, 2026-11-11T08:14Z, re-read unchanged at ship time): "autocti_workspace: Smoke Tests failure on main"
  • Authorization: live human, recorded on #330. It permits this one PR only: no auto-merge, release or rehearsal. Merge is a separate human /prm.
  • Causal mapping:
    • Failing step "Install arcticpy" restored a cached wheel built on the old image (Using cached arcticpy-2.6-…whl, then ImportError: libgsl.so.27).
    • That cached wheel was the only route to a stale build, and this diff closes it.
    • Green run 42508969926 was on ubuntu-24.04; red run 42883685928 on ubuntu-26.04.
  • Reasons this does not clear: the YELLOW items (manifest drift, PyAutoArray#675 and PyAutoMind#528 open 7+ days, no rehearsal for current source) remain, and release stays blocked until Heart says otherwise.
  • Out of scope, filed separately: a warnings NameError in smoke-tests.yml's continue-on-error cache-stats step (from fe22b65). It does not cause the RED.

API Changes

None. This is a CI install-recipe change only: no Python API, and no workflow inputs or outputs changed.

Test Plan

  • Full PyAutoHeart suite: 1319 passed (local, py3.13).
  • Control: the new test_arcticpy_build_never_reuses_a_pip_cached_wheel fails on the old script and passes with the fix.
  • Independent review (separate model): CLEAN. It confirmed causal and single-scope. Its one minor note (unsourced timing) is addressed by the timing cited above.
  • Pre-merge: arcticpy Action Self-Test (path-filtered on this action) builds fresh and imports on the current image; Heart tests green.
  • Post-merge (callers use @main): re-run autocti_workspace Smoke Tests on main. The log should show "Building wheel for arcticpy" and the run should go green. Then Heart's next verdict should drop the reason.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

arcticpy ships only an sdist, so install_arcticpy.sh builds the wheel on the
runner and it links that machine's libgsl by soname. smoke-tests.yml caches
~/.cache/pip with no image identity in the key, so after GitHub moved
ubuntu-24.04 (libgsl.so.27) to ubuntu-26.04 (libgsl.so.28) pip restored the
old wheel and `import arcticpy` failed (autocti_workspace run 42883685928).

Install arcticpy with --no-cache-dir so it is always built against the GSL
actually present (~12-15 s per job: the uncached build in
arcticpy-action self-test run 32780221181 took 12 s). The other installs keep the cache. A
regression test pins the flag on the real script.

Fixes #330. Corrective-PR exception for Heart RED reason
"autocti_workspace: Smoke Tests failure on main".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…string

The organ-code tenant firewall rejects workspace repo names in new organ
files; describe the incident generically.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 6e4be55 into main Nov 11, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/arcticpy-wheel-cache-libgsl branch November 11, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: never reuse a pip-cached arcticpy wheel across runner images

1 participant