Repository navigation
perf(apple): read the native-build toolchain identity with two concurrent probes - #5206
Conversation
…rent probes `xcodebuild -version` and one plain `sw_vers` now run side by side. One `sw_vers` call replaces the `-productVersion` and `-buildVersion` calls, and a missing field fails as `toolchain-probe-field-missing`. Identity values are unchanged, so existing cache keys still match. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Size Report
Startup median (7 runs, lower is better):
|
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
The PR is ready at b647b03: no blocking problems were found in the code. Not blocking, take or leave: the comment and test name in CI is green at this commit, with 20 checks passed and Nothing from this review needs to change before merge. |
…roc-first Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * origin/main: perf(apple): reuse the process identity for native-build cache locks (#5203) perf(apple): read the native-build toolchain identity with two concurrent probes (#5206) perf(macos): reuse the helper fingerprint between unchanged calls (#5207) docs(agents): add performance guidance (#5208) perf(daemon): classify a device claim owner only for refusals and settlement (#5210)
Summary
The fold helper and snapshot bridge read the toolchain identity before using their build cache. That read ran
xcodebuild -version,sw_vers -productVersionandsw_vers -buildVersionone after another.It now runs
xcodebuild -versionand one plainsw_versconcurrently, still through the scoped Apple tool provider, with nothing cached in the process.ProductVersionorBuildVersionfails astoolchain-probe-field-missing, naming the field.Identity values are unchanged, so cache keys still match.
readHostToolchainIdentityon one macOS 27.0 host, real tools, base and head alternating in blocks of 5, load average 35–41:Base and head returned identical identities. Timed at
9e0d1aa02d; later commits change tests only.Validation
9e0d1aa02d: 6 changedunit-corefiles, 49 tests passed;provider-integrationios-fold.test.ts, 7 passed.71cc6a5623(adds per-ensure probe counts):fold-helper-cache.test.ts, 6 passed.Promise.allinstead ofallSettled: 3 fail.oxfmtclean on changed files.Typecheck, gates and coverage are left to CI (pending). No independent review; the author reread the diff. No live fold or snapshot-bridge device run.
🤖 Generated with Claude Code