tools: a stale vscode-ui dist is reported as current, so tests run against old output

Aperta
#68 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript, vscode

Direzione di ricerca

Start with the tools entry point run via npm run tools --prefix opensource, and find the up-to-date check it uses to decide that packages/integrations/vscode-ui/dist is current. Reproduce by touching a file under that package's sources, then running tools test and confirming it still uses the old output. Done when a newer source file forces a rebuild before tests, or the test command refuses to run against stale output, with the behaviour covered by a test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

npm run tools --prefix opensource -- test <target> can run unit tests against stale built output. On a fresh checkout of main, the build tool reported packages/integrations/vscode-ui/dist as current when it was older than its sources, so tools test first ran against the old output.

Expected: tools build / tools test notice that the sources are newer than dist and rebuild, or refuse to run tests against stale output.

Found while removing the scope switch counts (githubnext/projections#67).

Lingua principale
TypeScript
Stelle
4
Fork
1
Merge medio
5h 31m
PR unite (30g)
229

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 githubnext/projections

Tutte le issue di githubnext/projections

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.