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

オープン
#2,091 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Wikid82 がすでに取り組んでいます。

2026年11月28日 から。

評価

この issue はまだ評価されていません。

説明

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.
主要言語
Go
スター
17
フォーク
2
平均マージ
1時間 42分
マージ済み PR(30日)
173

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Wikid82/Charon のほかの issue

Wikid82/Charon の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。