Repository activity
40458 results across all weeks
test(pkg): compare incremental and fresh installs after removing an overlay
Install a package with an extra source that shadows a file from its source tree, then remove the extra source and rebuild. Compare the installed file with a fresh build so the test catches stale contents without relying on the layout of the prepared source directory.
Ali Caglayan (@Alizter)test(pkg): cover duplicate install-cookie entries
Record the duplicate install-cookie entries produced when an install action copies a file also declared by its .install manifest. Cover the bin section and confirm a dependent package can still read the installed file; installation behavior is unchanged.
Ali Caglayan (@Alizter)test(pkg): cover empty directories in source overlays
Extend pkg/source-empty-dir.t with the lockfile-adjacent .files overlay case. Keep regular files as controls and correct the introduction to reflect that empty directories are currently omitted.
Rudi Grinberg (@rgrinberg)test(pkg): cover lazy package directory-target inspection
Add a regression test ensuring that inspecting a package directory target does not traverse unrelated package sources or build the queried package.
Rudi Grinberg (@rgrinberg)test(pkg): cover package environment dependencies across contexts
Reproduce stale output after the host package PATH changes, and check which environment variables rules track in opam toolchain and explicit lock contexts. Keep the Cram helper at a fixed install path so a path change cannot mask a missing file dependency.
Ali Caglayan (@Alizter)test(pkg): cover source errors before dependency expansion
Record the current behavior when a package has a missing source and its build command references a dependency variable: the source error is reported without building that dependency.
Rudi Grinberg (@rgrinberg)test(pkg): declare curl dependencies for package fixtures
Declare curl for the package and OCamlFormat Cram tests that fetch sources, rather than relying on it being available on the test runner’s PATH.
Ali Caglayan (@Alizter)test(pkg): distinguish compiler sharing between the project and dev tools
Merlin and OCaml-LSP share a compiler target with each other, but not with the project. Check the rule dependencies as well as the build counts, and distinguish the helper shared by both tools from a package used only by the project.
Ali Caglayan (@Alizter)test(pkg): distinguish recipe exports from the workspace environment
Pass FOO and BAR to a recipe through a transitive dependency. Inspect the recipe’s rule to distinguish the values its shell receives from the environment dependencies Dune records for rebuilds.
Ali Caglayan (@Alizter)test(pkg): exercise dependency search order in locked recipes
Swap two transitive dependencies that install the same command and compare the helper selected by incremental and fresh builds. Changing only the inherited PATH must not rerun the recipe.
Ali Caglayan (@Alizter)test(pkg): expose missing environment and runtime dependency edges
Inspect final rules for missing package-export environment inputs and locked executable runtime dependencies, covering managed packages, workspace actions, and both executable lookup forms. Record missing edges even when digest-qualified paths already force rebuilds; no production behavior changes.
Ali Caglayan (@Alizter)test(pkg): expose untracked host-context package exports
Inspect final-rule dependencies for exports contributed by distinct host and target lockdirs, including an explicit host PATH export. Record the current missing edges without changing production behavior.
Ali Caglayan (@Alizter)test(pkg): record source and dependency copying in package builds
Add a cram test that records current package sandboxing behavior: even when hardlink mode is preferred, Dune copies both the installed dependency and the package’s own sources. The test also verifies that an in-place edit leaves the staged source unchanged.
Rudi Grinberg (@rgrinberg)test(pkg): record which compiler Merlin sees at install time
Have mock Merlin record a marker from the compiler during installation. Changing only the project’s locked compiler recipe, without bumping its version, distinguishes using the project compiler from re-solving for the same version. With no explicit OCaml dependency, mock Merlin currently reports no-compiler both times.
Ali Caglayan (@Alizter)test(pkg): reproduce a compiler dependency mismatch in Merlin's lock
The project compiler uses compiler-cloning.enabled, but Merlin's lock currently accepts compiler-cloning.disabled at the same OCaml version. Record that mismatch without changing how Dune solves the tool lock.
Ali Caglayan (@Alizter)test(pkg): reproduce a missing compiler dependency pin in dev-tool locks
The project can lock a compiler whose compiler-support dependency exists only as a project pin. Relocking OCaml-LSP finds the pinned compiler but fails to resolve that dependency.
Ali Caglayan (@Alizter)test(pkg): reproduce autolocking failure on unrelated platforms
Capture the failure when a macOS build autolocks a macOS-only dependency: the solver also requires a Linux solution. This reproduces the regression using a local mock package repository.
Ali Caglayan (@Alizter)test(pkg): reproduce directory-order-dependent autolocking
Demonstrate unnecessary auto-locking after recreating byte-identical repository directories. The trace fields lock and package count cache misses for the auto-lock and package build rules separately.
Rudi Grinberg (@rgrinberg)test(pkg): reproduce invalidation from identical lockfile inputs
Copy identical lockfile-adjacent inputs into another lock directory and select that copy without changing the package key. The rule currently gets invalidated despite identical input contents.
Rudi Grinberg (@rgrinberg)test(pkg): reproduce missing source-tree package materialization
Record that a package dependency stages ordinary files but omits source-tree installs, while @install makes the same tree available in the flat installation. No production behavior changes.
Ali Caglayan (@Alizter)