Skip to content

doctor check_rate: don't fail H4 when host clocksource is unreadable - #509

Merged
Pedro Henrique Penna (ppenna) merged 5 commits into
microsoft:devfrom
akhil9tiet:fix/507-clocksource-read-fails-h4
Oct 12, 2026
Merged

Pedro Henrique Penna (ppenna) merged 5 commits into
microsoft:devfrom
akhil9tiet:fix/507-clocksource-read-fails-h4

Conversation

@akhil9tiet

Copy link
Copy Markdown
Contributor

Fixes #507

The host clocksource is recorded as evidence only, so an unreadable sysfs file must not fail the H4 rate check. check_rate now catches OSError from host_clocksource(), records it explicitly as unknown (<error>), and still runs the TSC rate/stability measurements below — the verdict depends on the measurements alone. Regression test added.

Copilot AI balanced review requested due to automatic review settings October 12, 2026 12:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused error handling matches H4’s contract and is adequately covered by regression tests.

0 open findings

What changed in this PR

Prevents optional Linux clocksource evidence from incorrectly failing the H4 rate check.

Changes:

  • Records clocksource read errors as unknown evidence while continuing measurements.
  • Adds regression coverage for passing and failing measurement outcomes.
File Description
scripts/​nvx_tools/​doctor.py Handles clocksource read failures without affecting H4 verdicts.
scripts/​test_time_abi.py Tests unreadable clocksource behavior and measurement-based verdicts.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@akhil9tiet

Copy link
Copy Markdown
Contributor Author

Pedro Henrique Penna (@ppenna) Can you please add me to the contributor list so that changes can be merged directly

@ppenna
Pedro Henrique Penna (ppenna) merged commit b1dadb7 into microsoft:dev Oct 12, 2026
27 checks passed
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.

Track doctor qualification bugs: optional clocksource read fails H4

3 participants