Skip to content

tr: replace rustix socketpair with filedescriptor in test_stdin_is_socket - #13784

Draft
xtqqczze wants to merge 1 commit into
uutils:mainfrom
xtqqczze:refactor-test_stdin_is_socket2
Draft

xtqqczze wants to merge 1 commit into
uutils:mainfrom
xtqqczze:refactor-test_stdin_is_socket2

Conversation

@xtqqczze

@xtqqczze xtqqczze commented Aug 6, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #15013.

WIP: Depends on a new filedescriptor crate release to remove the patch.crates-io override.

@sylvestre

Copy link
Copy Markdown
Contributor

still a draft ?

@xtqqczze

xtqqczze commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

still a draft ?

I don't think we can take this with a patch.crates-io override?

@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch 2 times, most recently from fdc9982 to b06fa02 Compare August 7, 2026 21:41
@github-actions

github-actions Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

GNU testsuite comparison:

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

@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch from b06fa02 to df258cd Compare August 8, 2026 08:48
@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch from df258cd to c466dae Compare August 23, 2026 22:45
@codspeed

codspeed Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 4.42%

2 warnings

⚠️ 75 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 benchmark with a significant change ran on different hardware

Its base and head results were measured on machines with a different CPU, core count or memory, so the change might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

❌ 1 regressed benchmark
✅ 134 untouched benchmarks
⏩ 350 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ df_deep_directory 896 µs 937.5 µs -4.42%

Tip

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


Comparing xtqqczze:refactor-test_stdin_is_socket2 (a62bed1) with main (451209b)

Open in CodSpeed

Footnotes

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

@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch 2 times, most recently from e1bfec4 to ced61cc Compare August 31, 2026 00:26
@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch 3 times, most recently from d936ce0 to e05ddcd Compare September 25, 2026 16:02
@xtqqczze

This comment was marked as outdated.

@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch 2 times, most recently from 3f209b8 to bca90ec Compare September 27, 2026 14:11
@xtqqczze

This comment was marked as resolved.

@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch from bca90ec to 727f0bc Compare October 1, 2026 11:16
@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch 4 times, most recently from 1d1646b to b8e13ec Compare October 21, 2026 08:15
@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch 4 times, most recently from 750bb9b to 2af7b58 Compare October 21, 2026 17:11
@xtqqczze xtqqczze self-assigned this Oct 27, 2026
@xtqqczze

This comment was marked as outdated.

@xtqqczze xtqqczze closed this Oct 27, 2026
@xtqqczze xtqqczze reopened this Oct 30, 2026
@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch 4 times, most recently from b37d8a2 to bcd368b Compare November 4, 2026 02:28
@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch 4 times, most recently from 4e8cbc9 to b4e083a Compare November 16, 2026 14:43
@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch 3 times, most recently from cf2b102 to a62bed1 Compare November 26, 2026 21:09
@xtqqczze
xtqqczze force-pushed the refactor-test_stdin_is_socket2 branch from a62bed1 to fc2c3f2 Compare December 1, 2026 20:54

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

Development

Successfully merging this pull request may close these issues.

Remove duplicate thiserror v1 dependency

2 participants