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

Offen
#68 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript, vscode

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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).

Vorherrschende Sprache
TypeScript
Sterne
4
Forks
1
Ø Merge
5 Std. 31 Min.
Gemergte PRs (30 T.)
229

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus githubnext/projections

Alle Issues in githubnext/projections

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.