Repository navigation
Conversation
…-folders test policyengine-us is deleting gov.irs.credits.premium_tax_credit, a leftover of IRS premium tax credit variables it removed earlier. Once a bundle update brings that in, selected_model raises LookupError for the missing folder. Use gov.irs.credits.education.american_opportunity_credit.amount as the US bracket scale instead; the UK triple lock folder still holds a null value. Fixes #4405 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4406 +/- ##
==========================================
- Coverage 93.96% 93.94% -0.02%
==========================================
Files 459 459
Lines 26261 26261
Branches 4088 4088
==========================================
- Hits 24675 24670 -5
- Misses 901 907 +6
+ Partials 685 684 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
DTrim99
marked this pull request as ready for review
December 4, 2026 18:49
This branch was previously deployed
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 #4405
Summary
gov.irs.credits.premium_tax_creditparameters (nothing in policyengine-us reads them).tests/integration/test_v2_catalog_installed_folders.pypublishedgov.irs.credits.premium_tax_credit.phase_outas its US bracket scale. Once a bundle update brings in a policyengine-us release without that folder,selected_modelraisesLookupErrorand the installed-folders tests fail.gov.irs.credits.education.american_opportunity_credit.amount, a three-bracket scale (amount[0].rate,amount[1].threshold, ...) that is the same in policyengine-us 2.2.2, the version pinned here, and on current main. It has held the same values since 2009.gov.dwp.state_pension.triple_lock(outturnis null from 2012), andtests/fixtures/v2_catalog_value_shapes.pystill covers null values and bracket scales on its own. Its reason now says so.tests/unit/v2/test_parameter_search_file.pyuses the PTC name only in a synthetic record, so it stays as it is.Testing
uv run --frozen --extra dev pytest tests/integration/test_v2_catalog_installed_folders.py -k "not publish_and_come_back": 3 passed, run against the installed policyengine 6.20.5 (policyengine-us 2.2.2, policyengine-uk 2.179.2). This covers the shape coverage test with the new selection. The publication test needs the disposable v2 database, so CI'sv2-integration-checkruns it.make qualitypassed through the pre-commit hook (shellcheck isn't installed locally, so that check was skipped).check_changelog_fragment.shagainstorigin/master: one fragment,changelog.d/4405.changed.md.🤖 Generated with Claude Code