Repository navigation
fix(common/time_utils): correct None/empty timestamp fallback and ISO 8601 parsing - #16483
Conversation
d672ebf to
f6bfbaa
Compare
|
Recovery for accidentally closed #16173. Branch rebuilt on current |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughTwo bug fixes in Timestamp fallback and ISO 8601 parsing fixes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16483 +/- ##
=======================================
Coverage 93.16% 93.16%
=======================================
Files 10 10
Lines 717 717
Branches 118 118
=======================================
Hits 668 668
Misses 29 29
Partials 20 20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…lization Use millisecond current timestamps when input is empty and parse ISO-8601 values through dateutil once so ordinal forms are normalized instead of being silently returned unchanged. Add regression tests for None/empty fallback behavior and ordinal ISO parsing. Co-authored-by: Cursor <[email protected]>
…tests Treat only None/empty string as missing input so timestamp 0 is handled as a valid epoch value, and add fallback debug logging for observability. Add p2 priority markers to new regression suites plus a guard test proving zero is not treated as missing. Co-authored-by: Cursor <[email protected]>
Replace wall-clock range assertions in fallback tests with fixed current_timestamp monkeypatching so the suite remains stable under CI scheduler delays while still verifying fallback behavior exactly. Co-authored-by: Cursor <[email protected]>
4117940 to
db45f52
Compare
Recovery PR for #16173 after the fork branch was accidentally reset during rewrite-cleanup.
Cherry-picked onto current
main:Supersedes closed #16173 — same branch
Harsh23Kashyap/fix/time-utils-edgecases, rebuilt per @yuzhichang recovery steps in #16173 (comment)