Repository navigation
[3.25.0] release - #16520
Closed
shonfeder wants to merge 15 commits into
Closed
[3.25.0] release#16520shonfeder wants to merge 15 commits into
shonfeder wants to merge 15 commits into
Conversation
Signed-off-by: Shon Feder <[email protected]>
Signed-off-by: Shon Feder <[email protected]>
Member
Author
|
For visibility: #16543 claims to fix a 5x performance regression in this release on a zero build for Rocq — even if you distrust me or agents (understandable), the initial report was from @rlepigre-skylabs-ai . |
62 tasks done
Add a cram reproducer for the regression from ocaml#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 ocaml#16528. Signed-off-by: Antonio Nuno Monteiro <[email protected]> (cherry picked from commit 3563028) Signed-off-by: Ali Caglayan <[email protected]>
…l#16558) Backport ocaml#16529 to `3.25.0-rc`, including the regression test from ocaml#16526.
Reproduction case for ocaml#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 ocaml#16374 to produce a regression when building the oxcaml trunk for the following reason: the fix in ocaml#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 ocaml#16582. Signed-off-by: Ali Caglayan <[email protected]>
Backport ocaml#16582 to 3.25.0-rc: add a fresh Dune bootstrap with OxCaml main to the existing RC/manual job. CI-only; does not include the unmerged fix in ocaml#16589.
Revert ocaml#16562, refresh the Nix flake lock, and promote the ppxlib 0.39 describe snapshots. Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Backport ocaml#16589. Signed-off-by: Ali Caglayan <[email protected]>
Backport ocaml#16589 to `3.25.0-rc` to restore bootstrapping with OxCaml trunk.
Backport ocaml#16566 onto 3.25
Member
Author
|
Replacing this with #16604 -- this one ended up being branched off my fork, which is not ideal. |
anmonteiro
pushed a commit
that referenced
this pull request
Nov 8, 2026
…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]>
anmonteiro
pushed a commit
that referenced
this pull request
Nov 8, 2026
…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]>
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