Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,19 @@ jobs:
# huxerui-archive 385s untimed). With them measured from that run,
# six shards put the slowest at about 90 minutes, eight at about 72;
# the llvm leg follows with three more.
ln=$(shards_for linux 8)
#
# ── 2026-12-05: linux 8 -> 10 ──────────────────────────────────
#
# The run of eight (47452136996) cancelled `linux default 1/8` at the
# cap in grpc-protobuf-stack, its siblings taking 45 to 71 minutes.
# The member and installed-check work of the eight shards is about
# 540 minutes, 68 a shard before setup, so eight leave no margin
# however the members are split. The 90s default also priced every
# member without a row alike, from a few seconds to 388s
# (huxerui-map), so the split was uneven as well. With
# every member read at 60s or more given a row (the larger reading of
# the two runs), ten put the slowest at about 69 minutes of members.
ln=$(shards_for linux 10)
mn=$(shards_for macos 8)
wn=$(shards_for windows 8)
# THE TWO LINUX LEGS ARE NOT THE SAME COST, AND THE PLANNER CANNOT
Expand Down
11 changes: 6 additions & 5 deletions docs/repository-and-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,15 @@ locally with `mcpp xpkg parse pkgs/<x>/<name>.lua`.
- `select`: decides the entire plan once and emits it to the runners as data. Three questions are answered here
rather than on each runner — which members run, how many shards each platform gets, and which members land on
which shard.
- Selective member testing: on a PR, `git diff` maps changed files to the affected members
(`pkgs/<x>/<lib>.lua` → members whose mcpp.toml references `<lib>`; `tests/examples/<m>/**` → member `<m>`).
A change that can affect everything selects the full workspace instead: a non-PR event, this workflow file, a
non-member edit to the workspace manifest, or a shared test script. Documentation-only and `tools/`-only changes
- Selective member testing: `git diff` maps changed files to the affected members — a PR's diff against its base,
a push's the merge it carries (`pkgs/<x>/<lib>.lua` → members whose mcpp.toml references `<lib>`;
`tests/examples/<m>/**` → member `<m>`). The weekly schedule and a manual dispatch run the full workspace. A
change the diff does not bound — this workflow file, a non-member edit to the workspace manifest, a shared test
script — selects only what the diff names, and the run summary states it. Documentation-only and `tools/`-only changes
select nothing.
- Sharding applies to full runs only — a selective run is one job per platform. The shard count per platform is
the platform's measured work (`lua5.4 tests/plan_shards.lua <platform> 0 0`) at about 70 minutes a shard, capped
per platform: linux 8 (its llvm leg three more), macOS 8, Windows 8. The cap is the job's 90-minute timeout, not
per platform: linux 10 (its llvm leg three more), macOS 8, Windows 8. The cap is the job's 90-minute timeout, not
the runner concurrency: wall-clock is `ceil(shards / concurrency) × slowest-shard`, so shards beyond the
concurrency queue and still finish, while a shard over the timeout is cancelled. Each shard pays its own
checkout, mcpp download and cache restore. Re-measure the concurrency with:
Expand Down
11 changes: 6 additions & 5 deletions docs/zh/repository-and-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,13 @@ mcpp 跑 `xpkg parse`(strict:未知键即失败),所以需要更新文法/键的
- `mirror-cn-reachable`(始终运行):逐个 `curl` CN url,均须返回 200。
- `select`:一次性决定整个计划,并以数据形式下发给各 runner。三个问题在此处而非各 runner 上回答 ——
哪些成员要跑、每个平台分几片、哪些成员落在哪一片。
- 选择性成员测试:PR 时由 `git diff` 将改动文件映射到受影响成员
(`pkgs/<x>/<lib>.lua` → mcpp.toml 引用 `<lib>` 的成员;`tests/examples/<m>/**` → 成员 `<m>`)。
可能影响全部成员的改动则选中整个 workspace:非 PR 事件、本 workflow 文件、workspace 清单的非成员
部分、共享测试脚本。仅文档与仅 `tools/` 的改动不选中任何成员。
- 选择性成员测试:由 `git diff` 将改动文件映射到受影响成员——PR 取其相对基线的 diff,push 取其所携带的
合并(`pkgs/<x>/<lib>.lua` → mcpp.toml 引用 `<lib>` 的成员;`tests/examples/<m>/**` → 成员 `<m>`)。
每周定时运行与手动触发运行整个 workspace。diff 无法界定影响范围的改动(本 workflow 文件、workspace
清单的非成员部分、共享测试脚本)仍只选中 diff 所指的成员,并在 run summary 中注明。仅文档与仅
`tools/` 的改动不选中任何成员。
- 分片仅用于全量运行,选择性运行为每平台一个 job。每平台的分片数按该平台的实测工作量
(`lua5.4 tests/plan_shards.lua <平台> 0 0`)以每片约 70 分钟计算,并按平台设上限:linux 8(其 llvm
(`lua5.4 tests/plan_shards.lua <平台> 0 0`)以每片约 70 分钟计算,并按平台设上限:linux 10(其 llvm
腿再多 3)、macOS 8、Windows 8。上限由 job 的 90 分钟超时决定,而非 runner 并发度:墙钟为
`ceil(分片数 / 并发度) × 最慢分片`,超出并发度的分片排队后仍能完成,超时的分片则被取消。每个分片
各自付出 checkout、mcpp 下载与缓存恢复的固定开销。重新测量并发度:
Expand Down
92 changes: 76 additions & 16 deletions tests/member-timings.tsv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# <platform> <member> <seconds> (tab-separated)
# Measured heavy members; untimed members keep the planner's fixed 90s default.
# Measured members; a member without a row keeps the planner's fixed 90s default.
# Wrapper rows include installed archive/template/deployment checks executed
# in the owning workspace shard, so those costs count toward its 90m budget.
# Legacy sources: runs 31260545520 and 31266814148.
Expand All @@ -14,16 +14,20 @@
# cold run, both attempts), each the member's time plus its completed installed
# checks, where that exceeds the row by more than 30% and 180s; a lower reading
# keeps the row. Members it did not finish count the time they ran.
# Linux rows raised or added by the same rule: run 47434758792 (2026-12-04),
# its six linux default shards.
# Linux rows: runs 47434758792 (2026-12-04, six linux default shards) and
# 47452136996 (2026-12-05, eight), the larger of the two readings of the
# member's time plus its completed installed checks. A reading above the row
# raises it; a member read at 60s or more is added (the section after the
# blank line), since the 90s default prices every member without a row alike and
# left one shard at 45 minutes and another past the 90-minute timeout.
linux grpc-codegen 3463
linux grpc-module 1771
linux protobuf-protoc 885
linux mysql-connector-cpp 881
linux opencv-module-dnn 875
linux opencv-module-dnn 1019
linux opencv-module-unifont 655
linux opencv-module 649
linux godot-cpp-module 627
linux godot-cpp-module 641
linux eui-neo-sdl2 591
linux godot-cpp-module-v10 568
macos grpc-codegen 2103
Expand Down Expand Up @@ -55,27 +59,27 @@ windows ffmpeg-module 526
windows protobuf-gzip 238
windows protobuf-protoc 152
windows protobuf-upb 151
linux ffmpeg-cpu 350
linux godot-math 758
linux ffmpeg-cpu 431
linux godot-math 990
linux grpc-cpu 1416
linux grpc-protobuf-stack 1800
linux grpc-tools 480
linux grpc-tools 664
linux imgui-headless 168
linux llamacpp-cpu 264
linux llamacpp-cpu 375
linux opencv-cpu 737
linux opencv-webp 855
linux opencv-webp 871
windows ffmpeg-cpu 928
windows godot-math 1347
windows llamacpp-cpu 460
windows opencv-cpu 1101
windows opencv-webp 1104

linux godot-sdk 300
linux godot-sdk 529
macos godot-sdk 592
windows godot-sdk 700

# Abseil wrapper: the member, then its installed archive, default template and notices.
linux abseil-basics 420
linux abseil-basics 430
linux protobuf-message 900
linux openssl-tls 600
linux protobuf-codegen 1200
Expand Down Expand Up @@ -142,9 +146,65 @@ linux eui-neo 186
linux eui-neo-app-main 187
linux eui-neo-serial 210
linux ffmpeg-module 211
linux godot-cpp 544
linux godot-cpp-v10 297
linux godot-cpp 611
linux godot-cpp-v10 539
linux huxerui-archive 385
linux jolt-world 215
linux sdl3-headless 305
linux jolt-world 474
linux sdl3-headless 504
linux slint-ui 186

linux abseil 107
linux acl-clip 165
linux asio-ssl 157
linux basis-universal-transcode 68
linux boost-beast 95
linux boost-family 79
linux boringssl 152
linux boringssl-tls 179
linux concurrentqueue-mpmc 168
linux core 65
linux curl 167
linux curl-http2 163
linux eui-neo-markdown 318
linux eui-neo-vulkan 226
linux ffmpeg 170
linux freetype-render 177
linux glfw 124
linux gsl 101
linux gui-stack 169
linux harfbuzz-shape 223
linux httplib-tls 121
linux huxerui-charts 392
linux huxerui-interaction 119
linux huxerui-map 388
linux huxerui-qrcode 86
linux imgui-module 97
linux jwt-cpp 97
linux libarchive-bundle 100
linux libc-stdio 145
linux libjpeg-turbo-decode 168
linux libvpx-webm 86
linux libwebp-image 161
linux manifold-boolean 95
linux mcr 152
linux meshoptimizer-simplify 160
linux miniaudio-engine 159
linux ngtcp2-openssl 151
linux onnxruntime-cpu 85
linux openkal-bind 173
linux openkal-platform 77
linux openmp 103
linux openssl 85
linux opus-ogg 72
linux protobuf 269
linux protobuf-gzip 163
linux protobuf-upb 169
linux recastnavigation-path 155
linux sdl2 110
linux sdl3 77
linux slint-rule 60
linux tensorvia 153
linux vulkan-hpp-module 100
linux websocket-tls 167
linux wuffs-decode 93
linux xxhash-digest 158
Loading