Repository navigation
Conversation
Signed-off-by: Shon Feder <[email protected]>
Signed-off-by: Shon Feder <[email protected]>
Add a cram reproducer for the regression from #16362, recording the failure for a local package dependency under `(lang dune 2.0)` and a successful 2.9 control. Upstreams anmonteiro#216. Signed-off-by: Antonio Nuno Monteiro <[email protected]> (cherry picked from commit 2bc82b9) Signed-off-by: Ali Caglayan <[email protected]>
Preserve the Dune 2.9 gate for explicitly requested installed packages while allowing installed packages discovered through a local package's library closure on older language versions. Alternative to #16528. Signed-off-by: Antonio Nuno Monteiro <[email protected]> (cherry picked from commit 3563028) Signed-off-by: Ali Caglayan <[email protected]>
Reproduction case for #16521 Signed-off-by: Shon Feder <[email protected]>
It is an established convention for artifacts to end up in _build that are not tracked by dune's build engine, so long as they stay out of dune's workspace contexts or its private directories. Dune itself does this with its trace files, but we also see this with oxcaml, which puts artifacts in a _build/_bootinstall (e.g., in https://github.com/oxcaml/oxcaml/blob/main/Makefile.common-ox#L216-L228). It is reasonable, and convenient for users, for dune to to allow this. However, oxcaml happens to be locating a built compiler in that location, which caused the fix in #16374 to produce a regression when building the oxcaml trunk for the following reason: the fix in #16374 ensured that the stdblib provided by portable compilers via dune package management was made accessible in sandboxed builds cross all supported platforms (as far as we know). To achieve this, it localizes the path to the stdlib *if* the stdlib is in the build directory. This is reasonable to do under the assumption that anything within the _build directory is managed by dune's build. However, this invariant does not hold, as shown by the the convention of putting stuff that is not part of dune's build in the root of the _build directory. This fix weakens the assumption, so that now only stdlibs located within a registered *context* within the _build directory get localized. The required invariant should indeed hold in that case, and we avoid the build failure on oxcaml (or any other project doing similar things). Signed-off-by: Shon Feder <[email protected]>
The oxcaml trunk builds started failing with dune. I think this was after https://github.com/oxcaml/oxcaml/pull/6562/changes#diff-6cff31f46da42c5f179cda29f9fe7f8dbb6441dcb4d1bd5bfa0a2b9070d87325R107 which ends up leading to tests being build on run on C++, if it's available (as per the target at https://github.com/oxcaml/oxcaml/pull/6562/changes#diff-84be0d67b9397fd509a12b5fbc24ec217c1a8f3900388234f6a2a28d102211bbR1266) `NIX_CFLAGS_COMPILE` apparently get passed to during both C++ and C compilation, but `-std=gnu17` is not valid for C++, leading to the error ``` cc1plus: error: command-line option '-std=gnu17' is valid for C/ObjC but not for C++ [-Werror] cc1plus: all warnings being treated as errors ``` As per NixOS/nixpkgs#79303, `CFLAGS` (resp. `CXXFLAGS` should be preferred). Applying that fix here allows us to get a clean build of the oxcaml trunk with dune. Signed-off-by: Shon Feder <[email protected]>
Backport #16582. Signed-off-by: Ali Caglayan <[email protected]>
Revert #16562, refresh the Nix flake lock, and promote the ppxlib 0.39 describe snapshots. Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Backport #16589. Signed-off-by: Ali Caglayan <[email protected]>
Backport #16589 to `3.25.0-rc` to restore bootstrapping with OxCaml trunk.
Backport #16566 onto 3.25
Restore the builder revision used before the flake refresh in #16566. The newer overlay builds dependencies with 3.26 dune-package metadata, which the 3.25 release binary cannot read. Keep the updated package set and dependency checks enabled. Signed-off-by: Ali Caglayan <[email protected]>
Subscribe PR workflows to edited events so changing the base branch runs checks against the new merge commit. Keep existing events and branch/path filters. #16593 passed CI against main before being retargeted to 3.25.0-rc. No new CI run started, so the Nix metadata incompatibility was missed. Title and body edits also trigger checks. (cherry picked from commit 1287d06) Signed-off-by: Ali Caglayan <[email protected]>
The Nix jobs fail because dependencies have 3.26 `dune-package` metadata, which the 3.25 RC cannot read. Restore the Dune builder used before #16566, without reverting the rest of the package updates. Build and format checks, microbenchmarks, ctypes/describe tests, and native Rocq smoke tests pass locally.
Closed
Backport of #16602. Rerun PR checks when the base branch changes, closing the gap that let #16593 pass CI against `main` before merging into `3.25.0-rc`. Title/body edits also rerun checks. Existing events and branch/path filters are unchanged. Workflow generation, YAML triggers, `@check` and `@fmt` pass using the compatible Nix shell from #16599. That PR fixes the separate release-branch Nix dependency issue.
Cover direct and transitive plugin loading alongside an unused proof. Record the complete layout dependencies and unnecessary recompilation before layout sharing. (cherry picked from commit ebc5110) Signed-off-by: Ali Caglayan <[email protected]>
Inspect discovery and compilation rules before grouping, retaining the conservative proof rebuild behavior as the baseline. Check plugin files inside a fresh discovery sandbox and exclude root-section proof outputs. (cherry picked from commit 5df1fcf) Signed-off-by: Ali Caglayan <[email protected]>
Inspect direct-file and group counts for the root-section sandbox and cycle regression. Require any selectors to be unconditional, avoiding literal-name filters that scan a name list for every generated file. (cherry picked from commit 053b294) Signed-off-by: Ali Caglayan <[email protected]>
Backport #16622 to 3.25.0-rc. Share Lib and Libexec dependencies using sandbox-safe generated-file selectors in all-library directories. Construct groups lazily in the existing layout-entry memo, retaining explicit dependencies for directory entries and mixed directories. Preserve dependency selection and rebuild behavior. Keep dependency narrowing and environment construction out of this backport. Correct the changelog fragment reference to the original PR, #16622. (cherry picked from commit 673da21) Signed-off-by: Ali Caglayan <[email protected]>
…#16647) Backport #16622 to `3.25.0-rc`, reducing repeated Rocq plugin-layout dependency processing in unchanged builds. Related to the performance regression discussed in #16543; tracked in #15593. Includes the three existing regression-test commits before the fix: conservative proof invalidation, shared layout dependencies and actual sandbox inputs, and mixed-directory dependency representation. The implementation, tests, and developer documentation match the merged PR. The changelog fragment is renamed to `16622.md` and corrected to reference #16622 rather than #16543. No dependency narrowing, environment-construction optimization, or engine changes are included. Existing dependencies and rebuild behavior are preserved. Validation using the release branch's Nix environment (including #16599's dependency-builder pin): - `@check`, `@fmt`, and `@runtest-rocq` pass on all four commits. - Package-materialization tests pass on the final commit. Full `@runtest` was not run; validation was limited to the focused checks above.
This is a cram test to reproduce a bug where building a rule that runs a binary fails with a symlink error, when the rule also has a `(deps ...)` entry for the package that provides that binary. (cherry picked from commit d7a5e9b) Signed-off-by: Puneeth Chaganti <[email protected]> Signed-off-by: Ali Caglayan <[email protected]>
Compare directory-only and overlapping directory/file dependencies in symlink, copy, and hardlink sandboxes, checking the generated input first. (cherry picked from commit 828322b) Signed-off-by: Ali Caglayan <[email protected]>
Check the build exit status independently of output filtering. Normalize only the known Linux unlink/EISDIR and macOS link/EPERM diagnostics, retaining the destination path and dependency context so unexpected failures remain visible. (cherry picked from commit cf99e35) Signed-off-by: Ali Caglayan <[email protected]>
Exercise directory copies with ordinary file dependencies in symlink, copy, and hardlink sandbox modes. Record the symlink-mode rejection of sandbox file links before the action-copy fix. Also compare original input symlinks and an action-created link with the sandbox target text at another path across all three modes. (cherry picked from commit f7a22eb) Signed-off-by: Ali Caglayan <[email protected]>
Allow Io.copy_file to choose if files are able to overwritten. (cherry picked from commit 14b36d3) Signed-off-by: Ali Caglayan <[email protected]>
Extend the recursive-copy tests from #16653 with two action-created directory symlinks: an acyclic link pointing outside the copied tree, and a directory-link cycle. Record their current rejection ahead of relaxing symlink handling. The acyclic case should eventually copy successfully; the cyclic case must continue to terminate with an error. Tests only; no implementation changes. Related to #16675. (cherry picked from commit c5d4f33) Signed-off-by: Rudi Grinberg <[email protected]> Signed-off-by: Ali Caglayan <[email protected]>
Make recursive copy actions follow symlinks, matching ordinary file copies and the existing root-path handling. Linked files and directories are materialized at the destination rather than rejected. This fixes recursive copies of file dependencies in symlink sandboxes and supports the traversal change in #16675. Update the regressions from #16653 and #16685; directory-link cycles still fail with ELOOP. (cherry picked from commit f1a8aba) Signed-off-by: Ali Caglayan <[email protected]>
Exercise a directory copy action with a generated directory dependency, without Melange or package management. Record the current behavior in symlink, copy, and hardlink sandbox modes before changing input traversal. (cherry picked from commit 04f4c03) Signed-off-by: Ali Caglayan <[email protected]>
Extend Puneeth’s reproducer from #16546 to cover #16547 under copy sandboxing too. Record the overlapping-input failure and verify that removing the explicit package dependency lets both modes succeed. Tests only; this precedes #16675. (cherry picked from commit ffed146) Signed-off-by: Ali Caglayan <[email protected]>
Create real directories for copy, symlink, and hardlink sandbox inputs. Use Tree_copy for traversal and apply the selected mode only to files. Keep patch-back directory handling and overlap deduplication unchanged. Copy mode continues to reject overlapping files. Directory copy actions work under symlink sandboxing with the recursive symlink handling from #16686. (cherry picked from commit 42895b1) Signed-off-by: Ali Caglayan <[email protected]>
Record the copy-mode failure with dependencies on a directory, one of its subdirectories, and a file inside both. Include a similarly named sibling that sorts between the directory and its descendants, and check that empty directories are preserved. Symlink and hardlink modes expose the expected inputs, but copy mode reports File exists before the action starts. (cherry picked from commit a221aee) Signed-off-by: Ali Caglayan <[email protected]>
(cherry picked from commit d4046e7) Signed-off-by: Ali Caglayan <[email protected]>
(cherry picked from commit 2d02f36) Signed-off-by: Ali Caglayan <[email protected]>
Skip sandbox inputs that have an ancestor in the same dependency set. Populating a directory already includes its descendants, so processing those paths again duplicates work and fails in copy mode with File exists. Reuse the ancestor check from dynamic dependency population. Keep the full dependency set for subsequent requests and correction handling, and retain the existing protection for action-modified files. Turn the package dependency reproducer (#16733, issue #16547) and the simple and nested directory-overlap tests from recorded failures into success. This follows the shared-traversal change in #16675. (cherry picked from commit 0883b73) Signed-off-by: Ali Caglayan <[email protected]>
Backport #16632, #16686, #16675, #16813, #16814 and #16806 with their original regression tests. All 14 upstream source patches are preserved, with original authorship and cherry-pick references. Replaces #16832. Build/format and regression checks pass at every commit. Full-suite checks hit local jq-helper and bubblewrap permission failures.
#16859) Since #14373, actions no longer see `_build/install/<context>/{bin,lib,lib/stublibs}` on `PATH`, `OCAMLPATH`, or `CAML_LD_LIBRARY_PATH` unless they declare the packages they use with `(deps (package <pkg>))`. This effects a breaking change, which was originally noted in the changelog, but was dropped when the entry was rewritten in c5ad5cc. As a result, the 3.25 changelog doesn't currently tell users why tests that require the package under test start failing, or what to do about it. This restores the note as its own bullet, next to the one on library closures, and announces it as a breaking change. ## Related Issue and Motivation Context explaining both how this change causes breakage, and why the behavior is intended, can be found at #16617. There are also a number of related upstream fixes and test bounds in opam-repository (e.g., ocaml/opam-repository#31051). I'll cherry pick this onto the RC for #15593 once merged. (cherry picked from commit 2b2eb3e) Signed-off-by: Shon Feder <[email protected]>
Signed-off-by: Shon Feder <[email protected]>
…6946) #16464 changed how module opens are handled during inference, triggered during menhir rules. This offers a minimal repro of the related errors detected in the 3.25.0~alpha1 revdeps run at ocaml/opam-repository#31082. The related failure in CI is https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/6b2dc4292a7fe02b2ac183f092630bee19d98729/variant/compilers,4.14,dune.3.25.0~alpha1,revdeps,melange.3.0.0-414 @anmonteiro, since this is only affecting melange and apparently only on 4.14, and since (if my debugging is correct) it follows from a change you introduced, I think you are best positioned to evaluate the impact. Is this something we should fix and backport before releasing #16520 do you think? Is the needed fix clear to you? Signed-off-by: Shon Feder <[email protected]> (cherry picked from commit fe9ecca) Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Fix Menhir inference for imported types that refer to guarded alias modules. Fixes the regression from #16464 reproduced in #16946. 01a1b975-a696-7a32-bc0a-070cda37a5af --------- Signed-off-by: Antonio Nuno Monteiro <[email protected]> (cherry picked from commit 0e05bfa) Signed-off-by: Antonio Nuno Monteiro <[email protected]>
62 tasks done
Member
Author
|
The oxcaml failure is due to tests needing updates for oxcaml, not a problem with the release, and the mirage revdep failure is a problem with the github action configuration. |
Signed-off-by: Shon Feder <[email protected]>
Signed-off-by: Shon Feder <[email protected]>
anmonteiro
pushed a commit
to anmonteiro/dune
that referenced
this pull request
Nov 14, 2026
For ocaml#16604 Signed-off-by: Shon Feder <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release branch for #15593