question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

height not incremented as expected (or maybe my expectations are wrong)

See original GitHub issue

This PR https://github.com/ServiceComposer/ServiceComposer.AspNetCore/pull/18 correctly generates a package versioned as *-PR.18.alpha.0.*, so far so good. I was expecting the height to increase with each commit, so *-PR.18.alpha.0.0, *-PR.18.alpha.0.1, *-PR.18.alpha.0.etc.., and if my memory works correctly this was the behavior I was observing. First question:

Is my expectation correct?

If this is the case. Due to reasons I force pushed on the PR, clearly visible on GitHub. Since then it seems that on the PR the MinVer generated version is stuck at *-PR.18.alpha.0.2, as if the height from the last tag is always 2.

Full build history is available here: https://ci.appveyor.com/project/ServiceComposer/servicecomposer-aspnetcore/history

Am I doing something wrong?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mauroservienticommented, Apr 28, 2019

Thanks @adamralph. That’s fine, I like it. Closing this as solved.

0reactions
adamralphcommented, Apr 28, 2019

@mauroservienti yes, this is the expected behaviour. I suspect GitVersion does some kind of branch-based logic, and anything of that sort is deliberately avoided in MinVer.

Bear in mind that even if this logic exists, during the lifetime of a PR, the same height could be produced from two different builds. E.g. I could push one commit and build height 1, push another commit and build height 2, and then squash the commits and force push and build height 1 again. For that reason, I don’t think it’s a good idea to push packages to a feed with this logic in place. It would be better to embed the build number in the version somehow, and that would work with MinVer today. For example: https://github.com/ServiceComposer/ServiceComposer.AspNetCore/pull/22

Read more comments on GitHub >

github_iconTop Results From Across the Web

What should one do if the salary increment is much less ...
You need to think about this why your increment given less then your expectations and you need to find reason that your expectations...
Read more >
Beware SAFe (the Scaled Agile Framework for Enterprise), an ...
I can't conclusively prove that SAFe is the wrong choice for all situations. What I can do is raise awareness about the commonly...
Read more >
Human Height Is Positively Related to Interpersonal ...
Across cultures, taller stature is linked to increased social status, but the potential reasons why this should be are unclear.
Read more >
Are My Expectations Too High?
Possible indicators that your expectations are not too high and in fact, are healthy: You think intimacy in your relationships consists of mutual...
Read more >
Chapter 3: Expectation and Variance
Suppose that X and Y are discrete random variables, possibly dependent on each other. Suppose that we fix Y at the value y....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found