Skip to content

Fix some more issues with date - #15286

Open
anastygnome wants to merge 5 commits into
uutils:mainfrom
anastygnome:test-util
Open

anastygnome wants to merge 5 commits into
uutils:mainfrom
anastygnome:test-util

Conversation

@anastygnome

@anastygnome anastygnome commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Closes #14681

Closes #12943
Closes #14674
Closes #14679
Closes #14781
Closes #14791

Copilot AI balanced review requested due to automatic review settings October 12, 2026 17:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Copilot AI balanced review requested due to automatic review settings October 12, 2026 18:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Copilot AI balanced review requested due to automatic review settings October 12, 2026 18:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

@anastygnome

Copy link
Copy Markdown
Contributor Author

@xtqqczze but wait
There's MORE!

Copilot AI balanced review requested due to automatic review settings October 12, 2026 19:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 03:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 04:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 05:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread tests/by-util/test_date.rs
Comment thread src/uu/date/src/date.rs Outdated
Copilot AI balanced review requested due to automatic review settings October 13, 2026 09:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 09:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread src/uu/date/src/date.rs Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

@codspeed

codspeed Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 3.45%

⚠️ 2 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 1 regressed benchmark
✅ 11 untouched benchmarks
⏩ 460 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ ⚠️ Simulation single_date_now 179.5 µs 185.9 µs -3.45%

Tip

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


Comparing anastygnome:test-util (96328d7) with main (1747ba1)

Open in CodSpeed

Footnotes

  1. 460 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. ↩

@anastygnome

Copy link
Copy Markdown
Contributor Author

Merging this PR will degrade performance by 3.66%

179.7 µs 186.5 µs -3.66%

Hmm @sylvestre, maybe this is too sensitive.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 14:59
@anastygnome

Copy link
Copy Markdown
Contributor Author

@SichenLiang Added a commit to fix the regression you spotted with %F

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Short-option normalization corrupts attached values, and day-month dates are omitted from weekday normalization.

2 open findings

🧠 Review effort: Balanced

Comment thread src/uu/date/src/date.rs Outdated
Comment thread src/uu/date/src/date.rs Outdated
Copilot AI balanced review requested due to automatic review settings October 13, 2026 15:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

@SichenLiang

Copy link
Copy Markdown
Contributor

Thanks! checked 60df587, and the cases we reported now match GNU, including %-F, %_F and widths such as %6F.

I found one case that went back to the behavior from before #15111:

$ TZ=UTC LC_ALL=C date -d 2024-06-15 +%+6F

GNU 9.12 and current main print 2024-06-15, while this PR prints +2024-06-15. I also checked %+12F; that one matches GNU.

@xtqqczze

Copy link
Copy Markdown
Collaborator

Merging this PR will degrade performance by 3.66%

179.7 µs 186.5 µs -3.66%

The performance regression is consistent, but it's not a blocker.

@xtqqczze

Copy link
Copy Markdown
Collaborator

@anastygnome I'm obliged to ask: does this fix any open issues or supersede any PRs? Also, is it ready for review?

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

@anastygnome

Copy link
Copy Markdown
Contributor Author

Thanks! checked 60df587, and the cases we reported now match GNU, including %-F, %_F and widths such as %6F.

I found one case that went back to the behavior from before #15111:

$ TZ=UTC LC_ALL=C date -d 2024-06-15 +%+6F

GNU 9.12 and current main print 2024-06-15, while this PR prints +2024-06-15. I also checked %+12F; that one matches GNU.

fixed

@anastygnome

Copy link
Copy Markdown
Contributor Author

@anastygnome I'm obliged to ask: does this fix any open issues or supersede any PRs? Also, is it ready for review?

we found a regression (thanks @SichenLiang ) but it should be ready now!

The fixed issues are in the commit messages.

@xtqqczze

Copy link
Copy Markdown
Collaborator

@anastygnome Could you move GitHub issue references from the commit message to the PR description instead? This makes issues easier to track and avoids spamming the issues with references to individual commits (e.g. #14681).

@anastygnome

anastygnome commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

@anastygnome Could you move GitHub issue references from the commit message to the PR description instead? This makes issues easier to track and avoids spamming the issues with references to individual commits (e.g. #14681).

@xtqqczze done

@xtqqczze

Copy link
Copy Markdown
Collaborator

@anastygnome Does this PR supersede #14781 and #14791?

@anastygnome

Copy link
Copy Markdown
Contributor Author

@anastygnome Does this PR supersede #14781 and #14791?

What do you mean there's more?

Of course,!

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

6 participants