Repository activity
40458 results across all weeks
refactor(rpc-lwt): extract the client channel module
Name the Lwt RPC client channel module instead of defining it inline in Client.Make, allowing the same transport to be reused by another client instantiation. No behavior or public API changes.
Rudi Grinberg (@rgrinberg)refactor(rules): move scoped layouts to _private
Avoid forcing context-wide install rules when loading dependency-scoped package and binary layouts by moving their views from _build/install/ to _build/_private/. Ordinary installation staging, layout keys, host selection, dependency tracking, and normal ancestor checks remain unchanged.
Ali Caglayan (@Alizter)support pin-depends from .opam.template
We already read pin-depends from .opam files when there is no (package) stanza to read from. However we don't support generating the pin-depends field, which means users put this field in the template file. For dune pkg it would probably be a good idea to interpret this file from the template file too, since the pin stanza will not correspond to anything in …
Ali Caglayan (@Alizter)test(action-plugin): cover absolute reads across build layouts
Cover generated absolute reads without forced sandboxing and compare generated and external inputs with an external build directory, reached either directly or through a symlink. Changing the generated input verifies that the symlinked case rebuilds rather than merely reuses cached output.
Rudi Grinberg (@rgrinberg)test(action-plugin): cover detached requests with one job slot
Run the existing detached-request regression with a single scheduler slot. This checks that an accepted request can finish after its client exits without starving its producer, and that its dependencies still invalidate the cached action on subsequent builds.
Rudi Grinberg (@rgrinberg)test(action-plugin): cover independent helper discovery
Exercise concurrent helper processes and a later reconnection sharing one action ID, with only one scheduler slot. Check that inputs discovered by either helper invalidate the parent action, expired IDs are rejected, and a caught helper dependency failure still fails the action.
Rudi Grinberg (@rgrinberg)test(action-plugin): exercise watch cancellation with one job slot
Run the existing cancellation regression with a single scheduler slot, checking that an in-flight dynamic dependency can be cancelled and the replacement build can complete without leaking its slot. Keep the existing expectation documenting missed subsequent invalidation.
Rudi Grinberg (@rgrinberg)test(action-plugin): expose missing package dependency inference
Compare a DAP read with a regular action declaring the same build-tree input owned by the provider package. With strict package checks enabled, the regular action reports the missing provider dependency, while DAP incorrectly succeeds both after execution and when inspecting the workspace-cached result.
Rudi Grinberg (@rgrinberg)test(action-plugin): expose untracked directory entries
Materialize subdirectories before requesting a directory listing, then add another subdirectory and compare a cached build with a forced rerun triggered by an unrelated input. This records the inconsistency between filesystem listings and the file-selector facts used for invalidation, without changing the implementation.
Rudi Grinberg (@rgrinberg)test(action-plugin): mix absolute and relative sandbox reads
Strengthen the existing sandbox regression by requesting the same generated input concurrently through relative and absolute paths. Both spellings must return identical contents across copy, hardlink, and symlink sandboxes. This is a test-only change and passes without the unmerged absolute-path implementation changes.
Rudi Grinberg (@rgrinberg)test(action-plugin): preserve watcher exit status through timeout
Preserve Dune's exit status when stopping the action-plugin watch test so uutils timeout returns the expected 130 rather than 124. Run the watchdog in the foreground to avoid duplicate signals, matching the existing trace-test workaround.
Ali Caglayan (@Alizter)test(action-plugin): reproduce nested rule-lock deadlocks
Record a dynamic dependency request deadlocking when its producer needs a lock already held by the caller. Include successful increasing-order acquisition and uncontended reverse acquisition as comparisons. The expectations preserve current behavior; this PR does not change lock handling.
Rudi Grinberg (@rgrinberg)test(boot): reproduce secondary compiler launcher failures
Reproduce the secondary-compiler bootstrap failure with spaces in compiler paths, temporary paths, and forwarded arguments. Exercise native shell commands without requiring an old compiler, and include the case in Windows test runs.
Ali Caglayan (@Alizter)test(cram): cover separation from runner temporary files
Record the current separation between Cram's internal temporary files and the directory exposed to tests as TMPDIR. Writing main.sh, 1.output, and cram.metadata inside TMPDIR must not corrupt the runner's scripts, captured output, or metadata.
Rudi Grinberg (@rgrinberg)test(digest-cache): cover missing files and symlink errors
Extend the dune internal digest-db check cram test to verify distinct errors for cached paths that become missing files, broken symbolic links, or symbolic-link cycles.
Rudi Grinberg (@rgrinberg)test(dune-site): drop result and declare build-info dependency
Declare dune-build-info as a test-only dependency for the dune-site Cram fixtures. Remove the obsolete result compatibility dependency and unused Result open from the threaded-plugin fixtures instead of adding it to the test environment.
Ali Caglayan (@Alizter)test(engine): reproduce anonymous action reruns on cache toggles
Use successful interface inference as a public end-to-end path through anonymous actions. Switching shared-cache policy currently executes ocamlc -i again with unchanged sources, arguments, and inferred interface, while repeats under one policy reuse the action.
Rudi Grinberg (@rgrinberg)test(engine): reproduce rule invalidation on shared-cache toggles
Add a plain-rule cram showing that enabling or disabling the shared cache changes rule identity and invalidates an unchanged result. Repeating the same invocation under one policy stays cached.
Rudi Grinberg (@rgrinberg)test(engine): reproduce stale external directory dependency digests
A plain path in (deps) uses file-dependency tracking even when it names an external directory. The directory is initially hashed recursively, but its cached digest is validated using only the directory inode’s own stats. Editing an existing child leaves those stats unchanged, so the rule can reuse stale output.
Rudi Grinberg (@rgrinberg)test(engine): reproduce workspace cache loss after SIGHUP
Send catchable SIGHUP during unrelated work after an ordinary rule has completed. Dune currently exits without persisting its workspace database, so the next invocation reruns the completed rule with unchanged inputs and the same rule key.
Rudi Grinberg (@rgrinberg)