-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[new release] dune (15 packages) (3.20.0~alpha3) #28302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
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
CHANGES: ### Fixed - Stop re-running cram tests after promotion when it's not necessary (ocaml/dune#11994, @rgrinberg) - fix: `$ dune subst` should not fail when adding the version field in opam files (ocaml/dune#11801, fixes ocaml/dune#11045, @btjorge) - Kill all processes in the process group after the main process has terminated; in particular this avoids background processes in cram tests to stick around after the test finished (ocaml/dune#11841, fixes ocaml/dune#11820, @Alizter, @Leonidas-from-XIV) ### Added - `(tests)` stanzas now generate aliases with the test name. To run `(test (name a))` you can do `dune build @runtest-a`. (ocaml/dune#11558, grants part of ocaml/dune#10239, @Alizter) - Inline test libraries now produce aliases `runtest-name_of_lib` allowing users to run specific inline tests as `dune build @runtest-name_of_lib`. (ocaml/dune#11109, partially fixes ocaml/dune#10239, @Alizter) - feature: `$ dune subst` use version from `dune-project` when no version control repository has been detected (ocaml/dune#11801, @btjorge) - Allow `dune exec` to run concurrently with another instance of dune in watch mode (ocaml/dune#11840, @gridbugs) - Introduce `%{os}`, `%{os_version}`, `%{os_distribution}`, and `%{os_family}` percent forms. These have the same values as their opam counterparts. (ocaml/dune#11863, @rgrinberg) - Introduce option `(implicit_transitive_deps false-if-hidden-includes-supported)` that is equivalent to `(implicit_transitive_deps false)` when `-H` is supported by the compiler (OCaml >= 5.2) and equivalent to `(implicit_transitive_deps true)` otherwise. (ocaml/dune#11866, fixes ocaml/dune#11212, @nojb) - Add `dune describe location` for printing the path to the executable that would be run (ocaml/dune#11905, @gridbugs) - `dune runtest` can now understand absolute paths as well as run tests in specific build contexts (ocaml/dune#11936, @Alizter). - Added 'empty' alias which contains no targets. (ocaml/dune#11556 ocaml/dune#11952 ocaml/dune#11955 ocaml/dune#11956, grants ocaml/dune#4161, @Alizter and @rgrinberg) - Allow `dune promote` to properly run while a watch mode server is running (ocaml/dune#12010, @ElectreAAS) - Add `--alias` and `--alias-rec` flags as an alternative to the `@@` and `@` syntax in the command line (ocaml/dune#12043, fixes ocaml/dune#5775, @rgrinberg) - Added a `(timeout <float>)` field to the `(cram)` stanza to specify per-test time limits. Tests exceeding the timeout are terminated with an error. (ocaml/dune#12041, @Alizter) ### Changed - Format long lists in s-expressions to fill the line instead of formatting them in a vertical way (ocaml/dune#10892, fixes ocaml/dune#10860, @nojb) - Switch from MD5 to BLAKE3 for digesting targets and rules. BLAKE3 is both more performant and difficult to break than MD5 (ocaml/dune#11735, @rgrinberg, @Alizter) - Print a warning when `dune build` runs over RPC (ocaml/dune#11833, @gridbugs) - Stop emitting empty module group wrapper `.js` file in `melange.emit` (ocaml/dune#11987, fixes ocaml/dune#11986, @anmonteiro)
Member
This was referenced Aug 7, 2025
|
@mseri That looks like a real regression. We will investigate. |
Contributor
Author
This was referenced Aug 7, 2025
This was referenced Aug 11, 2025
Contributor
Author
15 tasks
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.
Fast, portable, and opinionated build system
CHANGES:
Fixed
Stop re-running cram tests after promotion when it's not necessary (fix(cram): do not re-run tests unnecessarily dune#11994,
@rgrinberg)
fix:
$ dune substshould not fail when adding the version field in opamfiles (Fix #11045 dune#11801, fixes Regression in #11028 when using
dune subston a project with an opam file dune#11045, @btjorge)Kill all processes in the process group after the main process has
terminated; in particular this avoids background processes in cram tests to
stick around after the test finished (Terminate process group after cram execution dune#11841, fixes Background tasks in Cram tests are not terminated dune#11820, @Alizter,
@Leonidas-from-XIV)
Added
(tests)stanzas now generate aliases with the test name. To run(test (name a))you can dodune build @runtest-a. (feature: tests stanzas produce aliases dune#11558, grants part of Automatically add aliases for expect tests dune#10239,@Alizter)
Inline test libraries now produce aliases
runtest-name_of_liballowing users to run specific inline tests as
dune build @runtest-name_of_lib. (feature: add aliases for inline tests dune#11109, partially fixes Automatically add aliases for expect tests dune#10239, @Alizter)feature:
$ dune substuse version fromdune-projectwhen no versioncontrol repository has been detected (Fix #11045 dune#11801, @btjorge)
Allow
dune execto run concurrently with another instance of dune in watchmode (Allow concurrent exec with watch mode dune#11840, @gridbugs)
Introduce
%{os},%{os_version},%{os_distribution}, and%{os_family}percent forms. These have the same values as their opam counterparts.
(feature: share os family of vars with rules dune#11863, @rgrinberg)
Introduce option
(implicit_transitive_deps false-if-hidden-includes-supported)that is equivalent to
(implicit_transitive_deps false)when-Hissupported by the compiler (OCaml >= 5.2) and equivalent to
(implicit_transitive_deps true)otherwise. (Add(implicit_transitive_deps false-if-hidden-includes-supported)dune#11866, fixes Enable(implicit_transitive_deps false)only if OCaml version supports-H? dune#11212, @nojb)Add
dune describe locationfor printing the path to the executable thatwould be run (Looking up paths to executables with
dune describe locationdune#11905, @gridbugs)dune runtestcan now understand absolute paths as well as run tests inspecific build contexts (feat(runtest): support absolute paths dune#11936, @Alizter).
Added 'empty' alias which contains no targets. (feature: empty alias dune#11556 fix: empty alias check for 3.20 dune#11952 test: empty alias in alias stanza dune#11955 doc: document empty alias dune#11956,
grants an empty target for easier scripting dune#4161, @Alizter and @rgrinberg)
Allow
dune promoteto properly run while a watch mode server is running([RPC] Allow promotion while watch server is running dune#12010, @ElectreAAS)
Add
--aliasand--alias-recflags as an alternative to the@@and@syntax in the command line (feature: add --alias as an argument for building aliases dune#12043, fixes Current Dune alias syntax can't work reliably on Windows dune#5775, @rgrinberg)
Added a
(timeout <float>)field to the(cram)stanza to specify per-testtime limits. Tests exceeding the timeout are terminated with an error.
(feat(cram): timeout for cram tests dune#12041, @Alizter)
Changed
Format long lists in s-expressions to fill the line instead of
formatting them in a vertical way (Tweak dune file formatting: avoid pure vertical layout when formatting wrapped lists dune#10892, fixes auto formatting of
runshouldn't split its content into one word per line dune#10860, @nojb)Switch from MD5 to BLAKE3 for digesting targets and rules. BLAKE3 is both more
performant and difficult to break than MD5 (Switch to BLAKE3 dune#11735, @rgrinberg, @Alizter)
Print a warning when
dune buildruns over RPC (Display a warning when dune builds via RPC dune#11833, @gridbugs)Stop emitting empty module group wrapper
.jsfile inmelange.emit(melange: don't emit module group wrapper as a JS file in
melange.emitdune#11987, fixes test(melange): show melange emits the (empty) module group wrapper dune#11986, @anmonteiro)