Skip to content

date: fix subfmt-up1, fill-1, pct-pct, and invalid-high-bit-set tests / implement --debug#10940

Merged
ChrisDryden merged 1 commit intouutils:mainfrom
sylvestre:date-pl-5
Feb 15, 2026
Merged

date: fix subfmt-up1, fill-1, pct-pct, and invalid-high-bit-set tests / implement --debug#10940
ChrisDryden merged 1 commit intouutils:mainfrom
sylvestre:date-pl-5

Conversation

@sylvestre
Copy link
Contributor

based on #10939

should fix tests/date/date.pl

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/factor/t29. tests/factor/t29 is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/tail/retry. tests/tail/retry is passing on 'main'. Maybe you have to rebase?
Skipping an intermittent issue tests/tail/symlink (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tty/tty-eof (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/date/date is no longer failing!
Note: The gnu test tests/expand/bounded-memory is now being skipped but was previously passing.
Note: The gnu test tests/rm/many-dir-entries-vs-OOM is now being skipped but was previously passing.
Congrats! The gnu test tests/pr/bounded-memory is now passing!

//! Format: `%[flags][width]specifier`
//!
//! ### Flags
//! - `-`: Left-align (pad with spaces on the right)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this flag is incorrect, when I'm testing with different - modifiers It appears to be suppressing all padding

return result;
}

let pad_char = if flags.contains('0') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This might be better for a follow up but I think the logic here is a bit more complicated since the pad char can be dependent on the specifier. When I'm running different modifiers locally I am sometimes seeing that the ordering of the modifiers themselves like doing _+

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 14, 2026

Merging this PR will degrade performance by 39.09%

❌ 6 regressed benchmarks
✅ 282 untouched benchmarks
⏩ 38 skipped benchmarks1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation file_custom_format 11.7 ms 16 ms -26.75%
Simulation complex_relative_date 247 µs 258.9 µs -4.58%
Simulation single_date_now 194.7 µs 207.2 µs -6.04%
Simulation file_tz_abbreviations 16 ms 24.3 ms -34.04%
Simulation file_iso_dates 12.3 ms 20.1 ms -39.09%
Memory file_tz_abbreviations 333.4 KB 529.2 KB -37%

Comparing sylvestre:date-pl-5 (200afd1) with main (e7f2fd9)

Open in CodSpeed

Footnotes

  1. 38 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.

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/factor/t29. tests/factor/t29 is passing on 'main'. Maybe you have to rebase?
Skipping an intermittent issue tests/tail/symlink (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/date/date is no longer failing!

@ChrisDryden
Copy link
Collaborator

Bravo 🥳 When you said you had a working fix for date.pl I didn't think you also had the start of the debug flag work done too.

@sylvestre sylvestre force-pushed the date-pl-5 branch 2 times, most recently from a43edf6 to ae18cfc Compare February 14, 2026 22:20
@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/factor/t34 is no longer failing!
Congrats! The gnu test tests/misc/io-errors is no longer failing!
Congrats! The gnu test tests/tail/retry is no longer failing!
Note: The gnu test tests/basenc/bounded-memory is now being skipped but was previously passing.
Note: The gnu test tests/cut/bounded-memory is now being skipped but was previously passing.
Congrats! The gnu test tests/tail/tail-n0f is now passing!

@ChrisDryden
Copy link
Collaborator

I'm thinking just for the sake of it being a big PR and that its net new functionality it would be better to merge then address the fixes as follow ups, once the gnu test is passing?

@sylvestre
Copy link
Contributor Author

indeed and i have a differential fuzzer ready to run :)

@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/factor/t10. tests/factor/t10 is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/factor/t33. tests/factor/t33 is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/factor/t34. tests/factor/t34 is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/tail/retry. tests/tail/retry is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/pr/bounded-memory (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/date/date is no longer failing!
Congrats! The gnu test tests/basenc/bounded-memory is now passing!

@ChrisDryden ChrisDryden merged commit a7f55cb into uutils:main Feb 15, 2026
195 of 200 checks passed
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.

2 participants