Skip to content

Commit 0569c3a

Browse files
authored
ci(windows): make PR checks opt-in and main jobs advisory (#3268)
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent 35f15d8 commit 0569c3a

4 files changed

Lines changed: 24 additions & 8 deletions

File tree

‎.agents/skills/build-openshell-mxc-windows/SKILL.md‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The Windows build lane is implemented by these tracked files:
3030
| `tasks/windows.toml` | Mise task entry points for `windows:*` commands. |
3131
| `tasks/rust.toml`, `tasks/test.toml`, and `tasks/markdown.toml` | Windows routing for compiler-bearing checks, explicit Unix-only test skips, and Markdown dependency setup. |
3232
| `tasks/scripts/windows-msvc.ps1` | PowerShell wrapper that enters the Visual Studio developer environment and invokes Cargo. |
33-
| `.github/workflows/windows-msvc.yml` | PR/merge-queue lint and test plus main/manual cache seeding and dependent binary builds on native x64 and ARM64 runners. |
33+
| `.github/workflows/windows-msvc.yml` | Opt-in PR lint and test plus advisory main/manual cache seeding and dependent binary builds on native x64 and ARM64 runners. |
3434
| `architecture/windows-msvc-build.md` | Design notes and validation contract. |
3535
| `.agents/skills/build-openshell-mxc-windows/` | This skill and companion reference material. |
3636

@@ -193,11 +193,14 @@ order:
193193
The GitHub Actions jobs layer architecture-specific `Swatinem/rust-cache`
194194
entries for Cargo registry and dependency target artifacts with sccache's GHA
195195
backend for cacheable Rust compiler outputs. Failed runs also save their usable
196-
dependency artifacts. Pull-request mirrors and merge queues run Clippy for the
196+
dependency artifacts. Pull-request mirrors labeled `test:windows` run Clippy for the
197197
Windows-supported workspace and e2e crates plus Rust tests. Pushes to `main` and
198198
manual dispatches run the same lint and test commands in a cache-seed job,
199199
followed by a dependent release-binary build job. The seed and PR jobs use the
200-
same cache namespaces. The binaries are not uploaded or published.
200+
same cache namespaces. Merge queues do not run this workflow. Main/manual seed
201+
and build jobs use job-level `continue-on-error: true`; opt-in PR jobs report
202+
failures normally. Applying the label alone does not start a run: re-run all
203+
jobs in the current mirror push run, or push a new mirrored commit. The binaries are not uploaded or published.
201204

202205
The ARM64 check/build steps in this x64-host contract are cross-builds. The
203206
wrapper discovers and adds host-native LLVM and Ninja to `PATH`, requires the

‎.github/workflows/windows-msvc.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Windows MSVC
22

33
on:
4-
merge_group:
5-
types: [checks_requested]
64
push:
75
branches:
86
- main
@@ -36,6 +34,8 @@ jobs:
3634
- id: gate
3735
if: github.ref != 'refs/heads/main'
3836
uses: ./.github/actions/pr-gate
37+
with:
38+
required_label: test:windows
3939

4040
pr-check:
4141
name: PR lint and test (${{ matrix.arch }})
@@ -104,6 +104,8 @@ jobs:
104104

105105
cache-seed:
106106
name: Seed cache (${{ matrix.arch }})
107+
# Keep main/manual Windows validation advisory while the lane matures.
108+
continue-on-error: true
107109
needs: pr_metadata
108110
if: >-
109111
needs.pr_metadata.outputs.should_run == 'true' &&
@@ -164,6 +166,7 @@ jobs:
164166

165167
build:
166168
name: Build binaries (${{ matrix.arch }})
169+
continue-on-error: true
167170
needs: cache-seed
168171
strategy:
169172
fail-fast: false

‎CI.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ PR CI that runs on NVIDIA self-hosted runners uses NVIDIA's copy-pr-bot. The bot
1212

1313
Merge queue validation is a second integration gate for `main`. After a PR has passed the required PR-head statuses, a maintainer adds it to the merge queue. GitHub creates a temporary merge-group branch that combines the latest `main`, the queued PR, and any earlier queued PRs. The same required `OpenShell / ...` status contexts are then published against the merge-group SHA before GitHub merges it.
1414

15+
Windows PR checks are opt-in: add `test:windows`, then select **Re-run all jobs**
16+
on the current Windows MSVC run. Subsequent mirrored commits run them automatically.
17+
Windows checks are not required for merging and do not run in merge queues.
18+
Main and manual runs also build release binaries, with `continue-on-error: true`
19+
so Windows failures do not fail the workflow.
20+
1521
Three opt-in labels enable the long-running E2E suites:
1622

1723
- `test:e2e` runs the Docker, rootless Podman, Kubernetes, and VM E2E suites

‎architecture/windows-msvc-build.md‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ creating misleading Windows driver artifacts.
6363
## Mise Lane
6464

6565
The GitHub Actions workflow runs Clippy for the Windows-supported workspace and
66-
e2e crates plus Rust tests for pull-request mirror branches and merge queues. On
66+
e2e crates plus Rust tests for pull-request mirror branches labeled `test:windows`.
67+
Merge queues do not run this workflow. On
6768
pushes to `main`, a cache-seed job runs the same lint and test commands before a
6869
dependent job builds the release binaries. Manual dispatches exercise the same
6970
seed-then-build path. The binaries remain CI validation artifacts and are not
@@ -154,7 +155,7 @@ break ARM64 crypto dependency builds.
154155
## CI Shape
155156

156157
The x64 GitHub Actions jobs run on `windows-2025`; native ARM64 jobs run on
157-
`windows-11-arm`. Pull-request mirrors and merge queues execute the matching
158+
`windows-11-arm`. Pull-request mirrors labeled `test:windows` execute the matching
158159
architecture-specific tasks:
159160

160161
```powershell
@@ -163,7 +164,10 @@ mise run --skip-tools windows:test:<x64|arm64>
163164
```
164165

165166
Pushes to `main` and manual dispatches first seed the shared caches with those
166-
same lint and test commands. After the seed succeeds, a separate job executes:
167+
same lint and test commands. Both seed and build jobs use job-level
168+
`continue-on-error: true`, so Windows job failures do not fail the main/manual
169+
workflow. Opt-in PR jobs still report failures normally. After the seed job
170+
finishes, a separate job executes:
167171

168172
```powershell
169173
mise run --skip-tools windows:build:<x64|arm64>

0 commit comments

Comments
 (0)