Repository activity
40458 results across all weeks
fix(site): expose package sites through the action environment
Make site data and plugin metadata available to build actions through their declared package dependencies, not the shared install staging tree. Inherited locations remain fallbacks, and dune exec retains its staging lookup.
Ali Caglayan (@Alizter)menhir: missing dep for inferred mli
@trefis reported a race which can sometimes cause menhir generated parsers to fail to build with dune, because some of their dependencies are not tracked: Menhir compilation involves a call to ocamlc -i that may produce references to hidden module names (__), which Dune doesn't recognize as non-generated code shouldn't refer to those explicitly. In practice …
art-wperf(boot): reuse the OCaml compiler GC defaults
Bootstrap now shares the compiler GC defaults used by regular Dune builds. It sets s=2M and adds Xsmall_heap_limit on OCaml 5.5 or newer (16777216 on 64-bit, 33554432 on 32-bit). Bootstrap leaves explicit OCAMLRUNPARAM or CAMLRUNPARAM values untouched.
Rudi Grinberg (@rgrinberg)perf(engine): skip filesystem watch tracking in batch builds
One-shot builds never install a file watcher, but filesystem reads can still create Memo cells and queue paths while waiting for one. Tell Fs_memo at startup that no watcher is coming, before reading the workspace. Watch-mode initialization is unchanged.
Rudi Grinberg (@rgrinberg)perf(jsoo): defer module compiler action construction
Defer JS/Wasm module action graph construction until the target is requested, avoiding unused graph allocation in native and bytecode-only builds.
Antonio Nuno Monteiro (@anmonteiro)perf(melange): reuse compiler GC defaults for source compilation
Reuse #16914's minor-heap and major-GC defaults for Melange source compilation, preserving explicit runtime settings.
Antonio Nuno Monteiro (@anmonteiro)perf(pkg): copy only package sources in link-based sandboxes
Package builds currently force copy sandboxing, which duplicates the installed files of every transitive dependency for each build. Let Dune select the sandbox mode and give only the package’s own sources private, writable copies before running its commands. In symlink and hardlink modes, the installed dependencies stay linked; selecting copy mode still co…
Rudi Grinberg (@rgrinberg)perf(source): share Memo specifications across source-tree children
Add Memo.node_staged to create fresh nodes sharing one specification without a memoization table. Use it for physical and virtual source-tree children, preserving independent node identities and deferred virtual-path construction. Leave the singleton root unchanged.
Rudi Grinberg (@rgrinberg)refactor(cli): share single-file RPC builds
Use the same single-file RPC build helper for dune exec and developer tools. Both callers encode the target and handle the build result the same way, with no change to when they use the running server.
Rudi Grinberg (@rgrinberg)refactor(cli): share toplevel context selection
Share the context argument and lookup between the directory and module toplevel commands. Both commands keep the same context selection behavior.
Rudi Grinberg (@rgrinberg)refactor(configurator): share quoted-string escape writes
Reuse the backslash write for named, template, and decimal escapes in the configurator’s standalone quoted-string encoder. The encoded output stays the same.
Rudi Grinberg (@rgrinberg)refactor(digest): reuse stat-aware digesting in the async wrapper
Use path_with_stats for both synchronous and background digesting instead of repeating its setup in the async wrapper. The background scheduling decision is unchanged.
Rudi Grinberg (@rgrinberg)refactor(engine): construct default execution parameters directly
Construct the default execution parameters as a record instead of forwarding every field through a private constructor with one caller. All defaults stay the same.
Rudi Grinberg (@rgrinberg)refactor(engine): remove source-copying rules
Revives #14535.
Rudi Grinberg (@rgrinberg)refactor(engine): reuse array-based process execution
Convert list arguments once and delegate to the existing array-based runner. Share the error-reporting path for commands expected to return one line, while keeping the existing messages for empty and multiline output.
Rudi Grinberg (@rgrinberg)refactor(engine): share build subtree cleanup
Rule execution, stale-directory pruning, and dune clean with explicit paths all invalidate cached subtree digests before deleting build artifacts. Put both steps in Rule_cache.Workspace_local.delete_subtree so callers cannot forget the invalidation. No behavior change.
Rudi Grinberg (@rgrinberg)refactor(engine): share running-job state updates
Share the deferred state write and event stamp between job starts and stops, while keeping their distinct validity checks and error messages.
Rudi Grinberg (@rgrinberg)refactor(engine): share the action extension signature
Declare the common action extension fields once and use that signature for the extension functor. The full action specification still adds the dynamic flag.
Rudi Grinberg (@rgrinberg)refactor(fiber): share and inline scheduler error collection
Share error context construction across error collection and finalization. Keep collect outside the recursive scheduler group and mark it [@inline always] so the native compiler can inline it. Each path still uses its own continuation and tail-calls exec_fiber_thunk directly.
Rudi Grinberg (@rgrinberg)refactor(fiber): share pool runner resumption
Use the same state transition to resume the pool runner after submitting a task or closing the pool. The existing checks for a closed pool stay in place.
Rudi Grinberg (@rgrinberg)