Skip to content

sort: gnu coreutils compatibility (sort.pl)#9862

Merged
sylvestre merged 7 commits into
uutils:mainfrom
mattsu2020:sort_sort.pl
Jan 27, 2026
Merged

sort: gnu coreutils compatibility (sort.pl)#9862
sylvestre merged 7 commits into
uutils:mainfrom
mattsu2020:sort_sort.pl

Conversation

@mattsu2020

Copy link
Copy Markdown
Contributor

We will make the necessary changes to ensure the GNU coreutils tests pass.

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/sort/sort is no longer failing!

Comment thread src/uu/sort/src/sort.rs Outdated
@sylvestre

Copy link
Copy Markdown
Contributor

it regressed a test

@@ -620,31 +638,97 @@ fn test_keys_invalid_field() {
new_ucmd!()
.args(&["-k", "1."])
.fails()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'd love to add .matches_gnu() to these: #9660

Its harder to review manually to validate that these tests are made in a way that matches the original.

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/sort/sort is no longer failing!

1 similar comment
@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/sort/sort is no longer failing!

@sylvestre

Copy link
Copy Markdown
Contributor

Some jobs are failing

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/sort/sort is no longer failing!

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/sort/sort is no longer failing!
Congrats! The gnu test tests/tty/tty-eof is no longer failing!

@mattsu2020 mattsu2020 requested a review from sylvestre January 5, 2026 06:32
@sylvestre

Copy link
Copy Markdown
Contributor

this huge pr is hard to review :(
would it be possible to split a bit ? thanks

@mattsu2020

mattsu2020 commented Jan 5, 2026

Copy link
Copy Markdown
Contributor Author

this huge pr is hard to review :( would it be possible to split a bit ? thanks

split the PR.
#10066
this PR is Unnecessary

@mattsu2020

Copy link
Copy Markdown
Contributor Author

split
#10068

@github-actions

github-actions Bot commented Jan 5, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/sort/sort is no longer failing!

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/tty/tty-eof (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/sort/sort is no longer failing!

@codspeed-hq

codspeed-hq Bot commented Jan 16, 2026

Copy link
Copy Markdown

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing mattsu2020:sort_sort.pl (0bee20f) with main (1c09c36)

Summary

✅ 142 untouched benchmarks
⏩ 180 skipped benchmarks1

Footnotes

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

Modify sort command to permit multiple -o/--output flags specifying the same file,
matching GNU sort behavior. Previously, any multiple -o flags would error, but now
only differing output files are rejected. Added test case for duplicate outputs.
…tters

Changed ascii_case_insensitive_cmp to fold characters to uppercase instead of lowercase, ensuring that in ASCII case-insensitive sorting, letters are ordered before punctuation. Added tests to verify the correct behavior.
@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/sort/sort is no longer failing!

Comment thread src/uu/sort/src/sort.rs Outdated
Comment thread src/uu/sort/src/sort.rs Outdated
mattsu2020 and others added 3 commits January 27, 2026 08:18
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/tail/follow-name (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/sort/sort is no longer failing!

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/shuf/shuf-reservoir (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/sort/sort-stale-thread-mem (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/follow-name (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/sort/sort is no longer failing!

@sylvestre

Copy link
Copy Markdown
Contributor

Congrats! The gnu test tests/sort/sort is no longer failing!

well done!

@sylvestre sylvestre merged commit 836e0cb into uutils:main Jan 27, 2026
130 checks passed
@mattsu2020 mattsu2020 deleted the sort_sort.pl branch January 27, 2026 23:05
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