perf(ci): 8 vCPU for ns7zip build VM (4 was starving parallel build)
Lint / pssa (push) Failing after 30s
Lint / python (push) Successful in 1m1s
Build ns7zip (Local CI) / build (windows) (push) Successful in 1m26s
Build ns7zip (Local CI) / build (linux) (push) Successful in 4m8s
Build ns7zip (Local CI) / release (push) Failing after 0s

WSL on the host builds the 3 configs in parallel in ~103s (= one
config) — the parallel design is correct. The 4-vCPU CI VM ran 3x
make -j on 4 cores -> oversubscription thrash -> ~3x slower. Not
structural / not RAM. Bump guest-cpu to 8 (job.py patches the clone
VMX numvcpus); host is 10c/20t, this matrix is 2 VMs.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Simone
2026-05-17 22:12:03 +02:00
parent 7b4051412b
commit 1fbe2c87cc
+5 -3
View File
@@ -46,9 +46,11 @@ jobs:
# Cross-repo build: github.ref_name is this repo's branch, not
# nsis-plugin-ns7zip's. Pin the target repo's branch.
repo-branch: 'main'
# 8 GB: the parallel MinGW cross-compile thrashes at the 4 GB
# Linux template default (3 concurrent make -j). Harmless for
# Windows (host has ample RAM).
# 8 vCPU / 8 GB. WSL on the host builds the 3 configs in
# parallel in ~103s (= one config); the 4-vCPU CI VM thrashes
# (3x make -j on 4 cores) and takes ~3x. Not structural — just
# vCPU starvation. Host is 10c/20t; this matrix = 2 VMs.
guest-cpu: '8'
guest-memory-mb: '8192'
# Suffix disambiguates artifact dirs: F:\CI\Artifacts\{run_id}-{attempt}-windows
job-id-suffix: '${{ matrix.target }}'