Skip to content

Test only, do not merge: check the policyengine-us break report - #680

Closed
hua7450 wants to merge 6 commits into
masterfrom
test-pe-us-break-report
Closed

hua7450 wants to merge 6 commits into
masterfrom
test-pe-us-break-report

Conversation

@hua7450

@hua7450 hua7450 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Throwaway test of the policyengine-us break report from #635. Not for review; do not merge. It will be closed once the check and comment are confirmed.

This branch is #635 plus one commit that adds a module-level name (_ID_OFFSET = 0) used in build_default_simulation. Core's behaviour does not change, but policyengine-us's test_social_security_input_state_machine executes Core source in its own namespace, so it should fail with this Core, as it did with Core 3.33.13.

Expected:

  • "Test policyengine-us main against this Core" stays green.
  • A grey neutral "policyengine-us compatibility" check lists that one test.
  • github-actions[bot] posts one comment listing it.

A second commit will then revert the change; the check should turn green and the comment should change to say nothing breaks any more.

No local tests were run for this test branch; CI is the test.

🤖 Generated with Claude Code

hua7450 and others added 5 commits October 27, 2026 14:36
Core 3.33.13 broke policyengine-us main's state machine test within
minutes of release, while the country smoke job passed: it installs a
pinned policyengine-us release and only checks that systems load. The new
PolicyEngineUSMain job runs a list of fast policyengine-us tests that drive
Core internals, with the Core release and then with this checkout, and
fails only on tests that fail with this Core alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address review: `|| true` hid pytest's status, and compare looked only at
tests in the candidate report, so an empty or cut-short run went green.

- Run both passes through `country_main_tests.py run`, with
  --continue-on-collection-errors, and fail on any pytest status but 0 or 1.
- compare fails when this Core's run recorded no tests, a report is missing,
  or a test that passed with the release did not run. A failure in a file
  the release could not collect is a warning, not a break.
- The summary counts skips and says "failing with both Cores".
- Deselect the uprating test that downloads the default microdata.
- Check the installed dependencies after installing this Core.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Core change can need a policyengine-us fix after its release, so a test
this Core breaks no longer fails the job. compare writes its result, and
the new report step posts a neutral "policyengine-us compatibility" check
listing the breaks (successful when there are none) and one bot comment,
updated on later runs. A file this Core cannot collect counts as a break.
The job still fails when the comparison cannot be trusted: a run wrote no
report or no tests, or a test that passed with the release did not run for
any reason the reports show.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Do not merge. Checks that PolicyEngineUSMain reports a policyengine-us
break as a neutral check and a PR comment.
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

policyengine-us main against this Core

No policyengine-us test breaks with this Core any more, as of 6dfa760 (run).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hua7450 hua7450 closed this Dec 2, 2026
@hua7450
hua7450 deleted the test-pe-us-break-report branch December 2, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant