增强 Windows sccache wrapper 探测回退
Project CI / Native shell tests (pull_request) Successful in 23m27s
Project CI / Backend tests (pull_request) Failing after 11s
Project CI / Repository checks (pull_request) Failing after 13s
Project CI / Frontend tests (pull_request) Successful in 3m19s

使用限时真实 rustc wrapper 探测替代版本检查

探测失败或超时时回退到直接 rustc

同步更新 sccache 故障排障记录
This commit is contained in:
2026-09-14 06:02:23 +00:00
parent 2315883b1f
commit e85c216112
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -154,11 +154,12 @@ function resolveLocalDevRustcWrapperBypass(options = {}) {
const sccacheAvailable =
options.sccacheAvailable ??
(() => {
const result = spawnSync('sccache', ['--version'], {
const result = spawnSync('sccache', ['rustc', '-vV'], {
cwd: repoRoot,
encoding: 'utf8',
shell: true,
windowsHide: true,
timeout: options.sccacheProbeTimeoutMs ?? 10_000,
});
return !result.error && result.status === 0;
})();