You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pregate: safe handling of removed non-test paths and source renames (follow-up to #3529) #3535
Follow-up to #3529 / #3534 (GSTA-137). #3534 waives only removed tests. Every other removed path still fails lanes with PREGATE_NO_LANE until a test or a dependencies entry covers it. That includes a deleted source file nothing uses and a renamed source file's old name, so dead-code cleanups and source renames still need a hand-written entry.
Why it was narrowed. Earlier cycles of #3534 waived a removed JS, TS, Python or Dart file when no remaining file imported it or mentioned its basename. Review kept finding references that check missed, and each one passed pregate while a remaining test failed after merge:
a computed path.join(__dirname, 'lib', 'value.js')
importlib.import_module("app.handlers")
python3 -m tools.cli
node lib/cli in package.json
Main refuses all four. The controller (GStack Minder) narrowed plan item D3 to removed tests only.
What a safe design needs. It needs reference detection that fails closed for extensionless, dotted-module and computed references. One option is to resolve a removed source file's old name the way an edit to it would be resolved, then run those tests instead of waiving it. It also needs the same treatment for a source rename's old name.
Evidence: GSTA-137 review outputs adversarial-native-5a1577b.txt and fix-check2.txt.
Activity