Repository navigation
perf(remote): hash staged iOS runner app files once per lease - #5205
Conversation
Every launch rewrote the runner configuration, then walked and re-hashed the whole staged products tree before a selective sync. Staging now returns the app-file manifest with the staged-products handle, and each upload describes only the current configuration. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 91c2109. The verdict and the full list are in the summary comment.
Hashing left the 300 s upload budget when it moved into staging, so a stalled read held preparation open. Staging now waits at most 300 s for it and fails with operation_deadline_expired. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This comment has been minimized.
This comment has been minimized.
|
Live Limrun evidence is still needed before merge, and no code change is required from the review of 60caeed. The PR changes the route that stages and launches the remote iOS runner, but the PR body says there was no live remote-instance run, and the proof uses only a stubbed fetch or a local fake server. This is device-facing native execution, so the repo requires live evidence, and it is not yet shown that a real instance accepts the first full sync and a later selective sync built from the reused manifest. Please run this at that commit on one live Limrun iOS lease. Run a command that needs the XCTest runner, such as Not blocking: these can be taken or left, namely exporting All checks that ran pass, only the Proof check is skipped, and no Limrun live lane is among them. Not verified here: no tests, mutations or timings were run, and the conclusions come from the diff, the base and head code, and the check results. Not verified here: the server handling of the manifest on |
Name the runner configuration file once and use it for the launch payload filter and the xctest/run body. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Live Limrun iOS evidence for Setup. Built from a detached checkout of 60caeed with How the runner is retired while the lease stays. A plain CLI Commands (scope Debug log (request ndjson, trimmed; one lease
Follow-up commit 6f68c58 applies the non-blocking notes. It changes only a test and a constant. |
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 code at 6f68c58 looks good, and no new regression was found. The earlier 60caeed finding on live remote-instance evidence is closed by the later author comment. The hashing time limit thread no longer applies: the hashing at this commit is bounded by the input signal and a 300-second timeout, so the thread can be resolved. All 21 checks pass at 6f68c58. They include no Limrun live lane, so the live proof is the author's trimmed log. That run was at 60caeed, and it carries over only because the production change since then produces identical values. Not verified here: no tests, mutations, timings or live runs were executed. Not verified here: the log cannot show whether the second sync needed the silent full-payload retry, and the server handling of Nothing from this review needs to change before merge. |
Summary
Each remote iOS runner launch rewrote
Runner.xctestrun, then walked the staged tree and hashed every file again, although the app files never change there.Staging now returns the app-file manifest with the staged-products handle. Each upload reuses it and describes only the current configuration. Outgoing manifests stay complete, the full-payload recovery still streams every file, and disposal drops the manifest with the staged tree.
The regular-file check moves from the first upload to staging, so a runner containing a symbolic link fails before any request. Hashing moves with it, under its own 300 s deadline (
operation_deadline_expired); caller and lease cancellation still stop it.Validation
At 60caeed, which adds that deadline,
limrun-ios-runner-products.test.ts: 15 passed.Tested at 91c2109:
limrun-ios-runner-products.test.tsandlimrun-ios-runner.test.ts: 55 passed.Per-launch selective sync, real simulator runner app (7 files, 5.9 MB), stubbed network, 40 interleaved samples per side, loaded host:
91c2109 only adds an abort check. CI checks are pending. No live remote-instance run.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.