Repository navigation
test: capture capped recheck propagation panic - #4180
Closed
teerthsharma wants to merge 1 commit into
Closed
teerthsharma wants to merge 1 commit into
teerthsharma wants to merge 1 commit into
Conversation
A finite chain of cyclic module pairs can consume the incremental epoch budget and reach commit with recorded export changes still pending. Keep the current failure as an expected-panic regression so a separate scheduler fix can remove the annotation and verify propagation reaches the final importer.
Contributor
|
@kinto0 has imported this pull request. If you are a Meta employee, you can view this in D112566493. |
Contributor
stroxler
approved these changes
Jul 17, 2026
stroxler
left a comment
Contributor
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Contributor
avokin2
pushed a commit
to avokin2/pyrefly
that referenced
this pull request
Aug 12, 2026
Summary: - let the incremental test harness configure an explicit in-memory module set - generate a finite chain of 208 two-module SCCs inside one Rust test - record the current `Transaction has uncommitted changes` failure with `#[should_panic]` ## Why An export change can consume the 100-epoch incremental budget, produce another export change during forced invalidation, and then reach commit with that change still pending. The generated graph exercises the real incremental transaction path without external fixtures or dependencies. This is deliberately a synthetic defense-in-depth reproducer and contains no scheduler fix. The assertions after the failing call describe the behavior a separate fix should restore. ## Verification - without `#[should_panic]`, the focused test fails at commit with `Transaction has uncommitted changes` - `cargo test -p pyrefly --lib test_deep_scc_chain_stabilizes_after_epoch_cap` - `cargo test -p pyrefly --lib test::incremental` (75 passed) - `python3 test.py --no-test --no-tensor-shapes --no-conformance --no-jsonschema` Refs pyrefly-org#4171 Pull Request resolved: pyrefly-org#4180 Reviewed By: stroxler Differential Revision: D112566493 Pulled By: kinto0 fbshipit-source-id: cb8e015c4c31c4d39ee20a356d21d717406c9dc4
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
Transaction has uncommitted changesfailure with#[should_panic]Why
An export change can consume the 100-epoch incremental budget, produce another export change during forced invalidation, and then reach commit with that change still pending. The generated graph exercises the real incremental transaction path without external fixtures or dependencies.
This is deliberately a synthetic defense-in-depth reproducer and contains no scheduler fix. The assertions after the failing call describe the behavior a separate fix should restore.
Verification
#[should_panic], the focused test fails at commit withTransaction has uncommitted changescargo test -p pyrefly --lib test_deep_scc_chain_stabilizes_after_epoch_capcargo test -p pyrefly --lib test::incremental(75 passed)python3 test.py --no-test --no-tensor-shapes --no-conformance --no-jsonschemaRefs #4171