Add end-to-end test for calibration database build pipeline#556
Merged
Add end-to-end test for calibration database build pipeline#556
Conversation
c33c39f to
94bf74f
Compare
Runs all ETL scripts (create_database_tables, create_initial_strata, etl_national_targets, etl_age, etl_medicaid, etl_snap, etl_state_income_tax, etl_irs_soi, validate_database) in sequence and validates the resulting SQLite database for: - Expected tables (strata, stratum_constraints, targets) - National targets include key variables (snap, social_security, ssi) - State income tax targets cover 42+ states with CA > $100B - Congressional district strata for 435+ districts - All target variables exist in policyengine-us - Total target count > 1000 This prevents API mismatches and import errors from going undetected when ETL scripts are modified. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
94bf74f to
be5b15f
Compare
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.
Summary
test_database_build.pythat runs every ETL script in sequence (matchingmake databaseorder) against a HuggingFace-hosted stratified CPS datasetTest plan
db_metadata.py)🤖 Generated with Claude Code