-
Notifications
You must be signed in to change notification settings - Fork 0
compass(tests): hold the profiler-reply assertion to the roots REPLY_SURFACE names #302
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finding 1: non-blocking. Principle 8, a claim broader than its measurement. This test does not hold a root that is added at the call site when that root does not contain the producer.
The PR body says the test "also catches spellings that keep the name but add roots, such as
REPLY_SURFACE + (REPO / "atom",)". That example is caught only becauseatom/containsmodel_engine/model_runner.py. Add a root that does not contain the producer and the emptied surface still finds nothing, so the assertion still raises and this test stays green.Measured on node 18 (
xiaobizh_n18_cpu). The whole file was run with line 705 replaced and the line count kept:b3078336dc42404b67_mentions(REPLY_SURFACE + (REPO / "atom" / "compass",), "trace_dir")# trace_dirappended toatom/compass/spec/__init__.py:1...::test_the_profiler_replies_are_forwarded_whole_and_never_unpacked,Extra items in the left set: 'atom/compass/spec/__init__.py'The second row is #185's symptom, on a tree where every scope test and this test are green. The scope tests read the constant, so none of them sees a widening written at the call site.
For comparison, I measured an argument spy with the same mutants:
_mentionspatched to recordroots, thenassert seen == [REPLY_SURFACE]. It catches the additive root, but it missesREPLY_SURFACE or (REPO / "atom",), which this test catches. So the two mechanisms are complementary, and neither one covers both.Why this does not block: the brief's defect is the re-inlined whole-
atom/scan, and this test holds it (see the verdict comment). The additive root is a different mutation. It belongs with the brief's second gap as one follow-up. Please narrow that sentence in the PR body to what was measured.