Declared inputs and alwaysRunTests find no pytest or Maven tests
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Estagnada
- Stack de tecnologia
- typescript
Direção de pesquisa
Start in src/repo/impact.ts and trace how knownTestPaths is populated from profile.tests, then how declared input and alwaysRunTests globs select tests. Reproduce with the pytest examples in the issue, then check the Maven case under src/test/java/**. Done means matching pytest and Maven tests are selected for declared inputs and always-run globs; an open linked pull request (#272) is already addressing this issue.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
In src/repo/impact.ts, knownTestPaths only collects graph nodes while iterating profile.tests, the JavaScript test locations. pytest and Maven repositories have none, so the list is empty:
- every declared input in
diffci.jsonfails with "Declared input ... selects no tests; full validation required", even when itstestsglob matches real tests; alwaysRunTestsglobs select nothing, so the listed tests are silently not run.
Repro: pytest repository (testpaths = ["tests"]) with diffci.json {"inputs": [{"files": ["data/model.bin"], "tests": ["tests/test_model.py"]}]}. Change data/model.bin. For the second case, set alwaysRunTests: ["tests/test_smoke.py"] and change any module.
Expected: tests/test_model.py is selected; tests/test_smoke.py is always added.
Actual: full fallback for the declared input; tests/test_smoke.py is missing from the affected tests. Maven (src/test/java/**) behaves the same.
This means the workaround mentioned in #255 falls back rather than selecting tests. Related: #162.
- Linguagem predominante
- TypeScript
- Estrelas
- 0
- Forks
- 4
- Merge médio
- 18h 41min
- PRs com merge (30d)
- 48
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de DiffCI/core
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Planner: splitParts regex is quadratic on a quote followed by many backticks, so the fuzz test fails at randomTalvez já em andamento @FredApps assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
Mantenedores costumam responder em até 1 dia
-
Agent tools: changed_files lists only the new path of a renamed fileTalvez já em andamento @FredApps assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
DiffCI/core#243 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
adapter good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
Todas as issues de DiffCI/core
Issues semelhantes
-
agent-ready area: ui-server priority: p3 type: test
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
schlessera/brain-kit#4249 ·
Mantenedores costumam responder em até 1 dia
-
documentation tool triaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
can1357/oh-my-pi#19608 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
dependencies tech-debt
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
bcgov/nr-waste-plus#1549 ·
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
blixvip/solana-token-meta#17 ·
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
blixvip/solana-tx-parse#18 ·