Too long time to finish the task #3634
Replies: 3 comments 2 replies
-
First I would like to thank you for reporting your experience. I have seen some issues (like #3212) which are related to performance. It would be good to provide any information about your environment and how your branching and merging strategy is. May I ask you to help us with the following one or more points:
BTW: There is already a pre-release (see version 6.x or main branch) existing which includes a lot of changes. At this moment it would make no sense to invest time on version 5.0.1. |
Beta Was this translation helpful? Give feedback.
-
The bug description is not explicit enough to break out improvements or other tasks. Thus I'm going to move this issue to the discussion section. |
Beta Was this translation helpful? Give feedback.
-
@HHobeck I will be available if you have any further questions. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I have a repository that uses Git Version for two years, currently the task time in Azure DevOps takes 10 minutes, is there a possibility to reduce this time?
Expected Behavior
Run in a few seconds
Actual Behavior
Currently it takes 10 to 15 minutes just for the task.
Possible Fix
Any configuration in Yaml to solve the problem?
Steps to Reproduce
To reproduce the bug is a little complicated because it is necessary to have a repository of more than 2 years and have a huge amount of PRs and commits
Context
This bug affects every time Ci's pipeline runs, extending its time by 100 times.
Your Environment
My environment used is Azure DevOps, below is the GitVersion Yaml
GitVersion
steps:
displayName: GitVersion
inputs:
runtime: full
Full Ci
pool:
name: Azure Pipelines
#Your build pipeline references an undefined variable named ‘git diff HEAD HEAD~ --name-only -r’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
steps:
task: gittools.gitversion.gitversion-task.GitVersion@5
displayName: GitVersion
inputs:
runtime: full
script: |
7z a tools.zip tools
7z a login.zip login
displayName: 'Zip Folders'
task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs:
Contents: |
**
!.git**
!\componentes**
!\login**
!\tools**
TargetFolder: '$(build.artifactstagingdirectory)'
task: PublishPipelineArtifact@1
displayName: 'Publish Pipeline Artifact'
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifact: drop
Beta Was this translation helpful? Give feedback.
All reactions