Repository navigation
Conversation
… test The policyengine-us main job ran a hand-picked list of 13 fast files. Core 3.41.0 broke two SPM tests on policyengine-us main that the list did not include, and since 2026-10-01 the list would have caught only two of the four Core releases that broke policyengine-us's Python tests. On PRs marked ready, jobs now check out the commit of policyengine-us's latest successful release run, install this Core, and run its Python tests as that run did: the Rest shards from its own planner, Microsimulation, SPM and the contrib Python tests. Compare sets the results against that run's JUnit reports instead of a second run with the Core release, so each PR push costs one run of the suite. The YAML tests stay out: no Core release broke one in that time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
policyengine-us main against this CoreNo policyengine-us test breaks: every policyengine-us Python test that passed in policyengine-us release run 47202942027 at Checked at |
…ait for it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been 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.
Why
#635 added a job that runs policyengine-us main's tests against the Core under test, but only a hand-picked list of 13 fast files. Core 3.41.0 (#675) then broke two policyengine-us SPM tests that weren't on the list, and policyengine-us main went red the same day.
Since 2026-10-01, policyengine-us main has had 185 failed runs. Four of them were caused by a Core release, and all four broke Python tests:
test_formulas_do_not_write_into_cached_arrays.pytest_social_security_input_state_machine.pytest_social_security_input_state_machine.pytest_spm_system.pyMost of the other failures were version-bump push races, Publish failures and runner shutdowns. The YAML failures in that period were policyengine-us's own: for two of them, the last green release run before the failure used the same Core version, and the third (Oct 7) failed in one run and never again. So this PR runs every Python test and leaves the YAML tests out.
What changes
On PRs marked ready (not drafts), six jobs replace the single policyengine-us job:
rest_python_shards.py, using those reports as timings..github/actions/policyengine-us-main. They then run the tests with the same commands policyengine-us's CI uses: the shard runner,make test-microsimulation,make test-other-python-spm, and the filesmake test-policy-contrib-pythonruns.Other changes:
abc1234".pull_requestnow also triggers onready_for_review, so marking a draft ready starts the jobs.selectcommand are removed. Tests policyengine-us adds are covered without any change in Core.AGENTS.md,docs/engineering/skills/github-prs.mdand the skills index tell agents to wait for that comment at the PR's head commit before reporting a PR, and what each result means (no breaks, N breaks, or no comment because a job failed).Result on this PR
b5c5006, against release run 47176564722 (Core 3.40.1), the check reported that this Core breaks exactly 3 tests: the Social Security input state machine test and the twotest_spm_system.pytests that Core 3.41.0 broke. The old list missed the SPM tests. Fix policyengine-us for policyengine-core 3.41.0's on-demand current-law copy policyengine-us#11729 fixed all 3.d16c0d4), it reported no breaks: 12,059 passed in the release run and 12,177 with this Core (the extra tests are contrib, which the release run doesn't report). The check turned green.Checks
ruff format --check .andruff check --select Fon the changed Python files both pass.88873cb, Core 3.40.1) and downloaded 7 Rest shard reports, the Microsimulation reports and the SPM report.compareon those reports:tests/core/test_country_main_tests.py. CI runs it.GITHUB_TOKENcan download policyengine-us's release run reports, so no extra token is needed. It can't read that run's job logs, so the comment leaves out which Core the release run used.🤖 Generated with Claude Code