Skip to content

Increase the amount of data written to a pipe in a test#14116

Merged
nojb merged 1 commit into
ocaml:trunkfrom
stedolan:fix-close-during-flush-test
Jun 30, 2025
Merged

Increase the amount of data written to a pipe in a test#14116
nojb merged 1 commit into
ocaml:trunkfrom
stedolan:fix-close-during-flush-test

Conversation

@stedolan

Copy link
Copy Markdown
Contributor

The new test in #14093 fails on ppc64 Linux. It turns out that the default pipe capacity on Linux is 16 pages, and on ppc64 a page is 64kB. So, you need to write a full megabyte to a pipe before it blocks, which is more than this test writes, causing it to fail. The fix is bumping the number.

(Thanks @dra27 for testing this on a ppc64 machine)

@stedolan stedolan marked this pull request as draft June 30, 2025 13:04
On some OSes, you need to write more than 1MB of data to a pipe
before writes block, and read more than 64k to unblock them.
@stedolan stedolan force-pushed the fix-close-during-flush-test branch from c0b179b to bc529bf Compare June 30, 2025 13:07
@stedolan stedolan marked this pull request as ready for review June 30, 2025 13:07

@dra27 dra27 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I confirm the test now behaves correctly on ppc64 Linux!

@dra27 dra27 added the merge-me label Jun 30, 2025
@nojb nojb merged commit d7af01e into ocaml:trunk Jun 30, 2025
33 checks passed
dra27 pushed a commit that referenced this pull request Jan 10, 2026
On some OSes, you need to write more than 1MB of data to a pipe
before writes block, and read more than 64k to unblock them.

(cherry picked from commit d7af01e)
raspbian-autopush pushed a commit to raspbian-packages/ocaml that referenced this pull request Jan 24, 2026
On some OSes, you need to write more than 1MB of data to a pipe
before writes block, and read more than 64k to unblock them.

Bug-Debian: https://bugs.debian.org/1107773
Origin: ocaml/ocaml#14116

Gbp-Pq: Name Increase-the-amount-of-data-written-to-a-pipe-in-a-test.patch
raspbian-autopush pushed a commit to raspbian-packages/ocaml that referenced this pull request Feb 26, 2026
On some OSes, you need to write more than 1MB of data to a pipe
before writes block, and read more than 64k to unblock them.

Bug-Debian: https://bugs.debian.org/1107773
Origin: ocaml/ocaml#14116

Gbp-Pq: Name Increase-the-amount-of-data-written-to-a-pipe-in-a-test.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants