Reduce import-scoping and prompt-stage manifest guard runtimes

Aperta
#18,889 15 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@picodot ci sta già lavorando.

Dal 25/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.
Lingua principale
JavaScript
Stelle
38
Fork
32
Merge medio
14m
PR unite (30g)
995

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di atomantic/PortOS

Tutte le issue di atomantic/PortOS

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.