Skip to content

Conversation

@ChrisDryden
Copy link
Collaborator

@ChrisDryden ChrisDryden commented Nov 28, 2025

This PR is the final GNU test fix for stty. This test overrides cfsetispeed and checks to see if it is called. Currently our implementation of stty only overrides the cfsetospeed. The support to do both in GNU existed for a while. I changed the enum and parser to treat the ispeed and ospeed separately and I added integration tests that compare that using those new flags matches the input and output of the GNU implementation.

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@ChrisDryden ChrisDryden force-pushed the stty_input_and_output_speed branch 2 times, most recently from 5097f92 to a1c0044 Compare November 29, 2025 04:40
@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@ChrisDryden
Copy link
Collaborator Author

Hmm an issue with one of the baud rate integration tests came up, was covered up by the seq failure before

@ChrisDryden ChrisDryden marked this pull request as draft December 2, 2025 16:30
@ChrisDryden ChrisDryden force-pushed the stty_input_and_output_speed branch from 5a54163 to 2903ff7 Compare December 3, 2025 04:56
@ChrisDryden
Copy link
Collaborator Author

Darn so it used to be back before 9.2 that it would except invalid arguments without failing?

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 3, 2025

Merging this PR will improve performance by 3.2%

Summary

⚡ 1 improved benchmark
✅ 139 untouched benchmarks
⏩ 37 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
tsort_input_parsing_heavy[5000] 73.7 ms 71.5 ms +3.2%

Comparing ChrisDryden:stty_input_and_output_speed (dc7ee6a) with main (20a5c3a)

Open in CodSpeed

Footnotes

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

github-actions bot commented Dec 7, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@ChrisDryden ChrisDryden marked this pull request as ready for review December 7, 2025 19:24
@github-actions
Copy link

github-actions bot commented Dec 7, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

@ChrisDryden ChrisDryden force-pushed the stty_input_and_output_speed branch from 1f6ede8 to d018ba7 Compare December 7, 2025 21:38
@github-actions
Copy link

github-actions bot commented Dec 7, 2025

GNU testsuite comparison:

Congrats! The gnu test tests/stty/bad-speed is now passing!

@ChrisDryden ChrisDryden force-pushed the stty_input_and_output_speed branch from d018ba7 to 970fef3 Compare December 17, 2025 16:02
@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/stty/bad-speed is now passing!

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/stty/bad-speed is now passing!

# * the test says "maybe we should not fail when no context available"
"${SED}" -i -e "s|returns_ 1||g" tests/cp/no-ctx.sh

# Skip bad-speed test if not interactive (requires controlling terminal)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this might be not required once this PR is merged? #9881

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

coreutils/coreutils#160 turns out that it didn't fix the issue and upon further testing it appears to be an issue in the gnu tests themselves.

@ChrisDryden ChrisDryden force-pushed the stty_input_and_output_speed branch 2 times, most recently from de449bf to f015317 Compare December 30, 2025 20:06
@github-actions
Copy link

GNU testsuite comparison:

GNU test failed: tests/tty/tty-eof. tests/tty/tty-eof is passing on 'main'. Maybe you have to rebase?
Congrats! The gnu test tests/stty/bad-speed is now passing!

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/stty/bad-speed is now passing!

@ChrisDryden
Copy link
Collaborator Author

@sylvestre mind if I get a review on this one after the stty hotfix? Stty is doing so much better than back in November 🥳

@ChrisDryden ChrisDryden force-pushed the stty_input_and_output_speed branch from 3e44d90 to dc7ee6a Compare January 7, 2026 16:09
@ChrisDryden
Copy link
Collaborator Author

I was able to remove the GNU test patch now that the upstream test was fixed in gnu coreutils and #10077 was merged

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