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

Offen
#2,091 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@Wikid82 arbeitet bereits daran.

Seit 28.11.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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.
Vorherrschende Sprache
Go
Sterne
17
Forks
2
Ø Merge
1 Std. 42 Min.
Gemergte PRs (30 T.)
173

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Wikid82/Charon

Alle Issues in Wikid82/Charon

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.