Repository navigation
Conversation
`collectors::section_names` has no caller outside the module's own tests in this bin-only crate; it was kept in the release binary under `#[allow(dead_code)]`. Compile it only for tests instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QcqxZRb56sRXGZEAdGhPwz
|
The I don't think this PR caused it:
The test only waits 200 ms for a spawned child before taking a process snapshot, so it is timing-sensitive under runner load. I haven't confirmed the race yet. I'll re-run the failed job once this workflow finishes; GitHub refuses a re-run while the Windows jobs are still going. If it fails again, I'll treat it as a real race and fix the test properly. Generated by Claude Code |
`wait_times_out_while_another_process_runs_target` copies /bin/sleep to a private path and runs it. On ubuntu-26.04 runners /bin/sleep is a symlink into uutils' multicall coreutils binary, which picks its applet from argv[0]; under the copy's name it printed "function/utility not found" and exited at once, so the wait saw no holder and the test failed every run. Set argv[0] to "sleep" (harmless for GNU sleep) and assert the child is still alive before measuring, so an early exit fails with a clear message. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QcqxZRb56sRXGZEAdGhPwz
|
Update: I found the real cause, and it wasn't timing. The re-run failed the same way. Both runs used ubuntu-26.04 runners. There, Pushed 1d1bd8b: it runs the copy with Generated by Claude Code |
…/sleep On ubuntu-26.04 runners the copied /bin/sleep exits immediately even when started with argv[0] "sleep", so the wait saw no holder and wait_times_out_while_another_process_runs_target failed every run. The shape of a distro's sleep (multicall, wrapper, symlink) is not ours to depend on. The child now runs a private copy of the test binary itself, filtered to an #[ignore]d helper that sleeps only when KENNY_WAIT_TEST_SLEEP_CHILD is set. This removes the "no /bin/sleep, skip" branch, so the test also runs on Windows; an early child exit fails loudly with its status. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QcqxZRb56sRXGZEAdGhPwz
|
Correction to my last comment: the argv[0] commit is 831b4df, not 1d1bd8b, and it did not fix the failure. On ubuntu-26.04 the copied accaaf9 removes the dependency on it altogether. The test now copies its own test binary and runs it filtered to an Generated by Claude Code |
CI on accaaf9 failed spawning the freshly copied test binary with "Text file busy": a concurrent test thread forked while `fs::copy` still held the copy open for writing, and that inherited fd lives in the forked child until it execs. Retry the spawn on ExecutableFileBusy (up to ~1 s); any other error still fails the test. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QcqxZRb56sRXGZEAdGhPwz
|
CI on accaaf9 got further and hit a different, well-understood error: This race may also explain the original Generated by Claude Code |
`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]>
What & why
Scheduled dead-code sweep. One new finding (high confidence):
kenny-agent/src/telemetry/collectors/mod.rs::section_namesbehind#[cfg(test)]. kenny-agent is a bin-only crate (no[lib], notests/), and the only callers are the module's own tests. Before this, the function shipped in the release binary under#[allow(dead_code)].CI fix found along the way
kenny-agent (Rust)failed on every run on the new ubuntu-26.04 runners, inagent_update::tests::wait_times_out_while_another_process_runs_target. This will also hitmainon its next agent CI run. The test copied/bin/sleepand ran it as a child. On 26.04 that copy exits immediately; I never found out exactly why. Once the child was a fresh copy of the test binary, spawning it also hitETXTBSY. That happens when a concurrent test forks while the copy is still open for writing. Changes:#[ignore]d helper (sleep_helper_child) that only sleeps whenKENNY_WAIT_TEST_SLEEP_CHILDis set. The test no longer depends on any distro tool.ExecutableFileBusyfor up to about 1 s./bin/sleep, skip" branch is gone, so the test now also runs (and passes) on the Windows job.Sweep results (not changed here)
_SECTION_ORDER(chore(fleet_stats): drop unused _SECTION_ORDER #373);queried_events,ATTRIBUTED_LINUX_KEYS(chore(hardware_catalog): flag queried_events and ATTRIBUTED_LINUX_KEYS as possibly dead #372);DISCORD_MESSAGE_HARD_LIMIT,COMPONENTS,ROUTES,wait_previews,PRESENTED_KINDS, the unusedpropbinding (chore: drop unused loop binding, flag six test-only or unread symbols as possibly dead #369);BUGCHECK_IGNORED,attachment_count(chore: flag BUGCHECK_IGNORED, attachment_count and writeEnterToSend as possibly dead #363);pcie_width_regression,error_rate_rising(chore(trends): flag pcie_width_regression and error_rate_rising as possibly dead #358);evidence_providers,count_running(chore(stewards): flag evidence_providers and count_running as possibly dead #351);register_signed_async(chore(registry): correct stale dead-code marker, flag register_signed_async #342);queried_linux_keys(chore(hardware_catalog): flag queried_linux_keys as possibly dead #332).POSSIBLY DEADon main:tokenstore.list_agents/has_token,keystore.rotate,policy.shell_mode,security.totp_at,notify.load_notifiers,store.set_enabled/list_desired_channels,ticket_rules.should_open,discord_identity.set_disabled,member_role_ids,LINUX_ASSET_RE, and others.@mcp.toolfunctions intools.py, Discordon_*event handlers, pydanticmodel_config,__exit__args, and dataclass fields that mirror DB row columns. Rust#[allow(dead_code)]on serde wire fields and on per-platform parsers is intentional (#[cfg(windows)]discipline).kenny-webTypeScript unused-export pass was skipped this run.Checklist
cargo test(agent): 588 passed, 1 ignored (the child-process helper). Server is untouched. CI is green on Linux and Windows.cargo fmt --check,cargo clippy --all-targets(no warnings)https://claude.ai/code/session_01QcqxZRb56sRXGZEAdGhPwz
Generated by Claude Code