From 099c34c7156b7d15b62dc520dde04bc4791e3bb3 Mon Sep 17 00:00:00 2001 From: justme Date: Wed, 21 Oct 2026 15:34:41 +0800 Subject: [PATCH] Raise build parallelism for the 44-core CI host [CI] --- ci/build-linux-agent.sh | 4 ++-- ci/release-linux.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/build-linux-agent.sh b/ci/build-linux-agent.sh index 0d5b8d7..bf37555 100644 --- a/ci/build-linux-agent.sh +++ b/ci/build-linux-agent.sh @@ -49,8 +49,8 @@ commit_epoch="$(git -C "$root" show -s --format=%ct "$CI_COMMIT_SHA")" built_at="$(date -u -d "@$commit_epoch" +%Y-%m-%dT%H:%M:%SZ)" python3 "$root/ci/stage-node-image.py" agent "$rid" "$context" local_image="localhost/moshiro-agent-binaries:$rid" -# 一次只放 MOSHIRO_AOT_SLOTS 个 NativeAOT 编译进来(见 ci/with-aot-slot.sh);一个 RID 内 Agent 和注册工具依次编,--jobs 1 -bash "$root/ci/with-aot-slot.sh" python3 "$root/ci/run-with-timeout.py" 1800 buildah bud --layers --force-rm --jobs 1 --network host \ +# 一次只放 MOSHIRO_AOT_SLOTS 个 NativeAOT 编译进来(见 ci/with-aot-slot.sh);一个 RID 内 Agent 和注册工具并行编(--jobs 2),所以 4 个槽位最多 8 个编译同时跑;CI 主机 44 核 46G +bash "$root/ci/with-aot-slot.sh" python3 "$root/ci/run-with-timeout.py" 1800 buildah bud --layers --force-rm --jobs 2 --network host \ --tls-verify=true --ulimit nofile=65536:65536 --volume "$nuget_packages:/root/.nuget/packages:ro,z" --arch amd64 \ --build-arg "NATIVEAOT_RESTORE_IMAGE=$restore_image" \ --build-arg "NODE_RID=$rid" --build-arg "STATIC_MSQUIC=$static_msquic" \ diff --git a/ci/release-linux.sh b/ci/release-linux.sh index 85392b5..1cbf719 100644 --- a/ci/release-linux.sh +++ b/ci/release-linux.sh @@ -93,7 +93,7 @@ mkdir -p "$sqlite_cache_root/locks" cd "$root/backend" bash "$root/ci/with-aot-slot.sh" flock --close --wait 900 "$sqlite_cache_root/locks/$rid.lock" \ dotnet publish src/MoShiro.Backend \ - -m:4 -nodeReuse:false -c Release -r "$rid" --self-contained true \ + -m:8 -nodeReuse:false -c Release -r "$rid" --self-contained true \ --no-restore \ -p:DebugType=none -p:DebugSymbols=false \ -p:PublishAot=true -p:UseAotAnywhere=true -p:SqliteStaticLink=true -p:OpenApiGenerateDocuments=false \