Skip to content

Simplify parallel polynomial scheduling with floating-point timing - #21

Merged
jwood000 merged 1 commit into
mainfrom
codex/scheduler-floating-seconds
Dec 4, 2026
Merged

jwood000 merged 1 commit into
mainfrom
codex/scheduler-floating-seconds

Conversation

@jwood000

@jwood000 jwood000 commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Replace the scheduler’s integer-clock arithmetic and associated representation/period overflow checks with calculations in floating-point seconds.

Preserve the existing progress estimate, worker-selection rule, and 15/30-second batch budgets. Keep completion and count validation, reject invalid timing estimates, and cap the calculated batch before converting to size_t. Estimates below one polynomial continue to use the existing serial fallback.

Exact clock-tick truncation is no longer preserved, so scheduling decisions can differ near timing boundaries. Update the native diagnostics to check the seconds-based policy and safety guarantees rather than historical integer rounding.

Validation:

  • All 52 native diagnostic cases passed.
  • All 500 package expectations passed.
  • R CMD check --no-manual completed with Status: OK.

Native diagnostics remain development-only. No sanitizers were run, and no CI workflows or dependencies changed.

@jwood000
jwood000 merged commit af1e163 into main Dec 4, 2026
20 of 21 checks passed
@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 92.21%. Comparing base (9cda1b4) to head (9069e53).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/Polynomial.cpp 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
- Coverage   92.25%   92.21%   -0.04%     
==========================================
  Files          18       18              
  Lines        1601     1593       -8     
==========================================
- Hits         1477     1469       -8     
  Misses        124      124              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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