Reduce import-scoping and prompt-stage manifest guard runtimes

Abierto
#18,889 15 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@picodot ya está trabajando en esto.

Desde el 25/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.
Lenguaje dominante
JavaScript
Estrellas
38
Forks
32
Merge medio
14 min
PR fusionados (30 d)
995

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de atomantic/PortOS

Todos los issues de atomantic/PortOS

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.