Skip to content

fix(arcticpy): build 2.7 from a pinned GitHub commit until it is on PyPI - #373

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/arcticpy-27-git-source
Nov 26, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/arcticpy-27-git-source

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

arcticpy 2.7 (numpy 2 / Cython 3 support, upstream jkeger/arctic #73 + #75) cannot be published to PyPI yet: its only PyPI owner cannot log in, and the Hands token is refused for arcticpy (probed, 403). This makes the organism's single arcticpy installer build 2.7 from a pinned GitHub commit instead of arcticpy==2.6 from PyPI, so cti-upkeep work is not stalled. Closes the stopgap part of #372.

API Changes

No Python API changes. Installer contract change in .github/actions/install-arcticpy/install_arcticpy.sh:

  • New ARCTICPY_SOURCE, default git+https://github.com/jkeger/arctic@6f5153582aca00b7b0cc11ab04b2c58a7502400d (2.7).
  • ARCTICPY_VERSION now defaults to empty; a value installs arcticpy==<value> from PyPI (the revert path: default it to 2.7 once published).
  • Build deps get numpy>=2 / cython>=3 floors. Every consumer (lib-tests, smoke-tests, docs-build, Hands python_matrix, local pyauto-heart smoke, Nerves Colab) switches when this merges, since they all run this script from main.
    See full details below.

Test Plan

  • tests/test_smoke.py: 33 passed (new assert: source pinned to a full 40-hex commit)
  • Full Heart suite: 1521 passed, 2 failed — the two pre-existing main failures below
  • Real installer run into a fresh venv: "arcticpy 2.7 imported successfully"; arcticpy_smoke.py OK
  • pyauto-heart smoke autocti from this branch (env built by this installer): 44/44 PASS
  • PyAutoCTI test_autocti 279 passed and autocti_workspace_test likelihood pins unchanged under 2.7
  • Dispatch arcticpy-action.yml on this branch (3.12, 3.13)

Heart RED override (development only)

  • Authorization (live human, 2026-11-26, this session): "Override, open PRs" — for PyAutoHeart#372, branch feature/arcticpy-27-git-source (PyAutoHeart + PyAutoCTI).
  • Current RED reason (verbatim, pyauto-heart readiness --dev --repos PyAutoHeart,PyAutoCTI): PyAutoHeart: Heart Tests failure on main
    • Cause: tests/test_smoke_sha_gate.py — test_main_writes_record_outputs_and_summary and test_main_reads_force_and_the_latest_run_from_the_environment[env2-no main moved since run 100] fail on main since 2026-11-26 (fixed fixture dates from 2026-11-19 now hit FULL_SWEEP_MAX_AGE_DAYS = 7). Unrelated to this branch, which does not claim to fix it.
  • Branch gates passed:
    • PyAutoHeart full suite: 1521 passed, 2 failed — exactly the two main failures above; tests/test_smoke.py 33 passed.
    • PyAutoCTI test_autocti: 279 passed with arcticpy 2.7 imported.
    • Smoke: pyauto-heart smoke autocti from the branch's Heart (environment built by the branch installer from the pinned commit, "arcticpy 2.7 imported successfully"): 44/44 scripts PASS.
    • autocti_workspace_test likelihood pins (dataset_1d, imaging_ci): OK unchanged under 2.7.
    • Independent review: CLEAN (nits only; the full-commit pin test and the local-smoke git note were applied).
  • Merge needs a separate /prm and every required check green. The Heart PR's own Heart Tests will show the same two main failures until main is fixed. Heart stays RED for release.
Full API Changes (for automation & release notes)

Added

  • ARCTICPY_SOURCE env var in install_arcticpy.sh — pip URL built when ARCTICPY_VERSION is empty.

Changed

  • ARCTICPY_VERSION default 2.6 → empty (empty = build ARCTICPY_SOURCE).
  • action.yml / arcticpy-action.yml version input descriptions; heart/smoke.py pip-check comment (code unchanged).

Migration

  • Before: ARCTICPY_VERSION unset → arcticpy==2.6 from PyPI.
  • After: unset → arcticpy 2.7 from the pinned commit; ARCTICPY_VERSION=2.6 restores the old behaviour.

Companion: PyAutoCTI PR on the same branch (docs/config only).

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

install_arcticpy.sh now builds arcticpy from
git+https://github.com/jkeger/arctic@6f5153582aca00b7b0cc11ab04b2c58a7502400d
(2.7: numpy 2 / Cython 3 support) by default. Setting ARCTICPY_VERSION
installs that version from PyPI instead, which is the revert path once 2.7
is published. Build deps get numpy>=2 / cython>=3 floors. Tests assert the
source is pinned to a full commit and the no-cache install line still holds.

Stopgap for PyAutoHeart#372: the only PyPI owner of arcticpy cannot log in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit e1cf49e into main Nov 26, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/arcticpy-27-git-source branch November 26, 2026 12:30
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.

1 participant