Skip to content

fix: jiff ZonedDateTime to datetime and back roundtrip - #6606

Draft
Ravencentric wants to merge 2 commits into
PyO3:mainfrom
Ravencentric:jiff-fold-regression-test
Draft

Ravencentric wants to merge 2 commits into
PyO3:mainfrom
Ravencentric:jiff-fold-regression-test

Conversation

@Ravencentric

Copy link
Copy Markdown

First commit is solely the failing test case

@Tpt
Tpt marked this pull request as draft November 24, 2026 08:24
@Tpt

Tpt commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

@Ravencentric Thank you! Tagging it as draft, please make it into "ready for review" when you are done

@codspeed

codspeed Bot commented Nov 24, 2026

Copy link
Copy Markdown

Merging this PR will regress 1 benchmark

2 warnings

⚠️ Unable to measure the execution of 4 benchmarks

These benchmarks measured no execution time, so their results are not comparable and count as unchanged. This usually happens when the compiler removes the code under test.

Prevent compiler optimizations

See affected benchmarks

⚠️ 3 benchmarks with a significant change ran on different hardware

Their base and head results were measured on machines with a different CPU, core count or memory, so the changes might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

⚡ 2 improved benchmarks
❌ 1 regressed benchmark
✅ 148 untouched benchmarks
⏩ 6 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ extract_chrono_date 1.2 µs 1.4 µs -11.83%
⚡ into_biguint_small 1.6 µs 1.3 µs +29.28%
⚡ into_bigint_small 2.7 µs 2.4 µs +13.07%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing Ravencentric:jiff-fold-regression-test (c2e5a9c) with main (aa2eb17)

Open in CodSpeed

Footnotes

  1. 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

Comment thread src/conversions/jiff.rs
Just(&TimeZone::get("Australia/Sydney").unwrap()),
].prop_flat_map(|tz| (Just(tz), timezone_transitions(tz))),
hour in -2i32..=2i32,
min in 0u32..=59u32,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should also catch the bug.

Suggested change
min in -59i32..=59i32,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

that does catch the same bug, ill push this next commit

This branch has not been deployed

No deployments
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.

3 participants