Repository activity
40458 results across all weeks
refactor(engine): compact fs memo directory contents
Represent cached directory contents with separate filename sets for regular files and directories, retaining a map only for uncommon file kinds. This avoids storing the common file kind alongside every entry.
Rudi Grinberg (@rgrinberg)refactor(engine): pack cached file stats into a string
Store cached stat fields at fixed offsets in a string while preserving their
Rudi Grinberg (@rgrinberg)refactor(engine): unify workspace cache storage
Store fs memo digest metadata and workspace-local rule records in a single _build/.db value. Introduce Workspace_cache as the storage API so both caches can share serialized structure while retaining their existing higher-level logic.
Rudi Grinberg (@rgrinberg)refactor(rules): thread library closure state directly
Library closure traversal currently layers a generic State monad over Resolve.Memo. Each visit therefore allocates additional closures and intermediate state/result pairs, while obscuring the state flow through the traversal.
Rudi Grinberg (@rgrinberg)refactor(stdune): use compiler list implementations
Stdune currently overrides the compiler's List.map and List.filter_map with implementations that construct reversed temporary lists and then reverse them. Remove the map override and delegate filter_map to ListLabels, retaining only a thin wrapper for Stdune's list-first API.
Rudi Grinberg (@rgrinberg)refactor: compact produced-target maps
Store immutable produced-target directory entries in sorted array maps instead of tree maps, retaining the tree representation only while constructing them. Extend the compact map API with the traversal operations needed by produced targets and update the build-system call sites accordingly.
Rudi Grinberg (@rgrinberg)refactor: remove the useless background actions config
This did not speed anything up in practice. There's no use for it
Rudi Grinberg (@rgrinberg)refactor: simplify executing anonymous actions
Rudi Grinberg (@rgrinberg)revert: drop dev-only inlining optimizations
With release-built executables, always-inlining Ordering.of_int increased instruction counts by about 0.049% on @install and 0.019% on @check. Eta-expanding the unchecked module-path comparator increased them by about 0.026% and 0.008%, while changing minor allocation by less than 0.01%. Revert both changes; the independently effective filename and checked m…
Rudi Grinberg (@rgrinberg)stdune: support Proc.wait for PIDs on Windows
Use the typed process API for Windows and cross-platform callers.
Rudi Grinberg (@rgrinberg)test(engine): expose mkdir calls on rule cache hits
Add a Linux cram test using strace to expose that a null build calls mkdir once per rule even when the rules share a target directory and hit the workspace-local cache.
Rudi Grinberg (@rgrinberg)test(fiber): expand scheduler behavior coverage
Fiber's tests currently exercise several scheduler invariants only indirectly. Add focused regression coverage for:
Rudi Grinberg (@rgrinberg)test(install): keep potentially aliased destinations sequential
Adds regression coverage for install destination aliases discovered while working on concurrent installation in #13054.
Antonio Nuno Monteiro (@anmonteiro)test(jsoo): cover archive rebuilds in directory groups
related to #15422
Antonio Nuno Monteiro (@anmonteiro)test(jsoo): cover empty library archive rebuilds
related to #15422
Antonio Nuno Monteiro (@anmonteiro)test(pkg): target contexts fall back to the default lockdir
Description
Ali Caglayan (@Alizter)test(rpc): cover connecting to a killed watch server
Description
Ali Caglayan (@Alizter)test(source): cover mixed directory entries
Antonio Nuno Monteiro (@anmonteiro)test(stdune): expose repeated environment rendering
Updating one variable in an Env currently rerenders assignments for unchanged variables. Add an expect test that records this allocation behavior by checking physical identity across derived environments.
Rudi Grinberg (@rgrinberg)test(watching): avoid SIGPIPE in status line test
Cram tests run with pipefail, and grep -m 1 or grep -q could exit while tr was still writing. Depending on output size and scheduling, tr then exited with SIGPIPE (141), making rpc-build-status-line.t flaky.
Rudi Grinberg (@rgrinberg)