DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Data Engineering
  3. Databases
  4. Update GitVersion for Large Repositories

Update GitVersion for Large Repositories

In this post we take a look at how to update GitVersion in large repositories, a common task that will save you a lot of headaches in the future. Read on for details.

Ricci Gian Maria user avatar by
Ricci Gian Maria
·
Apr. 25, 17 · Tutorial
Like (1)
Save
Tweet
Share
4.84K Views

Join the DZone community and get the full member experience.

Join For Free

as you know, i’m a fanatic user of gitversion in builds, and i’ve written a simple task to use it in a tfs build automatically. this is the typical task that you write and forget because it just works and you usually not have the need to upgrade it, but there is a build where i start to see really high execution timing for the task; as an example, gitversion needs two minutes to run.

image

figure 1: gitversion task run time it is too high, 2 minutes.

this behavior is perfectly reproducible on my local machine. that repository is quite big, it has lots of tags and feature branches, and it seems that gitflow needs a lot of time to determine semantic versioning.

looking at the github page of the project, i read some issues regarding performance problem; the good part is that all performance problems seem to disappear with the newer version, so it is time to upgrade the task.

thanks to the new build system, updating a task in vsts / tfs is really simple- i just deleted the old gitversion executable and libraries from the folder where the task was defined, i copied over the new gitversion.exe and libraries, and with a tfx build tasks upload command, i could immediately push the new version on my account.

since i changed gitversion from version 2 to version 3, it is a good practice to update the major number of the task , to avoid all build to automatically use the new gitversion executables, because it could break something. what i want is all build to show me that we have a new version of the task to use, so you can try and stick using the old version if gitversion 3.6 gives you problems.

whenever you do major change on a tfs / vsts build task it is a good practice to upgrade major number to avoid all builds to automatically use the new version of the task.

thanks to versioning, you can decide if you want to try out the new version of the task for each distinct build.

image

figure 2: thanks to versioning, the owner of the build can choose if the build should be upgraded to use the new version of gitversion task.

after upgrading the build, just queue a new build and verify if the task runs fine, and especially if the execution time is reduced.

image

figure 3: new gitversion executable has a real boost in performance.

with few minutes of work, i upgraded my task and i’m able to use the new version of gitversion.exe in all the builds, reducing the execution time significantly. compare this with the old xaml build engine and you understand why you should migrate all of your xaml build to the new build system as soon as possible.

Build engine Task (computing) Repository (version control)

Published at DZone with permission of Ricci Gian Maria, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Steel Threads Are a Technique That Will Make You a Better Engineer
  • Tracking Software Architecture Decisions
  • Monolithic First
  • How To Choose the Right Streaming Database

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: