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

Ouverte
#2,091 0 commentaires 0 réactions 1 personne assignée Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@Wikid82 y travaille déjà.

Depuis le 28/11/2026.

Évaluation

Cette issue n'a pas encore été évaluée.

Description

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.
Langage dominant
Go
Étoiles
17
Forks
2
Merge moyen
1 h 42 min
PR mergées (30 j)
173

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Wikid82/Charon

Toutes les issues de Wikid82/Charon

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.