{{ message }}
fix: gitlfow improvements#735
Merged
Merged
Conversation
a7081fa to
8347c0a
Compare
Allure perf metricsGenerated at:
Artifacts: allure-perf-metrics |
epszaw
approved these changes
Jun 24, 2026
delatrie
requested changes
Jun 24, 2026
Collaborator
There was a problem hiding this comment.
We only need commit hashes, not the trees or the content. Let's use partial fetch:
git fetch --deepen=100 --filter=tree:0Most providers support this. If that's not the case, fallback with git fetch --deepen=100 --filter=blob:none (fetch the trees but not the content), and, finally, with git fetch --deepen=100 (full fetch).
In 99% of cases, that will reduce the amount of downloaded data and fetch execution time massively:
fetching allure3, no filter, 22s:
% time git -C no-filter fetch --deepen=100
remote: Enumerating objects: 4349, done.
remote: Counting objects: 100% (4349/4349), done.
remote: Compressing objects: 100% (2018/2018), done.
remote: Total 3661 (delta 2743), reused 2360 (delta 1596), pack-reused 0 (from 0)
Receiving objects: 100% (3661/3661), 302.47 MiB | 18.91 MiB/s, done.
Resolving deltas: 100% (2743/2743), completed with 479 local objects.
git -C no-filter fetch --deepen=100 origin 6.65s user 2.49s system 41% cpu 22.192 total
fetching allure3, --filter=blob:none, 1.5s
% time git -C blob-none fetch --deepen=100 --filter=blob:none
remote: Enumerating objects: 2077, done.
remote: Counting objects: 100% (2077/2077), done.
remote: Compressing objects: 100% (982/982), done.
remote: Total 1803 (delta 1249), reused 1258 (delta 778), pack-reused 0 (from 0)
Receiving objects: 100% (1803/1803), 257.68 KiB | 2.48 MiB/s, done.
Resolving deltas: 100% (1249/1249), completed with 115 local objects.
Enumerating objects: 4138, done.
Counting objects: 100% (4138/4138), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3454/3454), done.
Writing objects: 100% (4138/4138), done.
Total 4138 (delta 594), reused 4109 (delta 583), pack-reused 0 (from 0)
git -C blob-none fetch --deepen=100 --filter=blob:none origin 0.15s user 0.10s system 16% cpu 1.523 total
fetching allure3, --filter=tree:0, 1.2s
% time git -C tree-0 fetch --deepen=100 --filter=tree:0
remote: Enumerating objects: 100, done.
remote: Counting objects: 100% (100/100), done.
remote: Compressing objects: 100% (100/100), done.
remote: Total 100 (delta 0), reused 98 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (100/100), 76.40 KiB | 1.50 MiB/s, done.
git -C tree-0 fetch --deepen=100 --filter=tree:0 0.05s user 0.07s system 10% cpu 1.235 total
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.

CI usually has shallow fetch depth clone of a repo, lacking enough first-parent history for git lineage.
This PR deepens ancestor collection.
Also: