Skip to content

Update policyengine to 4.18.9#3723

Merged
anth-volk merged 1 commit into
masterfrom
update-policyengine-4.18.9
Jul 3, 2026
Merged

Update policyengine to 4.18.9#3723
anth-volk merged 1 commit into
masterfrom
update-policyengine-4.18.9

Conversation

@anth-volk

Copy link
Copy Markdown
Collaborator

Fixes #3722

What

Raises the policyengine[models] pin from 4.18.8 to 4.18.9 and relocks uv.lock.

Why

policyengine 4.18.9 ships the dataset-autosave-corruption fix (policyengine.py #450, issue #449). In 4.18.8, constructing a region-scoped dataset copy auto-saved over the shared source dataset file it was filtered from, corrupting it in processes that reuse a dataset file — crashing subsequent region runs (No households found matching state_fips=N) or silently computing results on one region's data. 4.18.9 removes the construction-time autosave and builds scoped copies with filepath=None.

Changes

  • pyproject.toml: policyengine[models]==4.18.84.18.9 (one line).
  • uv.lock: relocked — policyengine v4.18.8 -> v4.18.9. Also syncs the project's own 3.43.6 -> 3.43.7 (already in pyproject.toml, stale in the committed lock); companion country packages unchanged.
  • changelog.d/update-policyengine-4.18.9.changed.md (towncrier fragment).

Verification

Pulls in the dataset-autosave-corruption fix (policyengine.py #450): a
region-scoped dataset copy no longer overwrites the shared source dataset
file it was filtered from. Relocked uv.lock (also syncs the stale project
version 3.43.6 -> 3.43.7 already in pyproject).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.72%. Comparing base (6d2f598) to head (d05e429).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3723   +/-   ##
=======================================
  Coverage   79.72%   79.72%           
=======================================
  Files          70       70           
  Lines        4326     4326           
  Branches      807      807           
=======================================
  Hits         3449     3449           
  Misses        657      657           
  Partials      220      220           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@anth-volk anth-volk marked this pull request as ready for review July 3, 2026 00:27
@anth-volk anth-volk merged commit 1c82683 into master Jul 3, 2026
10 checks passed
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.

Update policyengine to 4.18.9 (region-scope dataset corruption fix)

1 participant