Repository navigation
Benchmark Git source fetches - #22541
Conversation
Merging this PR will improve performance by 10.53%
|
| - name: "Checkout Branch" | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} |
Walltime benchmark builds fail on older pull requests because the workflow requests `git_fetch` from the merge revision but checks out a PR head that does not contain it. Remove the checkout overrides introduced in #22541 so both walltime jobs use the default merge-revision checkout, consistent with the simulated benchmarks.
Git dependencies with long histories can spend substantial time fetching and checking out source trees. Add
git_fetchto the existing walltime benchmarks with cold and cached fetches and successive Django releases. Rust fixtures prepare pinned repository histories before measurement, so the local Git transport keeps network variability out of the results.