You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] install rewrites identical .apm-pin markers on every run (no-op install is not write-free) #4790
bugLegacy classification name; prefer type/bug. Retained while discovery consumers are migrated.performanceLegacy classification name; prefer type/performance. Retained for history.status/acceptedHuman scope approval; verify the issue's approval record and review contact before work.
Every apm install rewrites apm_modules/<pkg>/.apm-pin for every dependency, even when the marker's bytes are identical, so an install that changes nothing is not write-free. At tree-10 that is 10 needless writes per no-op install.
Leave an identical marker untouched. Still rewrite a marker that is missing, different or a symlink.
Evidence
Found by the PERF no-op fast-path work (#4770): the fail-closed write recorder refused a no-op run because of these writes. Fix prototyped at 25f2b8e, with a unit cell.
Out of scope
Any change to the marker format or to pin verification.
Decision: approve
Area: project
Scope: apm install leaves an .apm-pin marker untouched when its on-disk bytes already equal what install would write, so a no-op install writes nothing. A marker that is missing, has different bytes, or is a symlink is still rewritten as today. The marker format and what install records are unchanged.
Done when: A test runs apm install twice on an unchanged project and asserts the second run does not rewrite any .apm-pin marker (same bytes and mtime); tests show a missing, a changed and a symlinked marker are still rewritten. They fail before the fix where expected and pass after it, a CHANGELOG line is added, and CI is green.
Out of scope: Marker format changes; other no-op write paths; the no-op fast path (#4770).
Review contact: Daniel Meppiel (@danielmeppiel)
bugLegacy classification name; prefer type/bug. Retained while discovery consumers are migrated.performanceLegacy classification name; prefer type/performance. Retained for history.status/acceptedHuman scope approval; verify the issue's approval record and review contact before work.
Activity
danielmeppiel commentedon Nov 22, 2026
Decision: approve
Area: project
Scope: apm install leaves an .apm-pin marker untouched when its on-disk bytes already equal what install would write, so a no-op install writes nothing. A marker that is missing, has different bytes, or is a symlink is still rewritten as today. The marker format and what install records are unchanged.
Done when: A test runs apm install twice on an unchanged project and asserts the second run does not rewrite any .apm-pin marker (same bytes and mtime); tests show a missing, a changed and a symlinked marker are still rewritten. They fail before the fix where expected and pass after it, a CHANGELOG line is added, and CI is green.
Out of scope: Marker format changes; other no-op write paths; the no-op fast path (#4770).
Review contact: Daniel Meppiel (@danielmeppiel)
test(lifecycle): corpus train 7 (policy promises, MCP retarget, lane …
test(lifecycle): corpus train 7 (policy promises, MCP retarget, lane …
test(lifecycle): corpus train 7 (policy promises, MCP retarget, lane …
test(lifecycle): corpus train 7 (policy promises, MCP retarget, lane …
test(lifecycle): corpus train 7 (policy promises, MCP retarget, lane …
test(lifecycle): corpus train 7 (policy promises, MCP retarget, lane …
test(lifecycle): corpus train 7 (policy promises, MCP retarget, lane …
test(lifecycle): corpus train 7 (policy promises, MCP retarget, lane …