Skip to content

Make pydash coverage checks independent of timer scheduling - #67

Merged
ANcpLua merged 1 commit into
mainfrom
codex/pydash-deterministic-clock
Oct 11, 2026
Merged

ANcpLua merged 1 commit into
mainfrom
codex/pydash-deterministic-clock

Conversation

@ANcpLua

@ANcpLua ANcpLua commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Pydash's README coverage job failed on hosted macOS when its 10 ms sleeps raced a 15 ms debounce timer. A scoped pytest fixture now advances time and dispatches timers deterministically for the two debounce tests. The pinned upstream implementation, locks, test assertions, and coverage configuration remain unchanged; the fixture restores real time after each test.

Every Python matrix job tests deadline ordering, cancellation, fixture isolation, and failure detection, including repeated upstream assertions with 30 ms scheduler stalls and deliberately early/late timers. The full measurement requires JUnit evidence that exactly the two intended tests used the fixture and checks that tracked upstream source, tests, and configuration remain unchanged.

All 2,274 tests, zero skips/errors, the exact 2,607/2,607 per-file coverage comparison, DotCov's 100% gate, and badge publication checks remain mandatory. No test retries, extra exclusions, or threshold changes.

Validation on macOS: 8 clock regression tests passed; the full upstream measurement passed all 2,274 tests and matched the published coverage exactly; the actual badge script published and verified a 100.0% badge against a local bare origin. actionlint, shellcheck, and git diff --check passed. CI runs the fixture checks and full coverage/badge comparison on Linux, Windows, and macOS.

CI run 38136600863 passed on attempt 1: all Linux/Windows/macOS timing, coverage, and badge jobs, both full DotCov test jobs, and the unchanged 100% coverage gate. No manual rerun was used.

Copilot AI balanced review requested due to automatic review settings October 11, 2026 11:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T11:46:48.909209Z 0566791 PR opened
🔒 Security Review ✅ Completed 2026-10-11T11:45:44.331074Z 0566791 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ANcpLua
ANcpLua merged commit cd08d07 into main Oct 11, 2026
25 checks passed
@ANcpLua
ANcpLua deleted the codex/pydash-deterministic-clock branch October 11, 2026 11:47
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.

2 participants