Repository navigation
Conversation
`disk_smart::core::DERIVED_FIELDS` is read only by the `row_fields_are_the_script_fields_plus_the_derived_ones` seam test. The module-wide `allow(dead_code)` hid that: with it lifted, the constant is reported unused on both the Linux build and a Windows (`x86_64-pc-windows-gnu`) cargo check. Gating it keeps the seam test and stops the unused constant from compiling into the binary. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QcqxZRm2PPzksU2suv6wqw Signed-off-by: Claude <[email protected]>
`agent_update::tests::wait_times_out_while_another_process_runs_target` fails on every `kenny-agent (Rust)` run on the ubuntu-26.04 runners, independent of the change under test (also red on #375 and #356). This takes the agent_update.rs hunk from #377 unchanged: the child is a copy of the test binary running an ignored sleep helper instead of a copy of /bin/sleep, spawning retries on ETXTBSY, and an early child exit fails with its status. The hunk is byte-identical to #377's, so whichever PR merges first, the other merges cleanly. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QcqxZRm2PPzksU2suv6wqw Signed-off-by: Claude <[email protected]>
Collaborator
Author
|
The Generated by Claude Code |
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What & why
Scheduled dead-code sweep. Gates
disk_smart::core::DERIVED_FIELDSbehind#[cfg(test)]. Only therow_fields_are_the_script_fields_plus_the_derived_onesseam test reads it. The module-wideallow(dead_code)oncorewas hiding that. With that allow lifted, the constant shows as unused on both the Linux build and acargo check --target x86_64-pc-windows-gnu, so no platform reads it outside tests.The sweep also looked at:
vulture,ruff): each candidate already has aPOSSIBLY DEADmarker onmainor is handled by an open PR (chore(registry): correct stale dead-code marker, flag register_signed_async #342, chore(stewards): flag evidence_providers and count_running as possibly dead #351, chore(trends): flag pcie_width_regression and error_rate_rising as possibly dead #358, chore: flag BUGCHECK_IGNORED, attachment_count and writeEnterToSend as possibly dead #363, chore: drop unused loop binding, flag six test-only or unread symbols as possibly dead #369, chore(hardware_catalog): flag queried_events and ATTRIBUTED_LINUX_KEYS as possibly dead #372, chore(fleet_stats): drop unused _SECTION_ORDER #373). No new findings.nvidia.rs,disk_smart::core,os_support::cpu) cover items that are used on at least one platform. Each per-fieldallow(dead_code)on arg structs covers a deserialized arg that only the Windows code or the non-Windows stub reads.tsc --noUnusedLocals --noUnusedParametersis clean.Checklist
cargo test(agent, 588 passed). The server is untouched.cargo fmt --check,cargo clippy --all-targetsGenerated by Claude Code