ci: security E2E shard 1 carries ~2.8x the load of shards 2 and 3

Abierto
#2,091 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@Wikid82 ya está trabajando en esto.

Desde el 28/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

backend security testing

What: In the security-tests E2E jobs, shard 1 is heavily overloaded compared with the other two shards. From bash scripts/ci/shard-security-specs.sh --report:

shard 1: 30 specs, weight 424
shard 2: 18 specs, weight 150
shard 3: 17 specs, weight 152

Where:

  • scripts/ci/shard-security-specs.sh: CHAIN_ENFORCEMENT (8 specs) and CHAIN_SECURITY (22 specs) are all pinned to one shard.
  • .github/workflows/e2e-tests-split.yml:778: shard 1 also runs tests/integration/multi-feature-workflows.spec.ts first.

Evidence: Run https://github.com/Wikid82/Charon/actions/runs/46194068190 (Firefox, security). Shards 2 and 3 each finished in about 4.5 minutes. Shard 1 was still running well after that.

Root cause: CHAIN_SECURITY is a self-described static over-approximation. It pins every tests/security/ spec that calls the backend without setting its own admin whitelist, so those specs depend on the bypass that zzzz-break-glass-recovery restores. Only the 8-spec break-glass chain truly has to run in order. Adding shards will not help, because the pinned set cannot be split.

Severity: medium. This is CI wall-clock time only; there is no product impact, but it is the critical path of every security E2E run.

Suggested approach:

  1. Give the pinned tests/security/ specs a per-spec admin-whitelist setup, such as a shared fixture, so they no longer depend on the break-glass bypass. Then remove them from CHAIN_SECURITY and let the balancer place them.
  2. A cheaper first step: run each CHAIN_SECURITY spec in a fresh container outside the chain, unpin the ones that pass, and regenerate the manifest with --generate 3.
Lenguaje dominante
Go
Estrellas
17
Forks
2
Merge medio
1 h 42 min
PR fusionados (30 d)
173

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Wikid82/Charon

Todos los issues de Wikid82/Charon

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.