test: TestCloseAllJoinsStandingTickerAndLaterProcessCanStart flakes on TempDir cleanup (directory not empty)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 72/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- go
- Domínio
- cli, testing-qa
Direção de pesquisa
Start with TestCloseAllJoinsStandingTickerAndLaterProcessCanStart in cmd/codeaf and run the provided go test command repeatedly. Trace closeAll and the background writer started by v3TestProcess, including the standing ticker, to find what can outlive closeAll. Done means the test passes at -count=200 and no writer touches the test temp tree after closeAll returns.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
What happened
touched packages on PR #1438 went red on cmd/codeaf (2026-09-24, CI run 36037211855). The PR's only cmd/codeaf change is one new case in update_test.go; the failing test is elsewhere in the package:
--- FAIL: TestCloseAllJoinsStandingTickerAndLaterProcessCanStart (0.13s)
testing.go:1464: TempDir RemoveAll cleanup: unlinkat /tmp/codeaf-ci/TestCloseAllJoinsStandingTickerAndLaterProcessCanStart1246116880/003: directory not empty
FAIL github.com/Agent-Field/codeaf/cmd/codeaf 98.730s
Every assertion in the test passes. What fails is t.TempDir()'s own cleanup: something writes into one of the test's temp directories while Go is removing it, after closeAll() has returned. So some writer outlives closeAll, either the later process's standing ticker or another background writer v3TestProcess starts.
Replication
Deterministic (no model). On dev@c26ea9c98, with no other change:
go test -count=30 -run '^TestCloseAllJoinsStandingTickerAndLaterProcessCanStart$' ./cmd/codeaf/
This failed 1 time in 30 on a laptop, with the same TempDir RemoveAll cleanup … directory not empty line. Raising -count makes it show up more reliably.
Field (real models). Not applicable.
Acceptance
go test -count=200 -run '^TestCloseAllJoinsStandingTickerAndLaterProcessCanStart$' ./cmd/codeaf/passes. The fix should make whatever writes into the test's temp tree aftercloseAll()returns stop before it returns, rather than retrying the cleanup or skipping the check. The test exists to prove that nothing writes after Close.
- Linguagem predominante
- Go
- Estrelas
- 115
- Forks
- 14
- Merge médio
- 9h 35min
- PRs com merge (30d)
- 752
Preparar o ambiente
Ainda não verificamos os arquivos de configuração deste projeto. Comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
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 Agent-Field/CodeAF
-
area:chat bug sev:papercut
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
Agent-Field/CodeAF#1592 ·
Mantenedores costumam responder em até 1 dia
-
area:headless bug sev:critical
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Agent-Field/CodeAF#1566 ·
Mantenedores costumam responder em até 1 dia
-
area:chat bug sev:critical
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Agent-Field/CodeAF#1548 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area:chat feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Agent-Field/CodeAF#1510 ·
Mantenedores costumam responder em até 1 dia
-
area:tests bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Agent-Field/CodeAF#1489 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de Agent-Field/CodeAF
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
siderolabs/terraform-provider-talos#414 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
JuliaComputing/jh#63 · 1 comentário ·
-
area/proxy kind/bug priority/backlog triage/accepted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
lexfrei/cloudflare-tunnel-gateway-controller#840 ·
Mantenedores costumam responder em até 1 dia
-
Priority: Normal Type: Bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
cloudflare/cloudflared#1747 ·