Repository navigation
test: testes de contêiner guardam os logs quando falham - #16
Merged
Merged
Conversation
Uma falha no CI, em que uma execução com numpy não terminou dentro do contêiner com cgroup, ficou sem diagnóstico. Os contêineres são removidos no fim do teste e os logs iam junto. - A saída dos hosts, do PostgreSQL e do RabbitMQ é capturada enquanto eles rodam. O teste do compose coleta os logs dos serviços antes do down. - Quando um teste falha, cada log vai para TestResults/container-logs/<teste>/, e as últimas 80 linhas do worker e do painel saem no output do teste. - O CI anexa essa pasta como o artefato container-logs quando o job falha. - O CONTRIBUTING orienta que commits e PRs descrevam o que mudou e por quê. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
Uma falha recente no CI ficou sem diagnóstico: no teste do limite de memória por cgroup, uma execução com numpy não terminou em 8 minutos dentro do contêiner. Os testes de contêiner removem os contêineres ao terminar, e os logs iam junto.
O que muda
docker compose logs) antes dodown.TestResults/container-logs/<teste>/, ao lado do assembly de testes. As últimas 80 linhas do worker e do painel aparecem também no output do teste, então a causa já aparece no log do CI. Testes que passam não gravam nada.container-logsquando falha.Verificação
dotnet builddos testes de contêiner sem avisos (avisos contam como erro) edotnet format --verify-no-changes✅🤖 Generated with Claude Code