Skip to content

test(install): cover descriptor limits and unreadable sources - #16924

Merged
rgrinberg merged 1 commit into
ocaml:mainfrom
rgrinberg:push-wqylmsmstnmr
Nov 7, 2026
Merged

rgrinberg merged 1 commit into
ocaml:mainfrom
rgrinberg:push-wqylmsmstnmr

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

Add two standalone Unix cram regressions:

  • Install 300 independent files under a 128-descriptor limit and verify every file is installed without descriptor exhaustion.
  • Make a regular source unreadable after the build and verify installation fails before copying a later entry. Skip the permission-specific assertions when mode-000 files remain readable, such as when running as root.

Both pass on main and fail against #13054, covering the regressions found while reviewing concurrent installation. Neither test introduces intentional timeout waits.

Install 300 independent files under a 128-descriptor limit and verify that
all files are installed without EMFILE errors. Check that an unreadable
regular source fails installation before a later entry is copied.

Keep these as standalone Unix cram tests without intentional waits. Skip
permission-specific assertions when mode-000 files remain readable, as for
root. Both tests pass on main and fail against concurrent-install PR ocaml#13054.

Signed-off-by: Rudi Grinberg <[email protected]>
@rgrinberg
rgrinberg merged commit e27dad7 into ocaml:main Nov 7, 2026
37 of 38 checks passed
@Alizter Alizter added this to the 3.26.0 milestone Nov 8, 2026
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