Skip to content

Keep PolicyEngine US fresh for data builds#990

Merged
MaxGhenis merged 1 commit into
mainfrom
codex/update-pe-us-1-691-11-freshness
May 16, 2026
Merged

Keep PolicyEngine US fresh for data builds#990
MaxGhenis merged 1 commit into
mainfrom
codex/update-pe-us-1-691-11-freshness

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • replace the temporary PolicyEngine US git dependency with the released exact PyPI pin policyengine-us==1.691.11
  • add a CI freshness checker that warns on PRs when the locked PolicyEngine US version lags PyPI or uses a git/non-exact pin
  • require the freshness checker before production pipeline and long-run projection builds, with an explicit allow_stale_policyengine_us override only for deliberate PyPI-lag cases

CRFB relevance

This prevents production H5 builds from silently using a stale PolicyEngine US runtime. It also moves data builds onto the released model containing the 2026 payroll cap and capital-gains election fixes from PolicyEngine/policyengine-us#8326. PolicyEngine US 1.691.12 is still publishing after PolicyEngine/policyengine-us#7959; if that lands before this merges, I will bump this PR once more.

Tests

  • env -u UV_FROZEN uv run python .github/scripts/check_policyengine_us_dependency.py --mode fail
  • env -u UV_FROZEN uv run pytest tests/unit/test_publication_scripts.py -q
  • env -u UV_FROZEN uv run --no-sync --with pyyaml python scripts/run_quality_guards.py
  • env -u UV_FROZEN uv lock --locked
  • git diff --check

@MaxGhenis MaxGhenis force-pushed the codex/update-pe-us-1-691-11-freshness branch from 61c9200 to 2d36af1 Compare May 16, 2026 16:21
@MaxGhenis MaxGhenis merged commit 7c8f5ce into main May 16, 2026
13 checks passed
@MaxGhenis MaxGhenis deleted the codex/update-pe-us-1-691-11-freshness branch May 16, 2026 16:48
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