pregate: safe handling of removed non-test paths and source renames (follow-up to #3529)

Đang mở
#3,535 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
devtools, testing

Hướng nghiên cứu

Read the GSTA-137 review outputs adversarial-native-5a1577b.txt and fix-check2.txt, then trace how lanes reports PREGATE_NO_LANE for removed paths. The issue calls for a design that detects extensionless, dotted-module, and computed references safely, including old names from source renames. Done means removed source paths and rename old names are handled without waiving paths that remaining tests or code still reference.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

S3

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.

Ngôn ngữ chính
TypeScript
Star
143k
Fork
21k
Merge trung bình
5 giờ 25 phút
Pull request đã merge (30 ngày)
791

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của garrytan/gstack

Tất cả issue của garrytan/gstack

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.