Skip to content

split: avoid opening output for empty input - #14973

Merged
cakebaker merged 1 commit into
uutils:mainfrom
mattsu2020:split-io-err.sh
Sep 30, 2026
Merged

cakebaker merged 1 commit into
uutils:mainfrom
mattsu2020:split-io-err.sh

Conversation

@mattsu2020

Copy link
Copy Markdown
Contributor

Fixed-size split modes open the first output before reading input, creating or truncating files and failing on output directories even for empty input. Check for input data before opening any output, add empty-input regressions, and strengthen output-error checks.

Closes #12934

@mattsu2020
mattsu2020 marked this pull request as draft September 30, 2026 07:10
@codspeed

codspeed Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 3.48%

⚠️ 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

❌ 2 regressed benchmarks
✅ 8 untouched benchmarks
⏩ 438 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Simulation split_number_chunks_round_robin 30.1 ms 31.3 ms -3.88%
❌ Simulation split_bytes 624 µs 643.8 µs -3.08%

Tip

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


Comparing mattsu2020:split-io-err.sh (080c257) with main (84d75fc)2

Open in CodSpeed

Footnotes

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

  2. No successful run was found on main (cef1364) during the generation of this report, so 84d75fc was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/id/setgid is no longer failing!
Congrats! The gnu test tests/split/split-io-err is no longer failing!

@mattsu2020
mattsu2020 marked this pull request as ready for review September 30, 2026 07:56
@cakebaker
cakebaker merged commit 1c28e6d into uutils:main Sep 30, 2026
135 of 137 checks passed
@cakebaker

Copy link
Copy Markdown
Contributor

Congrats! The gnu test tests/split/split-io-err is no longer failing!

Kudos and thanks!

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