@calcit/procs 0.13.61 → 0.13.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Keep network work outside the caps metadata lock
|
|
2
|
+
|
|
3
|
+
## Context
|
|
4
|
+
|
|
5
|
+
`caps` resolves independent modules in parallel. A cache miss previously acquired the global `.metadata.lock` before cloning a repository and held the lock for the entire network operation. A clone lasting longer than the lock retry window caused otherwise independent workers to fail with a misleading lock timeout.
|
|
6
|
+
|
|
7
|
+
## Change
|
|
8
|
+
|
|
9
|
+
- Keep the first cache lookup and metadata refresh under a short lock.
|
|
10
|
+
- Clone a missing repository into its process-unique temporary path without holding the global lock.
|
|
11
|
+
- Reacquire the lock only to resolve an installation race, atomically rename the clone into the content-addressed store, and update metadata.
|
|
12
|
+
- Preserve validation when another process installs the same commit first.
|
|
13
|
+
|
|
14
|
+
## Verification
|
|
15
|
+
|
|
16
|
+
- Rust tests and strict Clippy pass.
|
|
17
|
+
- TypeScript compilation and the 17/17 agent-interface suite pass.
|
|
18
|
+
- A real cold-cache `caps --strict --ci` run over calcium-workflow's dependency graph cloned concurrent modules without a metadata-lock timeout.
|
package/lib/package.json
CHANGED