Repository navigation
Keep Stata's system globals out of property tests that expect an undefined global - #399
Merged
Merged
Conversation
…l to be undefined
…, and cover the three other tests that could draw one
Contributor
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.
CI failed on #397 in a property test that has nothing to do with it. The test generates random global names and expects each to draw
UNDEFINED_MACRO. It generatedS_OS. Stata always definesS_OS, and the analyzer correctly stays quiet about it (STATA_SYSTEM_GLOBALS), so the property failed. Counterexample:["S_OS","AAA","_AA"]gives only$AAA is not definedand$_AA is not defined.Five property files could hit this. In each, only global inputs exclude the 15 system globals:
fc.pre), so local coverage is unchanged;string-literal-macro-detectionnow also expects a system global to draw no warning.Proof: with every capitalized name temporarily counted as a system global, main's versions of these five files fail 12 tests. With this branch, only 3 fail, and their generators can't produce an
S_name. To find every affected test, I temporarily treated every global as a system global and checked each test that failed. Typecheck, lint, andbun test ./testspass.Reviewed with sol-loop: 2 rounds with gpt-6.1-sol. Sol verdict: approved
Created with Claude Opus 5.5 in T3 Code.
Summary by CodeRabbit