Skip to content

Commit 1847e72

Browse files
net0wellclaude
andcommitted
ci: E2E do painel numa etapa própria (spec 008)
Os outros projetos de teste sobem e derrubam contêineres enquanto o E2E roda. Isso muda as interfaces de rede do runner, e o Chromium aborta requisições com ERR_NETWORK_CHANGED: no main, o pedaço da tela de Execuções não carregou e o AC-15 falhou. O CI agora roda o filtro tests/PythonScriptRunner.SemE2E.slnf e depois o E2E sozinho. O README explica como rodar os dois. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 74c0eaa commit 1847e72

3 files changed

Lines changed: 26 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ jobs:
6262
# Testcontainers (Docker); GitHub's Windows runners cannot run Linux containers, so Windows runs the Core tests only.
6363
- name: Test
6464
if: runner.os == 'Linux'
65-
run: dotnet test --no-build --configuration Release
65+
run: dotnet test --no-build --configuration Release --solution tests/PythonScriptRunner.SemE2E.slnf
66+
67+
# The panel E2E tests run alone: containers starting or stopping in the other test projects change the host's network
68+
# interfaces, and Chromium then aborts requests in flight with ERR_NETWORK_CHANGED.
69+
- name: Test (panel E2E)
70+
if: runner.os == 'Linux'
71+
run: dotnet test --no-build --configuration Release --project tests/PythonScriptRunner.Panel.E2E.Tests
6672

6773
- name: Upload Playwright traces
6874
if: failure() && runner.os == 'Linux'

‎README.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,13 @@ dotnet test --project tests/PythonScriptRunner.Panel.E2E.Tests --no-build # PS
283283
```
284284

285285
Quando um teste falha, o *trace* do Playwright fica em `TestResults/traces` ao lado do assembly de testes
286-
(`npx playwright show-trace <arquivo>.zip`).
286+
(`npx playwright show-trace <arquivo>.zip`). Rode o E2E sozinho: contêineres subindo ou parando em outros projetos de
287+
teste mudam as interfaces de rede e o Chromium aborta requisições com `ERR_NETWORK_CHANGED`. Para todo o resto de uma vez,
288+
use o filtro de solução sem o E2E (é o que o CI faz):
289+
290+
```bash
291+
dotnet test --solution tests/PythonScriptRunner.SemE2E.slnf
292+
```
287293

288294
O teste de desempenho do painel usa ~200 mil execuções; `PSR_PERF_RUNS_PER_DAY=50000` roda o volume médio completo (90 dias).
289295
O documento OpenAPI do painel é comparado com `tests/PythonScriptRunner.Dashboard.Tests/Snapshots/openapi-v1.verified.json`;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"solution": {
3+
"path": "../PythonScriptRunner.slnx",
4+
"projects": [
5+
"tests/PythonScriptRunner.Core.Tests/PythonScriptRunner.Core.Tests.csproj",
6+
"tests/PythonScriptRunner.Dashboard.Tests/PythonScriptRunner.Dashboard.Tests.csproj",
7+
"tests/PythonScriptRunner.EntityFrameworkCore.Tests/PythonScriptRunner.EntityFrameworkCore.Tests.csproj",
8+
"tests/PythonScriptRunner.RabbitMQ.Tests/PythonScriptRunner.RabbitMQ.Tests.csproj",
9+
"tests/PythonScriptRunner.Worker.Tests/PythonScriptRunner.Worker.Tests.csproj"
10+
]
11+
}
12+
}

0 commit comments

Comments
 (0)