Skip to content

Pin the country smoke bundle to policyengine-us 2.42.13 - #620

Merged
anth-volk merged 1 commit into
masterfrom
update-country-smoke-pins
Oct 15, 2026
Merged

anth-volk merged 1 commit into
masterfrom
update-country-smoke-pins

Conversation

@anth-volk

Copy link
Copy Markdown
Collaborator

Fixes #619

Change

.github/requirements/legacy-country-smoke.txt:

Package Before After
policyengine-us 1.824.1 (deleted from PyPI) 2.42.13 (the newest release)
spm-calculator 0.3.1 1.0.0.post1
policyengine-uk 2.90.2 2.90.2 (unchanged)
  • Why spm-calculator moves. US 2.42.13 requires spm-calculator>=1.0.0,<=1.0.0.post1, so the old 0.3.1 pin would conflict. 1.0.0.post1 is the release the new US pin resolves to.
  • Comments. The file's comments now explain the pins and say that old policyengine-us releases are deleted from PyPI. The comment on the install step in pr.yaml no longer refers to a legacy US model; this is a comment-only change.

Old policyengine-us releases are deleted from PyPI as space is needed, so this exact pin will need moving again. #619 lists the options.

Validation

I ran the job's steps locally on Python 3.11 and 3.14 (macOS), with no Hugging Face or GitHub token available:

  • uv pip install . -r .github/requirements/legacy-country-smoke.txt "pytest-rerunfailures>=16.2,<17" resolves 84 packages, with Core installed from the checkout.
  • uv pip check reports every installed package compatible.
  • RUN_SMOKE_TESTS=0 python -m pytest -m smoke --reruns 2 --reruns-delay 5 -v -s gives 2 passed: the US and UK tax-benefit systems both initialise. 24 tests are skipped, including the microsimulation smoke test, which RUN_SMOKE_TESTS=0 disables, as it did before.
  • actionlint passes on pr.yaml.

Not run locally: Windows, and Python 3.12 and 3.13. This PR's CI covers them.

Environment variables

No environment variable or secret is added, removed or rewired. The changed job reads two:

  • RUN_SMOKE_TESTS: set to the literal "0" in the "Run smoke tests only" step's env. It's the only variable the smoke tests read.
  • POLICYENGINE_GITHUB_MICRODATA_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}, GitHub Actions' built-in token, passed in through the same step's env. Only the skipped microsimulation test would use it.

🤖 Generated with Claude Code

The pinned policyengine-us 1.824.1 has been deleted from PyPI, so every
"Test Core and country packages" job failed to install. US 2.42.13 is the
newest release; it requires spm-calculator>=1.0.0,<=1.0.0.post1, so the
SPM pin moves to 1.0.0.post1. The UK pin is unchanged.

Fixes #619.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anth-volk
anth-volk requested a review from MaxGhenis October 14, 2026 22:54
@anth-volk
anth-volk merged commit 79dd6e1 into master Oct 15, 2026
19 checks passed
@anth-volk
anth-volk deleted the update-country-smoke-pins branch October 15, 2026 12:45
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.

Country smoke CI fails: the pinned policyengine-us 1.824.1 is no longer on PyPI

1 participant