fix(ci): bound Windows process contention

This commit is contained in:
Yichen Jiang
2026-08-26 14:24:24 +08:00
parent 2cb1a323b7
commit 4e1c87b1a2
8 changed files with 56 additions and 29 deletions
+14 -3
View File
@@ -507,7 +507,10 @@ function ciWindowsCompleteGates(): Gate[] {
.map(gate => ({
...gate,
allowFailure: true,
after: [...new Set([...coverageAfter, ...(gate.after ?? [])])],
after: [...new Set([
...coverageAfter,
...(gate.after ?? []).map(id => id === 'docs-site-build' ? 'windows-site' : id),
])],
}))
return [
ciBuildGate(),
@@ -518,7 +521,7 @@ function ciWindowsCompleteGates(): Gate[] {
}
function ciWindowsObservationalGates(): Gate[] {
return [
const predecessors = [
...ciStaticGates({ ownsBuild: true }),
// Linux owns required lint and snapshots; Windows omits those duplicates.
pnpmScript('duplication', 'duplication'),
@@ -528,7 +531,15 @@ function ciWindowsObservationalGates(): Gate[] {
needs: ['build'],
}),
builtPackageInvariantsGate(['build']),
builtBinSmokeGate(),
]
return [
...predecessors,
{
...builtBinSmokeGate(),
// This smoke starts real application children with bounded startup
// deadlines. Let other Windows processes settle before measuring startup.
after: predecessors.map(gate => gate.id),
},
]
}