Skip to content

Commit 7bda4c5

Browse files
committed
ci(windows): lint supported deliverables
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent 773b6e3 commit 7bda4c5

6 files changed

Lines changed: 41 additions & 33 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ The GitHub Actions jobs layer architecture-specific `Swatinem/rust-cache`
192192
entries for Cargo registry and dependency target artifacts with sccache's GHA
193193
backend for cacheable Rust compiler outputs. Failed runs also save their usable
194194
dependency artifacts. Pull-request mirrors and merge queues run Clippy for the
195-
Windows-sensitive sandbox, core, and CLI crates plus Rust tests. Pushes to
196-
`main` and manual dispatches run the same lint and test commands in a cache-seed
197-
job, followed by a dependent release-binary build job. The seed and PR jobs use
198-
the same cache namespaces. The binaries are not uploaded or published.
195+
Windows gateway, core, and CLI crates plus Rust tests. Pushes to `main` and
196+
manual dispatches run the same lint and test commands in a cache-seed job,
197+
followed by a dependent release-binary build job. The seed and PR jobs use the
198+
same cache namespaces. The binaries are not uploaded or published.
199199

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ maintaining the existing build-only Windows MSVC lane.
99
|---|---|
1010
| `tasks/windows.toml` | Mise task definitions for `windows:*`. |
1111
| `tasks/scripts/windows-msvc.ps1` | Visual Studio environment discovery, rustup target setup, Cargo invocation, logs, artifact report. |
12-
| `.github/workflows/windows-msvc.yml` | PR/merge-queue lint for Windows-sensitive crates and x64 tests plus identical main/manual cache seeding followed by x64 binary builds. ARM64 remains local-only until it gets a native workflow. |
12+
| `.github/workflows/windows-msvc.yml` | PR/merge-queue lint for the Windows gateway, core, and CLI crates plus x64 tests; main/manual runs seed the same caches before x64 binary builds. ARM64 remains local-only until it gets a native workflow. |
1313
| `architecture/windows-msvc-build.md` | Human-readable design contract. |
1414

1515
## Commands

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,15 @@ jobs:
7777
cache-bin: "false"
7878
- name: Lint Windows-sensitive crates
7979
# Formatting is target-independent and already checked by the Linux jobs.
80-
# Keep this guard focused on Windows cfgs, matching the macOS lane.
80+
# Keep this guard focused on the gateway and CLI deliverables plus core.
8181
run: >-
8282
cargo clippy
83-
-p openshell-sandbox
83+
-p openshell-server
8484
-p openshell-core
8585
-p openshell-cli
8686
--all-targets
87+
--no-deps
88+
--features openshell-prover/prebuilt-z3
8789
-- -D warnings
8890
- name: Test
8991
run: mise run --skip-tools test:rust
@@ -132,10 +134,12 @@ jobs:
132134
# target and compiler caches are reusable by subsequent pull requests.
133135
run: >-
134136
cargo clippy
135-
-p openshell-sandbox
137+
-p openshell-server
136138
-p openshell-core
137139
-p openshell-cli
138140
--all-targets
141+
--no-deps
142+
--features openshell-prover/prebuilt-z3
139143
-- -D warnings
140144
- name: Test
141145
run: mise run --skip-tools test:rust

‎architecture/windows-msvc-build.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ creating misleading Windows driver artifacts.
4848

4949
## Mise Lane
5050

51-
The GitHub Actions workflow runs Clippy for the Windows-sensitive sandbox,
52-
core, and CLI crates plus Rust tests for pull-request mirror branches and merge
53-
queues. On pushes to `main`, a cache-seed job runs the same lint and test
54-
commands before a dependent job builds the release binaries. Manual dispatches
55-
exercise the same seed-then-build path. The binaries remain CI validation
56-
artifacts and are not uploaded or published.
51+
The GitHub Actions workflow runs Clippy for the Windows gateway, core, and CLI
52+
crates plus Rust tests for pull-request mirror branches and merge queues. On
53+
pushes to `main`, a cache-seed job runs the same lint and test commands before a
54+
dependent job builds the release binaries. Manual dispatches exercise the same
55+
seed-then-build path. The binaries remain CI validation artifacts and are not
56+
uploaded or published.
5757

