fix: gitlfow improvements by vdvukhzhilov · Pull Request #735 · allure-framework/allure3 · GitHub
Skip to content

fix: gitlfow improvements#735

Merged
vdvukhzhilov merged 1 commit into
mainfrom
gitflow-change
Jun 24, 2026
Merged

fix: gitlfow improvements#735
vdvukhzhilov merged 1 commit into
mainfrom
gitflow-change

Conversation

@vdvukhzhilov

@vdvukhzhilov vdvukhzhilov commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

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

Also:

  • Yarn PnP SDKs for oxfmt/oxlint (drop .vscode wrapper scripts)
  • testops plugin logger prefix init fix
  • axios generic typing in service HTTP client

Comment thread packages/git/src/collectGitFacts.ts Fixed
@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Allure perf metrics

Generated at: 2026-06-24T12:09:25.317Z

Phase Count Total Avg Min Max
restoreState.total 1 1501.8 ms 1501.8 ms 1501.8 ms 1501.8 ms
restoreState.dump 3 1501.4 ms 500.5 ms 460.2 ms 520.7 ms
restoreState.attachments 3 1143.0 ms 381.0 ms 346.1 ms 407.7 ms
restoreState.storeRestore 3 126.4 ms 42.1 ms 38.6 ms 45.5 ms
generate.total 1 5865.1 ms 5865.1 ms 5865.1 ms 5865.1 ms
generate.plugins.done 1 5254.8 ms 5254.8 ms 5254.8 ms 5254.8 ms
publish.upload.total 1 4799.9 ms 4799.9 ms 4799.9 ms 4799.9 ms
summary.generate 1 8.8 ms 8.8 ms 8.8 ms 8.8 ms
generate.plugin.done.agent 1 0.2 ms 0.2 ms 0.2 ms 0.2 ms
generate.plugin.done.awesome 1 4525.2 ms 4525.2 ms 4525.2 ms 4525.2 ms
generate.plugin.done.dashboard 1 725.4 ms 725.4 ms 725.4 ms 725.4 ms
generate.plugin.done.log 1 3.6 ms 3.6 ms 3.6 ms 3.6 ms
publish.upload.plugin.awesome 1 1569.6 ms 1569.6 ms 1569.6 ms 1569.6 ms

Artifacts: allure-perf-metrics

@vdvukhzhilov vdvukhzhilov merged commit eb79605 into main Jun 24, 2026
12 checks passed
@vdvukhzhilov vdvukhzhilov deleted the gitflow-change branch June 24, 2026 12:19

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We only need commit hashes, not the trees or the content. Let's use partial fetch:

git fetch --deepen=100 --filter=tree:0

Most 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants