Repository activity
40458 results across all weeks
test(bwrap): cover missing backends and command failures
Add Linux-only cram coverage for missing commands, unavailable bubblewrap backends, and backend failures in dune internal with-bwrap. A fake backend verifies argument boundaries and exit-status propagation without creating a user namespace.
Rudi Grinberg (@rgrinberg)test(cache): cover no-op trimming and mixed cache entries
Extend cache-trimming blackbox tests to pin existing behavior for zero and negative trimming goals, mixed cache versions, directory-only metadata, ignored filenames and shards, and oversized goals including zero-byte artifacts.
Rudi Grinberg (@rgrinberg)test(cache): pin metadata validation before specializing garbage collection
Extend cache-trimming tests across supported metadata versions to cover empty and directory-only metadata, header extensions, repeated references, uppercase digests, and malformed entries.
Rudi Grinberg (@rgrinberg)test(cache): preserve mixed-version metadata when trimming to size
Extend cache-trimming coverage to artifacts with the same digest in both v3 and v4. Keep the v3 artifact live via a hardlink and verify that trimming removes only the unused v4 copy, preserving v3 metadata while collecting v4/v5 metadata.
Rudi Grinberg (@rgrinberg)test(configurator): cover CRLF process logging
Add a test through the public Configurator API using a real shell to verify CRLF normalization, empty log lines, and embedded carriage returns, while preserving raw stdout and stderr bytes.
Rudi Grinberg (@rgrinberg)test(configurator): cover missing and malformed Dune metadata
Extend the existing Configurator test by invoking its C-test executable without Dune metadata and with synthetic malformed metadata. Cover invocation outside Dune, old Dune protocols, missing or invalid configurator.v2 data, malformed ocamlc fields, and absent compiler configuration variables.
Rudi Grinberg (@rgrinberg)test(copy_files): demonstrate promoted source matching
Add cram coverage showing that (copy_files (only_sources true) ...) excludes a missing promoted target, includes it once it has been promoted into the source tree, and continues to exclude unpromoted generated files.
Rudi Grinberg (@rgrinberg)test(cram): cover quoted setup-script paths
Extend the existing cram setup-script test with a filename containing an apostrophe. Verify that Bash can load the helper and run the test, exercising shell escaping of setup-script paths in the generated script.
Rudi Grinberg (@rgrinberg)test(cram): diagnose unavailable selected shells
Check that a cram test selecting sh reports a useful error when that shell is absent from PATH.
Rudi Grinberg (@rgrinberg)test(cram): preserve OCAMLLIB when restricting PATH
The missing-shell test symlinks the OCaml tools into a restricted PATH. On macOS, a relocatable compiler can then look for its standard library relative to the symlink and fail during context initialization, before reaching the expected missing-shell error.
Rudi Grinberg (@rgrinberg)test(dialects): cover extension and implementation-kind errors
Extend the existing dialect cram tests to reject extensions containing directory separators and verify that omitting (implementation) requires Dune language 3.9 or newer.
Rudi Grinberg (@rgrinberg)test(engine): characterize dependency-set digest encoding
Pin the digest encoding for each dependency kind, the empty set, and mixed sets in both insertion orders before simplifying the encoder.
Rudi Grinberg (@rgrinberg)test(engine): characterize rule dependency path kinds
Add an expect test covering Dep.file and Dep.file_selector with source, build, and external paths. Record the current behavior: all six combinations are accepted.
Rudi Grinberg (@rgrinberg)test(engine): cover identical source replacements
Add a baseline test that replaces a source file with a new file containing identical bytes and verifies that its dependent rule does not rerun. Check the resulting output, then change the contents to verify that the rule does rerun.
Rudi Grinberg (@rgrinberg)test(engine): cover parallel restoration of success prefixes
Cover parallel restoration of a warmed success prefix and its sibling after invalidation, including preservation of the parent through cutoffs.
Antonio Nuno Monteiro (@anmonteiro)test(engine): cover reassigned multi-target cache outputs
Exercise cache ownership when a non-head output moves from a multi-target rule to another rule, then back.
Rudi Grinberg (@rgrinberg)test(engine): cover source-copy watch invalidation
Add standalone watch-mode coverage for:
Rudi Grinberg (@rgrinberg)test(engine): preserve source-copy behavior before refactoring
Add characterization tests for source-backed target replacement and hints, source-copy freshness and executable-bit changes, unsupported FIFO sources, and promotion event suppression after artifact substitution.
Rudi Grinberg (@rgrinberg)test(findlib): cover installed library listings
Add a self-contained cram test for dune installed-libraries, covering versioned and unversioned META subpackages and the flat META layout.
Rudi Grinberg (@rgrinberg)test(melange): cover compound Merlin dialect suffixes
Reproduce reader and fallback lookup failures for compound dialect suffixes in OCaml and Melange conditional sources.
Antonio Nuno Monteiro (@anmonteiro)