Skip to content

feat: install entries concurrently - #13054

Open
anmonteiro wants to merge 4 commits into
ocaml:mainfrom
anmonteiro:anmonteiro/concurrent-install
Open

anmonteiro wants to merge 4 commits into
ocaml:mainfrom
anmonteiro:anmonteiro/concurrent-install

Conversation

@anmonteiro

@anmonteiro anmonteiro commented Dec 26, 2025 •

Copy link
Copy Markdown
Collaborator

019f7869-5535-72a1-8523-fda8f919594a

@anmonteiro
anmonteiro force-pushed the anmonteiro/concurrent-install branch from 592f3c8 to 1f032d4 Compare December 26, 2025 20:55
@anmonteiro
anmonteiro marked this pull request as ready for review December 26, 2025 21:13
Comment thread bin/install_uninstall.ml Resolved
@rgrinberg

Copy link
Copy Markdown
Member

I think you need to use Scheduler.async_exn on the underlying copying operations to get a speed up from this.

@anmonteiro anmonteiro changed the title fix: install entries concurrently feat: install entries concurrently Dec 27, 2025
@anmonteiro
anmonteiro force-pushed the anmonteiro/concurrent-install branch 4 times, most recently from 8f39014 to 8be9417 Compare July 19, 2026 22:46
@anmonteiro
anmonteiro force-pushed the anmonteiro/concurrent-install branch 8 times, most recently from 195d8c8 to 04d4a50 Compare July 26, 2026 20:14
@anmonteiro
anmonteiro force-pushed the anmonteiro/concurrent-install branch 4 times, most recently from cd6ff72 to 122764c Compare August 2, 2026 20:02
anmonteiro added a commit to anmonteiro/dune that referenced this pull request Aug 9, 2026
Different destination paths can still conflict through artifact-substitution
temporary files, symlinks, dangling symlinks, or case folding.

Add regression coverage for the existing sequential behavior. These cases were
found while making installation concurrent in ocaml#13054.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro added a commit that referenced this pull request Aug 9, 2026
Adds regression coverage for install destination aliases discovered
while working on concurrent installation in #13054.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro
anmonteiro force-pushed the anmonteiro/concurrent-install branch 2 times, most recently from d2d3f13 to ef5fad6 Compare August 21, 2026 21:38
anmonteiro added a commit to anmonteiro/dune that referenced this pull request Aug 21, 2026
Installation currently stops after the first entry that fails while copying. Add regression coverage for this behavior before changing installation concurrency in ocaml#13054.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro added a commit to anmonteiro/dune that referenced this pull request Aug 21, 2026
Add regression coverage for artifact-substitution staging paths that alias another install destination through a symlink, discovered while reviewing ocaml#13054.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro
anmonteiro force-pushed the anmonteiro/concurrent-install branch from ef5fad6 to 9074986 Compare August 21, 2026 22:32
anmonteiro added a commit that referenced this pull request Aug 23, 2026
Adds regression coverage for fail-fast installation errors discovered
while reviewing concurrent installation in #13054.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro added a commit that referenced this pull request Aug 23, 2026
Adds regression coverage for artifact-substitution staging paths that
alias install destinations through symlinks, discovered while reviewing
#13054.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Retain sequential installation when a source is a directory or when an artifact-substitution staging path aliases another path used by the install.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro
anmonteiro force-pushed the anmonteiro/concurrent-install branch from 9074986 to 2df81d4 Compare August 23, 2026 23:29
rgrinberg added a commit that referenced this pull request Nov 7, 2026
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.

Signed-off-by: Rudi Grinberg <[email protected]>

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.

3 participants