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

Aberta
#68 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
Meio dia
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript, vscode
Domínio
build-system, tooling

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
TypeScript
Estrelas
4
Forks
1
Merge médio
5h 31min
PRs com merge (30d)
229

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de githubnext/projections

Todas as issues de githubnext/projections

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.