Build recipes that exceed the 6h runner limit (e.g. envoy) via a Bazel remote cache
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- github-actions, rust
- Lĩnh vực
- build-system, ci-cd, infrastructure
Hướng nghiên cứu
Start by reviewing the build workflow and the remote-cache recipe proposed in #13957, then verify how the Envoy build currently passes Bazel flags. Done means a persistent cache is reachable securely, sequential jobs share it, and the build can resume across windows to produce the bottle.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
github.com/envoyproxy/envoy cannot be bottled on the standard GitHub-hosted
runners: a from-scratch Bazel build exceeds the 6 h job time limit. This is
not a recipe defect — every recipe-level lever has been exhausted:
| Lever tried | Result |
|---|---|
--jobs = HOST_CPUS * 0.5 |
x86-64 times out at 6 h |
--jobs = HOST_CPUS * 1.0 |
ARM64 OOM-killed |
--jobs = HOST_CPUS * 0.66 |
both fail (x64 timeout, ARM64 flaky Rust genrule) |
--fission=no, -Wno-error, --disable-new-dtags, rustc wrapper |
needed to compile at all, but do not reduce wall-clock below 6 h |
A single job cannot finish, and the recipe cannot change the runner's time limit.
Key insight (empirically verified)
Bazel uploads each action's result to a remote cache as soon as that action
completes — not at the end of the build. Consequently a fresh, ephemeral
runner pointed at the same remote cache hits the cache for every action a
previous run already completed, and only executes what remains. Splitting one
6 h build into several sequential ≤6 h windows becomes viable: window K
uploads the actions it finishes before timing out; window K+1 starts from a
clean checkout, hits the cache for those actions, and continues.
Proof
Reference cache: bazel-remote, built
pure-Go, CGO=0. Test project: 6 × sleep 4 genrules + an aggregator.
PHASE 1 COLD (cache empty) -> 7 processes executed 10 s
bazel clean --expunge -> wipes the ENTIRE output_base (= a brand-new runner)
PHASE 2 WARM (same remote_cache) -> 7 remote cache hit, 0 exec 2 s
cache store survived the --expunge: 28 files / 112 K
--expunge deletes the whole local build state, which is exactly what an
ephemeral runner starts from. The warm run reconstructed the action graph and
resumed entirely from the cache — no re-execution. This is the multi-window
mechanism, demonstrated end to end.
Proposal
- Stand up a persistent Bazel remote cache reachable from the build workflow —
e.g.bazel-remote(recipe proposed in #13957), backed by disk or S3, with
GC/quota. One small always-on host, or an S3-proxy cache, suffices. - Add to the envoy build the flags:
The cache URL / credentials are a workflow-level secret, not part of the--remote_cache=$CACHE_URL --remote_upload_local_results=true
public recipe (a public recipe must not carry secrets). This is why the
change belongs at the workflow layer, not inpackage.yml. - Run the build as N sequential jobs (a small
needs:-ordered chain), each
with the same--remote_cache. Each job may time out; the next resumes from
the cache. After ≤N windows the final job produces a fully-populated tree and
the bottle is packaged.
Alternatives considered
--disk_cacheon a persistent runner volume — the local analogue; works
only if the same runner volume survives between windows. Ephemeral hosted
runners don't keep the volume, so a remote cache is the portable answer.
(For a self-hosted runner with a persistent workspace,--disk_cachealone
is enough and needs no server.)- A self-hosted runner without the 6 h cap — solves it directly but adds
standing infra + trust surface; the remote-cache approach keeps the hosted
runners. - RBE (BuildBuddy / NativeLink) — remote execution, not just caching;
bigger lift, out of scope for "just get envoy to bottle".
Ask
Is pkgxdev open to (a) a persistent remote cache in the build infra and (b) a
chained multi-window job for the few recipes that exceed 6 h? If so, envoy
(otherwise code-complete) can land. Happy to wire the workflow side.
- Ngôn ngữ chính
- C
- Star
- 199
- Fork
- 141
- Merge trung bình
- 6 giờ 40 phút
- Pull request đã merge (30 ngày)
- 122
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pkgxdev/pantry
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 50/100
pkgxdev/pantry#14756 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
pkgxdev/pantry#14313 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
pkgxdev/pantry#13320 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Sponsored self-hosted runner — would beefy hardware (M5 / EPYC class) be welcomed?Có thể làm lại được @timothytlewis đã nhận 151 ngày trước và không có pull request nào đang mở. Đang mở
pkgxdev/pantry#13147 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pkgxdev/pantry
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ly05010419/MacNativeGames#1420 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
GPU-UNLOCK RTX 4070 (2786) Gigabyte 1458:416C: cold boot AND warm reboot unlock, Ubuntu 26.04Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
JustAResearcher/gpu-unlock-ada#124 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
swoole/swoole-cli#1092 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
inflate: total_in uses plain += on c_ulong (32-bit on Windows), panics in debug for streams > 4 GiBĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
trifectatechfoundation/zlib-rs#570 · 1 bình luận ·