Skip to content

Compile the Windows half of the tree in CI - #36

Merged
Sbussiso merged 1 commit into
masterfrom
ci/windows-leg
Sep 13, 2026
Merged

Compile the Windows half of the tree in CI#36
Sbussiso merged 1 commit into
masterfrom
ci/windows-leg

Conversation

@Sbussiso

Copy link
Copy Markdown
Contributor

The gap

Everything under cfg(target_os = "windows") is invisible to CI:

  • src/service.rs — the entire Windows Service entry point
  • the windows-service and tracing-appender dependencies
  • every Windows branch in the platform modules

test.yml runs ubuntu-only. The only thing that has ever compiled that
code is release.yml, on a tag — after the decision to ship was made.

Why it matters now

windows-service 0.7 → 0.8 (#25) cannot be reviewed under the current
setup. Ubuntu CI reports green without compiling a single line of what the
bump affects. I tried to close the loop locally and
cargo check --target x86_64-pc-windows-msvc fails in ring's build script
with no MSVC toolchain available (mingw isn't installed either).

This repo's own dependabot.yml says Cargo bumps get reviewed because
"CameraNode ships as a BINARY onto customers' own hardware… it sits on
machines we do not control." For a binary that registers with the Windows
Service Control Manager, release time is the wrong moment to find out.

The change

A windows job on windows-latest:

step why
cargo build --locked a full build, not check — linking is part of what breaks when windows-service resolves SCM entry points, and check would type-check them and never link them
cargo clippy --all-targets --locked catches Windows-only lint errors; no -D warnings, matching the ubuntu job

No system-dependency step: the MSVC toolchain on windows-latest already
covers rusqlite's bundled SQLite and the zip crate's bzip2-sys.

No cargo test on Windows, deliberately. --all-targets already
type-checks the test code, which is what catches a compile regression.
Actually running the suite there means triaging tests that assume POSIX
paths and a present ffmpeg — worth doing, but not worth coupling to this
change.

Also

Drops number_prefix from the cargo-audit comment's list of unmaintained
crates. indicatif 0.18 stopped depending on it in #35, so the comment was
already stale.

Unblocks #25.

🤖 Generated with Claude Code

Everything under cfg(target_os = "windows") was invisible to CI:
src/service.rs — the entire Windows Service entry point — plus the
windows-service and tracing-appender dependencies and every Windows
branch in the platform modules. test.yml runs ubuntu-only, so the only
thing that ever compiled that code was release.yml, on a tag, after the
decision to ship had already been made.

The gap had teeth. windows-service 0.7 -> 0.8 (#25) could not be
reviewed at all: ubuntu CI reported green without compiling a line of
what the bump affects, and cross-compiling to x86_64-pc-windows-msvc
fails locally in ring's build script with no MSVC toolchain available.
For a binary that installs onto customers' own machines as a Windows
Service, release time is the wrong moment to discover that.

Adds a `windows` job on windows-latest running build + clippy. A full
build rather than `check`, because linking is part of what can break
when windows-service resolves Service Control Manager entry points —
a check would type-check those and never link them.

No `cargo test` on Windows: `--all-targets` already type-checks the
test code, which is what catches a Windows-only compile regression.
Running the suite there means triaging tests that assume POSIX paths
and a present ffmpeg — worth doing, not worth coupling to this.

Also drops number_prefix from the cargo-audit comment's list of
unmaintained crates; indicatif 0.18 stopped depending on it in #35.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Sbussiso
Sbussiso merged commit 1748814 into master Sep 13, 2026
2 checks passed
@Sbussiso
Sbussiso deleted the ci/windows-leg branch September 13, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant