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

Đang mở
#2,091 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Wikid82 đang làm issue này rồi.

Từ ngày 28/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.
Ngôn ngữ chính
Go
Star
17
Fork
2
Merge trung bình
1 giờ 42 phút
Pull request đã merge (30 ngày)
173

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Wikid82/Charon

Tất cả issue của Wikid82/Charon

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.