Reduce import-scoping and prompt-stage manifest guard runtimes

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

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

@picodot đang làm issue này rồi.

Từ ngày 25/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

area:testing effort:medium in-progress model:medium plan planner:gpt-6-2-sol tests

Evidence

Related to #18791. The pregate run for PR #18887 passed all 53 selected server suites, but reported 4.4s for server/lib/importScoping.test.js and 5.5s for scripts/generate-prompt-stage-call-sites.test.js. The local target is 2.5s per guard, and the scheduled hosted budget is 4.0s. The PR changes audit prose handling and does not touch either guard.

Work

Reproduce using the normal pregate selected-server plan and use the reported phase timings to remove redundant work in the affected guard paths. Inspect the head/base import graph construction in server/lib/importScoping.test.js and the manifest freshness scan and comparisons in scripts/generate-prompt-stage-call-sites.test.js and its generator. The import guard already uses guardCorpus() for its working-tree measurement.

Acceptance criteria

  • Both suites run under the existing 4.0s scheduled budget in the corresponding CI plan, with before/after timings recorded.
  • Preserve import-growth comparisons and the fresh manifest's structural and byte-for-byte checks. Keep the existing timing budget and coverage.
Ngôn ngữ chính
JavaScript
Star
38
Fork
32
Merge trung bình
14 phút
Pull request đã merge (30 ngày)
995

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 atomantic/PortOS

Tất cả issue của atomantic/PortOS

Issue tương tự

Thêm issue về JavaScript

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.