Skip to content

Benchmark popular Git dependencies and monorepos - #2306

Draft
zaniebot wants to merge 4 commits into
zb/preview-git-source-worktreesfrom
zb/bench-popular-git-source-matrix
Draft

zaniebot wants to merge 4 commits into
zb/preview-git-source-worktreesfrom
zb/bench-popular-git-source-matrix

Conversation

@zaniebot

@zaniebot zaniebot commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Extend git_fetch to pinned Requests and Transformers releases and to multiple Airflow providers from one monorepo revision. Cover cold fetches, successive upgrades, and cached reuse across the four combinations of partial fetches and shared worktrees. Divide the existing walltime run into bounded shards and retain every shard when importing public-main profiles into uv-dev. Keep the larger Odoo history opt-in.

@zaniebot
zaniebot added this pull request to stack #2307 October 7, 2026 17:25
@astral-automations-bot astral-automations-bot Bot added area:benchmarks Related to benchmarking internal A refactor or improvement that is not user-facing labels Oct 7, 2026
@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch from d1ed6b6 to f899b50 Compare October 7, 2026 17:42
@codspeed

codspeed Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 14.94%

⚠️ 8 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
✅ 68 untouched benchmarks
🆕 40 new benchmarks
⏩ 35 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ ⚠️ Simulation discover_workspace_from_all_members_with_excludes 163.9 ms 142.6 ms +14.94%
🆕 WallTime git_fetch_revision_history[transformers/full_clone/1] N/A 5.8 s N/A
🆕 WallTime git_fetch_revision_history[transformers/full_clone/4] N/A 6.7 s N/A
🆕 WallTime git_fetch_revision_history[transformers/full_worktree/1] N/A 5.8 s N/A
🆕 WallTime git_fetch_revision_history[transformers/full_worktree/4] N/A 6.7 s N/A
🆕 WallTime git_fetch_revision_history[transformers/partial_clone/1] N/A 1.7 s N/A
🆕 WallTime git_fetch_revision_history[transformers/partial_clone/4] N/A 5.9 s N/A
🆕 WallTime git_fetch_revision_history[transformers/partial_worktree/1] N/A 1.7 s N/A
🆕 WallTime git_fetch_revision_history[transformers/partial_worktree/4] N/A 2.5 s N/A
🆕 WallTime git_fetch_warm_precise[transformers/full_clone] N/A 2.6 ms N/A
🆕 WallTime git_fetch_warm_precise[transformers/full_worktree] N/A 2.2 ms N/A
🆕 WallTime git_fetch_warm_precise[transformers/partial_clone] N/A 2.7 ms N/A
🆕 WallTime git_fetch_warm_precise[transformers/partial_worktree] N/A 2.2 ms N/A
🆕 WallTime git_monorepo_cold[airflow/full_worktree/1] N/A 9.2 s N/A
🆕 WallTime git_monorepo_cold[airflow/full_worktree/4] N/A 9.2 s N/A
🆕 WallTime git_monorepo_warm[airflow/full_worktree/1] N/A 14.9 ms N/A
🆕 WallTime git_monorepo_warm[airflow/full_worktree/4] N/A 17.4 ms N/A
🆕 WallTime git_monorepo_cold[airflow/full_clone/1] N/A 9.3 s N/A
🆕 WallTime git_monorepo_cold[airflow/full_clone/4] N/A 9.4 s N/A
🆕 WallTime git_monorepo_warm[airflow/full_clone/1] N/A 14.8 ms N/A
... ... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing zb/bench-popular-git-source-matrix (fc991f5) with zb/preview-git-source-worktrees (6260611)

Open in CodSpeed

Footnotes

  1. 35 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch from f899b50 to b3ceb45 Compare October 7, 2026 18:45
