Repository activity
40458 results across all weeks
refactor(engine): keep rule-loader map operations out of build configuration
Inline subdirectory lookup and directory-key traversal in the rule loader, their sole consumer.
Rudi Grinberg (@rgrinberg)refactor(engine): keep the active request in the loop state
Store the active request alongside its run ID in the building/restarting loop state, removing the independently maintained current_request field. Completion cancellation, goal counts, and run-ID reporting read from that state.
Rudi Grinberg (@rgrinberg)refactor(engine): record dynamic dependency digests during execution
Keep dynamic-dependency bookkeeping in the build system instead of passing facts through Action_exec and returning them to the caller for hashing.
Rudi Grinberg (@rgrinberg)refactor(engine): remove unused build-only subdirectory empty value
Remove the unused Build_config.Gen_rules.Build_only_sub_dirs.empty value and its interface declaration. Keep the singleton and union operations that have callers.
Rudi Grinberg (@rgrinberg)refactor(engine): specialize action usefulness to memoization
Action usefulness is only queried for memoization, but the traversal and extension specs still accept a memoize flag for an unused alternative mode.
Rudi Grinberg (@rgrinberg)refactor(engine): update promoted-file deletion state directly
Inline the promoted-file deletion database update into To_delete.add instead of routing it through a callback returning an option. Remove modify_db and set_db, while preserving the existing behavior: mark the database dirty only when a previously untracked path is added.
Rudi Grinberg (@rgrinberg)refactor(engine): use rule-generation result constructors directly
Use Rules, Redirect_to_parent, and Unknown_context directly instead of the equivalent helper functions. Reuse no_rules for empty results and remove the redundant helpers from the engine API.
Rudi Grinberg (@rgrinberg)refactor(install): compute install entries per package
Memoize a package's install entries per (context, package) instead of once for the whole workspace. Stanzas are filtered by their owning package before their install entries are computed, so asking for one package no longer computes the entries of every other package's stanzas.
Puneeth Chaganti (@punchagan)refactor(melange): share library metadata during emission
Resolve each library's metadata once and share it across Melange JS-emission helpers.
Antonio Nuno Monteiro (@anmonteiro)refactor(rules): replace redundant generated-rule helpers
Remove the rules_for and map_rules wrappers from dune_rules/import.ml. Use the existing rule constructors at the three rules_for call sites, and express the sole map_rules use with combine instead of a callback.
Rudi Grinberg (@rgrinberg)refactor(rules): return generated-rule results directly from opam generation
Return Gen_rules.no_rules for directories without opam rules and a generated-rule result directly otherwise. The caller can then combine results without an option match or payload wrapper.
Rudi Grinberg (@rgrinberg)refactor(stdune): handle symlink collisions using EEXIST
Try symlink creation first and handle EEXIST only when overwriting is allowed. Preserve the existing overwrite policy.
Ali Caglayan (@Alizter)refactor(stdune): rename and move shared tree traversal
Rename Tree_copy to Tree_traversal and move it to Stdune. No behavior change.
Ali Caglayan (@Alizter)refactor(watch): key the sync table by sync IDs
Use Sync.Id.t rather than string filenames as the keys for pending watcher synchronizations. Parse event basenames at the watcher boundary, accepting only canonical decimal spellings so filename matching stays unchanged.
Rudi Grinberg (@rgrinberg)test(action): cover copy destination parent creation
Cover nested file destinations and recursive nested/empty directories.
Ali Caglayan (@Alizter)test(cache): cover artifact stat failures during trimming
Add one ordinary cache artifact and a validly named dangling symlink. Verify that cache size and trimming ignore the failed stat, count and remove the ordinary artifact correctly, and leave the dangling entry untouched.
Rudi Grinberg (@rgrinberg)test(cache): cover nonzero cache size limits
Ali Caglayan (@Alizter)test(cache): pin hexadecimal entry-name validation
Pin existing hexadecimal cache-entry validation before optimizing enumeration: accept upper- and lower-case 32-character names, while ignoring wrong lengths and non-hexadecimal characters.
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(cache): preserve zero-byte ordering at exact trim goals
Pin oldest-first eviction when the byte goal exactly equals the unused byte total: an older zero-byte artifact is removed before the positive-size artifact, while a newer zero-byte artifact survives once the goal is met.
Rudi Grinberg (@rgrinberg)