Skip to content

fix(relative): group month and year adjustments - #360

Open
anastygnome wants to merge 2 commits into
uutils:mainfrom
anastygnome:split/month-year-grouping
Open

anastygnome wants to merge 2 commits into
uutils:mainfrom
anastygnome:split/month-year-grouping

Conversation

@anastygnome

@anastygnome anastygnome commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Accumulate relative year/month/day/time fields before applying them.
  • Normalize grouped year/month changes with GNU-compatible overflow behavior.
  • Add chained month/year regression coverage

@anastygnome
anastygnome force-pushed the split/month-year-grouping branch from e8728e3 to 8921369 Compare November 12, 2026 11:57
@codspeed

codspeed Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will regress 1 benchmark

1 warning

⚠️ 16 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚡ 1 improved benchmark
❌ 1 regressed benchmark
✅ 19 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ parse_relative_time_complex 62.1 µs 64.5 µs -3.79%
⚡ parse_now 30.1 µs 27.7 µs +8.56%

Tip

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


Comparing anastygnome:split/month-year-grouping (54e0251) with main (0612ea5)

Open in CodSpeed

@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.70%. Comparing base (0612ea5) to head (54e0251).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #360      +/-   ##
==========================================
- Coverage   98.97%   98.70%   -0.28%     
==========================================
  Files          21       21              
  Lines        4696     4784      +88     
  Branches      143      149       +6     
==========================================
+ Hits         4648     4722      +74     
- Misses         47       61      +14     
  Partials        1        1              
Flag Coverage Δ
macos_latest 98.70% <100.00%> (-0.28%) ⬇️
ubuntu_latest 98.70% <100.00%> (-0.28%) ⬇️
windows_latest 12.66% <30.61%> (+0.27%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@anastygnome
anastygnome force-pushed the split/month-year-grouping branch from 8921369 to 54e0251 Compare November 15, 2026 12:29
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