@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch 2 times, most recently from 00e4062 to 6cca9d3 Compare October 7, 2026 19:09
@zaniebot
zaniebot removed this pull request from stack #2307 October 7, 2026 19:09
@zaniebot
zaniebot added this pull request to stack #2312 October 7, 2026 19:10
@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch from 6cca9d3 to e037ed0 Compare October 7, 2026 19:31
@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch from e037ed0 to f390844 Compare October 7, 2026 19:54
@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch from f390844 to 2c0e6f5 Compare October 7, 2026 21:13
@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch from 2c0e6f5 to 4ac74d4 Compare October 7, 2026 21:40
@zaniebot
zaniebot deployed to automations October 7, 2026 21:41 — with GitHub Actions Active
@zaniebot
zaniebot deployed to automations October 7, 2026 21:45 — with GitHub Actions Active
Comment on lines +461 to +464
jobs = github_items(
f"repos/{SOURCE_REPOSITORY}/actions/runs/{source_run}/jobs?per_page=100",
"jobs",
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Supply GitHub authentication to the import step

This new call invokes gh api, but the “Import public main profiles” step in .github/workflows/import-codspeed-profiles.yml does not set GH_TOKEN; only the earlier “Find public main profiles” step does. Step-local environment variables do not carry over, so imports now fail before reading or uploading any profiles. An isolated invocation with empty CLI configuration confirms that gh exits with status 4 requesting GH_TOKEN. Add GH_TOKEN: ${{ github.token }} to the import step, matching the find step.

@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch from 4ac74d4 to d5258e4 Compare October 7, 2026 22:03
@zaniebot
zaniebot deployed to automations October 7, 2026 22:03 — with GitHub Actions Active
@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch 2 times, most recently from 0adf4d9 to 764155f Compare October 14, 2026 16:28
"Benchmark command {command:?} failed: {}",
String::from_utf8_lossy(&output.stderr)
);
assert_eq!(cache.join("git-v1/worktrees/checkouts").is_dir(), worktrees);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Check the partial cache namespace for worktree benchmarks

For airflow/partial_worktree cases, compile_command enables both features, so GitSource::fetch creates checkouts under git-v1/partial/worktrees/checkouts, as the existing partial_worktree_recovers_after_cache_move test also verifies. This assertion checks the full-fetch namespace instead and fails after a successful compile. Consequently, shard 8 cannot complete, and the importer rejects the incomplete benchmark run. Pass the partial-fetch setting into this verification and select the corresponding cache root.

@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch from 20b1aa4 to ab50376 Compare October 14, 2026 19:52
@zaniebot
zaniebot deployed to automations October 14, 2026 19:54 — with GitHub Actions Active
@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch from ab50376 to 7b62b87 Compare October 14, 2026 20:07
@zaniebot
zaniebot deployed to automations October 14, 2026 20:09 — with GitHub Actions Active
@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch from 7b62b87 to 25ac350 Compare October 14, 2026 20:19
@zaniebot
zaniebot deployed to automations October 14, 2026 20:20 — with GitHub Actions Active
@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch from 25ac350 to fc991f5 Compare October 14, 2026 20:31
@zaniebot
zaniebot deployed to automations October 14, 2026 20:33 — with GitHub Actions Active
@zaniebot
zaniebot force-pushed the zb/bench-popular-git-source-matrix branch from fc991f5 to 47e4c1d Compare October 22, 2026 22:54
@zaniebot
zaniebot removed this pull request from stack #2728 October 22, 2026 22:54
@zaniebot
zaniebot added this pull request to stack #2942 October 22, 2026 22:54
Comment thread .github/workflows/bench.yml Outdated
matrix:
include:
- index: 1
suites: "uv workspace_discovery"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Retain uv_pep508 in the walltime shard matrix

The walltime build still includes --bench uv_pep508, and the previous unfiltered run executed it, but no shard now selects that suite. This silently removes its marker and conflict benchmarks from walltime reporting and imported main-branch baselines. Add uv_pep508 to shard 1’s suites so sharding retains the existing coverage.

This branch was successfully deployed

1 active (outdated) deployment
automations — fc991f5d Deployed Oct 14, 2026 by zaniebot via review-code-quality / code quality review #10195
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:benchmarks Related to benchmarking internal:ci Related to continuous integration workflows and infrastructure internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants