Repository activity
40458 results across all weeks
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): keep unrelated package preparation lazy
Extend the existing single-package test with an unused package whose source and build program are missing, and whose exported environment refers to a dependency that fails to build. Building an unrelated package must still succeed without preparing the unused package or creating its dependency’s target directory.
Rudi Grinberg (@rgrinberg)test(pkg): replace sanitize_pkg_digest with censor
Replace sanitize_pkg_digest with censor throughout package tests and update expectations.
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 duplicate manifest and scanner install entries
Add a regression case where the install scanner and a .install manifest record the same destination under different sections. The expected cookie captures the current duplicate LIB/LIBEXEC entries; the precedence fix remains separate.
Ali Caglayan (@Alizter)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 platform-dependent package key problems
Add cram reproductions of package identity problems across platforms: different operating systems or architectures can incorrectly share a key and stale artifacts, while inactive-platform edits and equivalent lock representations cause unnecessary builds.
Rudi Grinberg (@rgrinberg)test(pkg): reproduce platform-order package rebuilds
Add an end-to-end cram reproduction showing that reordering supported platforms unnecessarily changes an ordinary package’s build key. Cover both solved_for_platforms and alternatives in an explicit platform condition.
Rudi Grinberg (@rgrinberg)test(pkg): reproduce rebuilds after job-count changes
Add an end-to-end cram showing an unchanged ordinary package action rerunning when only -j or DUNE_JOBS changes. Cover direct, interpolated, and concatenated job arguments, while retaining positive controls for source edits, literal arguments, and jobs-dependent branches.
Rudi Grinberg (@rgrinberg)test(pkg): reproduce rebuilds from non-build metadata
Show that changing only (avoid) or a system-package hint changes an ordinary package's build key and reruns its unchanged no-op action.
Rudi Grinberg (@rgrinberg)test(pkg): reproduce stale paths in opam .config variables
Opam packages can publish variables in .config for dependent build recipes. Reproduce a producer exporting an installed data-file path that retains its temporary sandbox prefix, leaving the consumer unable to read the file even though it was installed successfully. This records the existing failure without fixing path relocation.
Ali Caglayan (@Alizter)test(pkg): reproduce toolchain prefix collisions across dependency closures
Add a standalone cram with two dependency closures sharing the same top-level package lockfile. Their package digests differ, but the legacy user-wide installation destinations currently collide.
Rudi Grinberg (@rgrinberg)test(promote): repro for the install file race between contexts
Description
Shon Feder (@shonfeder)test(promote): synchronize the running-binary promotion test
The test could kill the new server after it created ready but before it printed its version, intermittently losing the expected output. Print and flush the version before publishing readiness.
Rudi Grinberg (@rgrinberg)test(rocq): use a portable shebang in package-ocamlpath.t
Use #!/usr/bin/env bash for the fake REPL helper so the Rocq OCAMLPATH test can run on systems such as NixOS without /bin/bash.
Ali Caglayan (@Alizter)test(rule-plugins): use SIGTERM to interrupt background builds
The cancellation tests start Dune in the background and then send SIGINT. Bash starts asynchronous commands with SIGINT ignored, and macOS sigwait cannot observe ignored signals. The tests therefore hang or eventually kill Dune without exercising scheduler cleanup.
Rudi Grinberg (@rgrinberg)test(rules): cover section-root directory installs
Cover a generated directory installed at share_root itself. Verify that a package dependency materializes it and that the scoped view remains readable alongside ordinary installation staging after @install.
Ali Caglayan (@Alizter)test(sandbox): expose undeclared env binaries on PATH
Record a sandboxed action finding an undeclared env (binaries ...) binary through PATH after another rule has built the binding.
Rudi Grinberg (@rgrinberg)test: declare build-info dependencies for nested fixtures
Give the versioning, PPX, and promotion Cram fixtures explicit dune-build-info dependencies so their nested builds can resolve the library without relying on an ambient installation. Existing expected outputs are unchanged.
Ali Caglayan (@Alizter)test: declare packages used by PPX and inline-test fixtures
Declare ppxlib, ppx_inline_test, and cinaps dependencies for the Cram fixtures that use them, including the shared instrumentation setup. Nested builds then receive the required libraries through their package environment rather than relying on ambient or transitive visibility.
Ali Caglayan (@Alizter)