5858
Each job restores and saves a dedicated Rust cache containing the Cargo
5959
registry and dependency build artifacts, including artifacts from failed runs.
@@ -139,7 +139,7 @@ The x64 GitHub Actions jobs run on `windows-2025`. Pull-request mirrors and
139139
merge queues execute:
140140

141141
```powershell
142-
cargo clippy -p openshell-sandbox -p openshell-core -p openshell-cli --all-targets -- -D warnings
142+
cargo clippy -p openshell-server -p openshell-core -p openshell-cli --all-targets --no-deps --features openshell-prover/prebuilt-z3 -- -D warnings
143143
mise run --skip-tools test:rust
144144
```
145145

‎crates/openshell-bootstrap/src/build_windows.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::path::Path;
99
use miette::Result;
1010

1111
// Keep this stub's signature aligned with the supported-platform implementation.
12-
#[allow(clippy::implicit_hasher, clippy::unused_async)]
12+
#[allow(clippy::implicit_hasher)]
1313
pub async fn build_local_image(
1414
_dockerfile_path: &Path,
1515
_tag: &str,

‎crates/openshell-supervisor-network/src/identity.rs‎

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,51 +18,55 @@ use std::path::{Path, PathBuf};
1818
use std::sync::Mutex;
1919
use tracing::debug;
2020

21-
#[derive(Clone, PartialEq)]
21+
#[derive(Clone)]
2222
struct FileFingerprint {
2323
len: u64,
24-
#[cfg(unix)]
2524
mtime_sec: i64,
26-
#[cfg(unix)]
2725
mtime_nsec: i64,
28-
#[cfg(unix)]
2926
ctime_sec: i64,
30-
#[cfg(unix)]
3127
ctime_nsec: i64,
3228
#[cfg(unix)]
3329
dev: u64,
3430
#[cfg(unix)]
3531
ino: u64,
36-
#[cfg(not(unix))]
37-
modified: Option<std::time::SystemTime>,
38-
#[cfg(not(unix))]
39-
created: Option<std::time::SystemTime>,
4032
}
4133

4234
impl FileFingerprint {
4335
fn from_metadata(metadata: &Metadata) -> Self {
4436
Self {
4537
len: metadata.len(),
46-
#[cfg(unix)]
4738
mtime_sec: metadata.mtime(),
48-
#[cfg(unix)]
4939
mtime_nsec: metadata.mtime_nsec(),
50-
#[cfg(unix)]
5140
ctime_sec: metadata.ctime(),
52-
#[cfg(unix)]
5341
ctime_nsec: metadata.ctime_nsec(),
5442
#[cfg(unix)]
5543
dev: metadata.dev(),
5644
#[cfg(unix)]
5745
ino: metadata.ino(),
58-
#[cfg(not(unix))]
59-
modified: metadata.modified().ok(),
60-
#[cfg(not(unix))]
61-
created: metadata.created().ok(),
6246
}
6347
}
6448
}
6549

50+
impl PartialEq for FileFingerprint {
51+
fn eq(&self, other: &Self) -> bool {
52+
self.len == other.len
53+
&& self.mtime_sec == other.mtime_sec
54+
&& self.mtime_nsec == other.mtime_nsec
55+
&& self.ctime_sec == other.ctime_sec
56+
&& self.ctime_nsec == other.ctime_nsec
57+
&& {
58+
#[cfg(unix)]
59+
{
60+
self.dev == other.dev && self.ino == other.ino
61+
}
62+
#[cfg(not(unix))]
63+
{
64+
true
65+
}
66+
}
67+
}
68+
}
69+
6670
#[derive(Clone)]
6771
struct CachedBinary {
6872
hash: String,

0 commit comments

Comments
 (0)