You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep Clippy clean on Windows in skippy-hf-hub and skippy-package-builder - #240
cargo clippy --no-deps --all-targets -- -D warnings fails on Windows for two crates on main, while Linux CI passes, so nothing reports it:
skippy-hf-hub: create_pointer_symlink and read_commit_refs are imported in cache/storage.rs's tests, but the three tests that use them are #[cfg(not(windows))], so the imports are unused on Windows.
skippy-package-builder: clippy::large_enum_variant on cli::Command. A PathBuf is larger on Windows, and the enum's variants hold twenty of them, enough to cross the lint's threshold there and not on Linux.
Diagnostics
A Windows pass over every crate on main (9c1528f, Windows 11, MSVC, the dynamic native runtime where a crate pulls in skippy-ffi) found these two and the skippy-serving import that #187 already fixes. Every other crate's Clippy is clean. The library test failures in that pass all come from skippy-runtime's test_support, which needs SKIPPY_NATIVE_RUNTIME_BUNDLE_DIR (6 in skippy-runtime, 117 in skippy-serving), not from code.
Fix
The two imports move under #[cfg(not(windows))], next to the tests that use them.
cli::Command gets #[allow(clippy::large_enum_variant)], as skippy-commands' model CLI already does: the command is parsed once per run.
Not run on Linux or macOS. Both changes only remove an import on Windows and add an allow.
Main CI fixes refreshed — b36cce3dd358
Merged target main cc2a27435e798649a9cb938d600d39722e4a2263, including #254's separate queue/execution budgets and #256's formation-bound peer rendezvous, verified child listener readiness and control availability during preparation. Earlier split qualification failures included connection-refused/timeouts at the leader control port; those older results predate these shared fixes. Other merged CI fixes include Windows Vulkan path handling and the shared Windows GPU smoke workflow.
SKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just ci-automation passed on the merged tree, including deadline, peer identity, listener ownership, log streaming, reporting/publication and workflow contracts. git diff --check and git diff --cached --check passed. This is a normal base merge preserving the PR's feature changes; no additional Rust/native feature change was authored in this refresh. New exact-head source/package/device checks and native inference qualification are pending; earlier native results do not qualify this new head. The previous head remains available in history as 7d7236317c7a3e3f0b6943d59da3ce92923e1a6a.
Split preparation rendezvous repair
The follow-up to main's peer lifecycle improvements is included at a406f79e48f7fca847112f2a62df574eb8fd8952. The failed #239 split attempt showed a late-starting peer remained invisible during model admission and stage planning. Control now exposes the matching formation/source/attempt in the preparing phase during those operations. Native-child readiness, listener ownership and completion evidence remain required; timeouts and qualification policy are unchanged.
Validation for this head: git diff --check, just --command env PYTHONPATH=scripts /tmp/skippy-ci-repair/automation-venv312/bin/python scripts/tests/inference_peer.py (12 tests), and SKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just ci-automation all passed. The new real-loopback regression covers both roles and both preparation operations, rejects premature readiness, and verifies cleanup on preparation failure. Exact-head hardware qualification is pending CI.
Acceptance criteria
I ran the relevant local checks, or explained why they do not apply.
I agree to license my contributions under the Apache License, Version 2.0.
Summary by CodeRabbit
Bug Fixes
Split-run setup now reports the “preparing” phase before model admission and preparation begin, so peer status is available earlier. The control service is also released if setup fails.
Chores
Updated platform-specific test handling and build-time checks. These changes do not affect available commands.
This repository does not receive automatic reviews because it has fewer than 10 stars.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 1d60743d-424d-4566-8cd6-c6e5be103084
No actionable comments were generated in the recent review.
Walkthrough
The changes conditionally import two HF Hub test helpers on non-Windows targets, allow a Clippy lint on the package builder’s Command enum, and enter split-peer control before model admission and split preparation.
Changes: HF Hub test imports
Layer / File(s)
Summary
Conditional test imports crates/skippy-hf-hub/src/cache/storage.rs
The test module imports create_pointer_symlink and read_commit_refs only on non-Windows targets. A comment identifies their use in symlink and nested-ref tests.
The Command enum allows Clippy’s large_enum_variant lint. A comment notes that variant sizes differ by platform.
Split-peer preparation
Layer / File(s)
Summary
Peer control during preparation scripts/inference-execute.py, scripts/tests/inference_peer.py
execute enters the split-peer context and sets the phase to preparing before model admission and split preparation. Tests cover leader and worker preparation failures, check that native startup is skipped, and verify that the control port closes.
sequenceDiagram
participant execute
participant peer_control_server
participant model_admission
participant split_preparation
execute->>peer_control_server: Enter context and set phase to preparing
execute->>model_admission: Admit model
execute->>split_preparation: Prepare split
split_preparation-->>execute: Preparation error
execute->>peer_control_server: Close control port
Loading
Suggested reviewers:i386
Merge Risk: Minimal · previous review a406f
This change fixes Windows-only Clippy warnings and makes split-peer control available earlier, during model admission and planning. No concrete merge-blocking risk was identified. Linux/macOS and native qualification runs are still pending per the author.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the two crates touched and the goal of the change: Clippy cleanliness on Windows. The change adds non-Windows cfg gating for test imports in skippy-hf-hub and an allow attribute for cl…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check
Explanation
The title names the two crates touched and the goal of the change: Clippy cleanliness on Windows. The change adds non-Windows cfg gating for test imports in skippy-hf-hub and an allow attribute for clippy::large_enum_variant on skippy-package-builder's Command enum. The title matches the main change. It does not mention the specific mechanisms, which is acceptable.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 1b40138c-faa6-4846-9273-eb9b063d5f3f
Commits
Reviewing files that changed from the base of the PR and between b36cce3 and a406f79.
Files selected for processing: 2
scripts/inference-execute.py
scripts/tests/inference_peer.py
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
@i386 same situation as #239: the conflict with main is only in scripts/inference-execute.py and scripts/tests/inference_peer.py, from your "Keep split peer control available during model admission and planning" commit. Should I rebase onto main with just the Clippy commit, or keep yours and resolve?
The reason will be displayed to describe this comment to others. Learn more.
Approved at head a406f79e48f7fca847112f2a62df574eb8fd8952 — the PR's own change is correct, the red statuses are a main-side artifact, and the conflicts are carried content that resolves itself.
The Windows clippy fixes are right: the two imports in skippy-hf-hub's storage tests are used only by symlink/nested-ref tests that skip Windows, so gating them with #[cfg(not(windows))] is the correct scoping; package-builder's Command gets a justified #[allow(clippy::large_enum_variant)] (PathBuf is larger on Windows and crosses the lint threshold there only). Both are Windows-only failures invisible to Linux CI, exactly as the commit message says.
This branch also carries #258's split-peer scripts (pushed 11-28) — verified byte-identical to #258's b705294df9. Merge after #258 so those land under their own PR; merging this first would carry them here instead.
CI evidence: the failing PR checks / Inference qualification statuses were posted by the fork-snapshot run 46125550906, whose own log shows it checked out main @ cc2a274 with this head recorded only as SOURCE_SHA — the fork's code is not what ran. The same main sha failed different split lanes across the #192 and #240 snapshots, and the identical scripts passed full qualification on #258's branch. Unrelated to this change. The branch's own hosted CI lane is green at this head; the failed snapshot lanes are re-running (attempt 2).
Conflicts: only in the two carried script files; they resolve themselves once #258 lands.
The symlink and nested-ref tests skip Windows, so their two imports were unused there, and a PathBuf is larger on Windows, which puts package-builder's Command over large_enum_variant. Both fail clippy -D warnings on Windows only; Linux CI doesn't see them.
Rebased onto main with only my commits, so #258's scripts stay in #258 and there's no conflict left. The PR closed for a minute because a bad push left the branch on main; that was my mistake, it's reopened with the same change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original problem
cargo clippy --no-deps --all-targets -- -D warningsfails on Windows for two crates on main, while Linux CI passes, so nothing reports it:skippy-hf-hub:create_pointer_symlinkandread_commit_refsare imported incache/storage.rs's tests, but the three tests that use them are#[cfg(not(windows))], so the imports are unused on Windows.skippy-package-builder:clippy::large_enum_variantoncli::Command. APathBufis larger on Windows, and the enum's variants hold twenty of them, enough to cross the lint's threshold there and not on Linux.Diagnostics
A Windows pass over every crate on main (9c1528f, Windows 11, MSVC, the dynamic native runtime where a crate pulls in
skippy-ffi) found these two and theskippy-servingimport that #187 already fixes. Every other crate's Clippy is clean. The library test failures in that pass all come fromskippy-runtime'stest_support, which needsSKIPPY_NATIVE_RUNTIME_BUNDLE_DIR(6 inskippy-runtime, 117 inskippy-serving), not from code.Fix
#[cfg(not(windows))], next to the tests that use them.cli::Commandgets#[allow(clippy::large_enum_variant)], asskippy-commands' model CLI already does: the command is parsed once per run.Validation
On Windows 11:
cargo clippy --no-deps -p skippy-hf-hub --all-targets -- -D warnings: fails on main, clean here.cargo clippy --no-deps -p skippy-package-builder --all-targets --features skippy-ffi/dynamic-runtime -- -D warnings: fails on main, clean here.cargo test -p skippy-hf-hub --lib: 204 passed.Not run on Linux or macOS. Both changes only remove an import on Windows and add an allow.
Main CI fixes refreshed —
b36cce3dd358Merged target main
cc2a27435e798649a9cb938d600d39722e4a2263, including #254's separate queue/execution budgets and #256's formation-bound peer rendezvous, verified child listener readiness and control availability during preparation. Earlier split qualification failures included connection-refused/timeouts at the leader control port; those older results predate these shared fixes. Other merged CI fixes include Windows Vulkan path handling and the shared Windows GPU smoke workflow.SKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just ci-automationpassed on the merged tree, including deadline, peer identity, listener ownership, log streaming, reporting/publication and workflow contracts.git diff --checkandgit diff --cached --checkpassed. This is a normal base merge preserving the PR's feature changes; no additional Rust/native feature change was authored in this refresh. New exact-head source/package/device checks and native inference qualification are pending; earlier native results do not qualify this new head. The previous head remains available in history as7d7236317c7a3e3f0b6943d59da3ce92923e1a6a.Split preparation rendezvous repair
The follow-up to main's peer lifecycle improvements is included at
a406f79e48f7fca847112f2a62df574eb8fd8952. The failed #239 split attempt showed a late-starting peer remained invisible during model admission and stage planning. Control now exposes the matching formation/source/attempt in thepreparingphase during those operations. Native-child readiness, listener ownership and completion evidence remain required; timeouts and qualification policy are unchanged.Validation for this head:
git diff --check,just --command env PYTHONPATH=scripts /tmp/skippy-ci-repair/automation-venv312/bin/python scripts/tests/inference_peer.py(12 tests), andSKIPPY_PYTHON=/tmp/skippy-ci-repair/automation-venv312/bin/python just ci-automationall passed. The new real-loopback regression covers both roles and both preparation operations, rejects premature readiness, and verifies cleanup on preparation failure. Exact-head hardware qualification is pending CI.Acceptance criteria
Summary by CodeRabbit