Skip to content

test(proc): the macOS CPU time test waits for the ticks to move - #258

Merged
7schmiede merged 1 commit into
mainfrom
fix/macos-cpu-times-test
Oct 23, 2026
Merged

7schmiede merged 1 commit into
mainfrom
fix/macos-cpu-times-test

Conversation

@7schmiede

Copy link
Copy Markdown
Member

the_machine_reports_memory_and_cpu_time (crates/devstack-proc/src/macos.rs) read the host's CPU ticks (host_statistics, HOST_CPU_LOAD_INFO) 300 ms apart and asserted they had moved. On the macOS runner, a virtual machine, they had not: 64558 -> 64558 (check (macos-14) on #254, which does not touch this crate).

The test now stays busy until the ticks move, at least 300 ms and at most 5 s; the assertions are unchanged.

Checked: cargo fmt, cargo clippy -p devstack-proc --tests --target aarch64-apple-darwin. Not run on a Mac here; CI's macOS jobs run it.

🤖 Generated with Claude Code

`the_machine_reports_memory_and_cpu_time` read the host's CPU ticks 300 ms
apart and wanted them to have moved; on the macOS runner (a virtual
machine) they had not (`64558 -> 64558`, check on macos-14 in #254). It
now stays busy until they move, at least 300 ms and at most 5 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit 0ad0c92 into main Oct 23, 2026
13 checks passed
@7schmiede
7schmiede deleted the fix/macos-cpu-times-test branch October 23, 2026 21:47
@7schmiede 7schmiede mentioned this pull request Oct 23, 2026
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