Repository navigation
Drop file correlation, fetch one commit, report runner timings - #93
Merged
Merged
Conversation
The manifest step fetched the target branch 1,000 commits deep and ran `git diff-tree` per commit to correlate the diff with spec files. The server stopped using the correlation when co-change selection was removed; on a large repository it cost about 16 seconds (9s fetch, 7s correlation) on every PR build, after the run had started. The modified-test-files diff is a two-dot diff against the target's tip, which needs one commit. `--depth` is only passed in a clone that's already shallow, since fetching with a depth into a full clone makes it shallow. Timings adds clock reads at points the controller already passes. The manifest carries the startup timeline; report_at_finish carries batch totals: time inside examples against the rest of each batch, and time waiting before the first batch and between batches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LGDurRkztG2taAhANKMgSA
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
FileCorrelatorandfile_correlation_collector.share gone, and the manifest no longer carriescorrelated_files.--depthis passed only when the clone is already shallow.Timings), sent with the manifest and inreport_at_finish.Why
Correlation. Before sending the manifest, the runner fetched the target branch 1,000 commits deep and ran
git diff-treeonce per commit. The server stopped using the result when co-change selection was removed. On a large Rails repository (28k files, starting from a depth-1 checkout) the fetch takes 9.0s and the correlation 7.0s. That's about 16 seconds on every PR build, after the run has started and while every runner waits.Depth. The modified-test-files diff is a two-dot diff against the target's tip. It compares trees, so it needs no history: the depth-1 fetch takes 0.6s on the same repository. Fetching with
--depthinto a full clone makes the clone shallow, which the old 1,000-commit depth also did to a developer's checkout. Now a full clone is fetched without a depth.Timings. When a run is slow, we can't see where a runner's time goes without the customer's CI logs. These are clock reads at points the controller already passes, with nothing on the hot path beyond that:
timings):process_started_at(from/procon Linux)core_loaded_atrunner_ready_at(app boot plus spec load)connected_atmanifest_requested_atmanifest_list_ms,manifest_tree_ms,manifest_diff_msmanifest_sent_atreport_at_finish(timings):batches,examplesrun_ms,example_ms,outside_examples_ms(framework and hook time around the examples)wait_before_first_batch_ms,idle_between_batches_msresult_write_msfirst_batch_at,last_batch_atTimes ending in
_atare Unix epoch milliseconds, so the server can line them up with its own timestamps. Servers that don't read them ignore them; the manifest is validated ontest_casesonly.Tests
timings_speccovers marks, measuring, the wait split and the examples-versus-batch accounting.🤖 Generated with Claude Code
https://claude.ai/code/session_01LGDurRkztG2taAhANKMgSA