Repository navigation
Review fixes, Chromium worktree benchmark, and managed attach performance (#210) #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Shengyu Fu (shengyfu)
merged 23 commits into
main
from
shengyfu-code-review-chromium-worktree-bench
Oct 20, 2026
+7,651
−954
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
765d0f4
Fix review findings and add Chromium worktree benchmark
shengyfu d9bcc1f
Address issue #210: faster managed attach, eventual-consistency servi…
shengyfu 9fce03c
Benchmark: document base vs worktree query latency; skip hidden dirty…
shengyfu 97079b3
Serve provisional base on first eventual managed attach
shengyfu fa6eefe
Keep legacy attach ready; tests wait for verified managed views
shengyfu 1920ed3
Benchmark: document provisional first-attach serving on Chromium
shengyfu c3ca371
Fix hook-gated managed tests for provisional first attach
shengyfu c5792dd
Reclaim catalog WAL before refusing storage admission
shengyfu a69d804
Derive collection admission test limit from checkpointed footprint
shengyfu 00d2b0e
Settle view work before applying the test reconcile timer
shengyfu 0a2c4ac
Address review: page deadline per file, discard eventual group rows o…
shengyfu edc15f2
Address review: sample catalog usage under the writer lock; render pa…
shengyfu 724048d
Bump version to 1.2.4
shengyfu 9f5713c
Read tracked files from split Git indexes
shengyfu 5f76ac7
Keep path names exact in index keys
shengyfu 233c990
Harden the search server and fix CLI output edge cases
shengyfu 4c76993
Restore file permissions when a Unix test read lock drops
shengyfu 3ecab81
Fix Unix path display tests and agent restart race
shengyfu e0027dc
Gate verbatim display-path tests to Windows
shengyfu abdeb9b
Exclude .git from hidden parity check; record PR #211 Chromium valida…
shengyfu 9589d94
Give collection admission test an operation budget for loaded hosts
shengyfu bf9959e
Retry owner-hold refusal probes on catalog contention
shengyfu 87ccd37
Stabilize managed tests around provisional verification and catalog c…
shengyfu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| name: Benchmark Chromium worktrees | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| worktrees: | ||
| description: Linked worktrees to add after the primary checkout (at least 2) | ||
| default: "3" | ||
| repeat: | ||
| description: Timed rounds per query and target | ||
| default: "3" | ||
| dirty_files: | ||
| description: Tracked files to modify in the last worktree before attaching it | ||
| default: "16" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| benchmark: | ||
| name: Chromium worktrees (${{ matrix.os }}) | ||
| timeout-minutes: 360 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - os: ubuntu-latest | ||
| python: python3 | ||
| - os: macos-latest | ||
| python: python3 | ||
| - os: windows-latest | ||
| python: python | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Build release | ||
| run: cargo build --release | ||
|
|
||
| - name: Free disk space (Linux) | ||
| if: runner.os == 'Linux' | ||
| run: | | ||
| sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache | ||
| df -h | ||
|
|
||
| # The first worktree shares the primary commit (generation reuse), the | ||
| # second is one commit older (a new generation), and the last is dirty. | ||
| - name: Run benchmark | ||
| shell: bash | ||
| env: | ||
| WORKTREES: ${{ inputs.worktrees }} | ||
| REPEAT: ${{ inputs.repeat }} | ||
| DIRTY_FILES: ${{ inputs.dirty_files }} | ||
| run: | | ||
| ${{ matrix.python }} -B scripts/benchmark_worktrees.py \ | ||
| --bench-dir "$RUNNER_TEMP/tgrep-worktree-bench" \ | ||
| --worktrees "$WORKTREES" \ | ||
| --worktree-rev HEAD --worktree-rev HEAD~1 \ | ||
| --dirty-files "$DIRTY_FILES" \ | ||
| --repeat "$REPEAT" \ | ||
| --results-json worktree-benchmark.json \ | ||
| --results-md worktree-benchmark.md | ||
|
|
||
| - name: Print results | ||
| if: always() | ||
| shell: bash | ||
| run: cat worktree-benchmark.md || true | ||
|
|
||
| - name: Upload results | ||
| if: always() | ||
| uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 | ||
| with: | ||
| name: benchmark-chromium-worktrees-${{ matrix.os }} | ||
| path: | | ||
| worktree-benchmark.json | ||
| worktree-benchmark.md | ||
| if-no-files-found: ignore | ||
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.