-
Notifications
You must be signed in to change notification settings - Fork 201
Experiment: Faster CI timing #6963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
Collaborator
Author
|
@PolicyEngine upgrade uv lock |
|
I ran into an issue: |
3aba1c6 to
43577e5
Compare
PavelMakarchuk
approved these changes
Dec 18, 2025
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 #6962
Summary
Optimizes CI test job distribution to reduce total CI runtime by rebalancing workloads across parallel jobs.
Changes
Job restructuring
Results
Total CI time (slowest job): ~24m → ~15m = ~9 min faster
CI Job Breakdown
1. States (excl NY) & Python
policyengine_us/tests/policy/baseline/gov/states/--exclude ny(46 states + tax/)pytest policyengine_us/tests/States included:
al, ar, az, ca, co, ct, dc, de, ga, hi, ia, id, il, in, ks, ky, la, ma, md, me, mi, mn, mo, ms, mt, nc, nd, ne, nh, nj, nm, oh, ok, or, pa, ri, sc, tx, ut, va, vt, wa, wi, wv+tax/2. Baseline (incl NY) & Reform
policyengine_us/tests/policy/baseline/gov/states/ny/policyengine_us/tests/policy/baseline/--exclude statespolicyengine_us/tests/policy/baseline/household/policyengine_us/tests/policy/baseline/contrib/policyengine_us/tests/policy/reform/ctc_expansion.yaml,winship.yamlBaseline (excl states) includes:
calcfunctions,contrib,gov(excl states:aca, doe, ed, fcc, hhs, hud, irs, local, simulation, ssa, tax, territories, usda),income,parameters3. Structural (States) — Per-State Batches
Each state folder runs in its own subprocess with garbage collection between them. This prevents memory accumulation that was causing CI failures when adding new state folders.
dcdemimnmtnyorriutNew state folders are automatically picked up as separate batches.
4. Structural (Other) — 7 Memory-Balanced Batches
federal,harris,treasuryctc,snap_ea,ubi_centerdeductions,aca,snaptax_exempt,eitc,state_dependent_exemptions,additional_tax_bracketlocal,reconciliation,dc_single_joint_threshold_ratio.yaml,dc_kccatc.yaml,reported_state_income_tax.yaml+ new folderscrfbcongressSummary
Test plan