chore(deps): update policyengine to 4.18.9#601
Merged
Conversation
Pulls in the dataset-autosave-corruption fix (policyengine.py #450): the region-scoped dataset copy no longer overwrites the shared single-year file baked into the Modal image, which was crashing state runs and silently corrupting national results in reused containers. No worker code change needed. Companion model pins unchanged; uv lock resolves cleanly. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #600
What
Bumps the simulation worker's
policyenginepin from4.18.8to4.18.9and relocksuv.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 single-year file baked into the Modal image, corrupting it inside reused containers — crashing subsequent state runs (
No households found matching state_fips=N) and silently computing national results on one state's data. 4.18.9 removes the construction-time autosave and builds scoped copies withfilepath=None.Changes
projects/policyengine-api-simulation/pyproject.toml:policyengine==4.18.8→4.18.9(one line).projects/policyengine-api-simulation/uv.lock: relocked (policyengine v4.18.8 -> v4.18.9; no other packages changed).No worker code change is required — the corruption occurred entirely inside policyengine.py's
run().Verification
uv lockresolved cleanly with companion pins (policyengine-core,policyengine-us,policyengine-uk) unchanged.model_post_initno longer callsself.save(), and the US/UK region-scoped copies usefilepath=None.ruff format --checkclean (no Python changed). No changelog mechanism in this repo.Not run locally: Modal deploy — the merge triggers the deploy pipeline, which rebuilds the image on the new policyengine version (the single-year prebuild layers rerun on the version bump, ~1 min). CI on this PR is the source of truth.