-
Notifications
You must be signed in to change notification settings - Fork 652
Cake build - Don't hard code gitreleasenotes.exe path. #1432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@gep13 - how about this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@dazinator let's give it a try 😄 |
@dazinator so, I am not sure what is going on here. I will try to look at it and figure out what is going on.... |
@dazinator so, the short answer is, I don't know what is going on, or whether this has worked in the past. I am not very familiar with GitReleaseNotes. We would really need some input from @JakeGinnivan on what to do here. I can get the build to work locally by creating the
Which I don't think is right, as I would have expected some issues to be present here. We can make the build pass by creating that file, but I would like to know what is going on in GitReleaeNotes. @JakeGinnivan are you around to provide anything on this? |
Link to latest failed build: https://ci.appveyor.com/project/GitTools/gitversion/build/4.0.1-beta.1+2.build.1597#L394 |
Some ideas, maybe checked in version is different to latest published? Also, why is it looking in /build ? Interesting the version: 4.0.1-beta.1+2.build.1597 - did we release v4? The basic idea of gitreleasenotes is, look at the previous tag, get the date, query closed issues since that date, drop that into the releasenotes.md - it's supposed to be quite basic and dumb, think it got over complicated at some point adding support for a bunch of different providers and such. Could remove this part of it, then just run it manually until a better way can be put in place |
@JakeGinnivan I am going say that I don't know anything about how the releasenotes side of things were/are being handled, so I can't offer anything there, sorry. @dazinator @asbjornu might be able to help with the version number question. |
I'm not aware of any stable v4 release as of yet, no. 😄 |
Is the the name of the branch that is throwing it off? |
i.e. |
@dazinator @asbjornu @JakeGinnivan so yeah, I think that is the issue: https://ci.appveyor.com/project/GitTools/gitversion/build/4.0.1-beta.1+2.build.1597#L288 We might need to add some entries in the GitVersion.yml file to exclude those. |
Yeah the netstandard PR must have bumped the major version to 4.0.0. When I subsequently did the build fix pr's today I saw master was now at 4.0.0 so i created 4.0.1 branch to do this fix. I think what we want is to prevent the major bump in the first place then. I thought maybe there was a commit message bump in the netstandard pr but a quick glance and I couldnt see it. |
@dazinator just so I am clear... A major bump for the next release is fine, right? I am happy with 4.0.0-beta. What I think is wrong is the patch bump to 4.0.1-beta. |
Oh right.. Yeah I thought the issue was why we went to 4.0.0 in the first place :-) I dont think it much matters. We added support for other platforms and a lot did change so perhaps a major bump is warranted (to 4.0.0) but there should be no breaking changes so in that sense the major bump wasnt really mandated. If we are happy to stay at 4.0.0 i'm fine with that. I guess then we just add that 4.0.1 hotfix sha to the gitversion file right? |
@dazinator Yip, that would be my understanding, yes. |
It seems like the gitreleasenotes.exe cannot generate the release notes because of this GitTools/GitReleaseNotes#111 |
@arturcic ah, that could well be the issue! @JakeGinnivan are you in a position to release a new version of GitReleaseNotes? |
Released, thanks @arturcic |
You're welcome |
Looks like this fixed the build, but I can't see the packages released to nuget.org yet. Do we want every new build of master to go straight to nuget.org, or is it a manual choice to do the push from master? |
I’d like every push to master to end up as an unstable build on every package repository that supports unstable/prerelease packages. |
@dazinator @dazinator @JakeGinnivan personally, I don't think that every commit into master should be pushed out, since not every commit onto master will warrant a new release. As an example of what I mean, I have just merged this PR (#1338) where @JakeGinnivan added some information about the release process that is currently in play, and how it is possible to get a release onto NuGet.org. This in itself doesn't warrant a new release, as it is purely a documentation change, no binaries would have been updated. I would much prefer it to be an informed decision by one of the maintainers to push out a release to NuGet.org. Having said that, I would have no problem with every commit on the master branch resulting in a release to say MyGet.org, where people who are interested in testing out the latest bits could consume a package from. Thoughts? |
I don’t think it’s important to be careful and give much thought to prereleases; much better with one prerelease too many than one too few. Not having to perform any manual steps to get a prerelease out the door means the barrier to do it is zero, so it will be done all the time. Whenever you introduce a manual step, you introduce barrier and it will stop releases that should have preferably been out but isn’t due to the people remembering how it’s done is on vacation, or whatever. I think stable releases warrant a tag, though. Nothing more, preferably. Every tag should have an accompanying release with release notes on GitHub, but I don’t think we can fully automate that, so I’d rather have stable releases without release notes than no stable releases at all. I think this is what’s required to get out of the current situation of only @JakeGinnivan being able to publish releases. |
@asbjornu @gep13 So how about this:
Would gitversion calculate an unstable version number for a build of master branch and no tag though? |
I don't have the full overview, but from memory I know that GitVersion exists on Homebrew, Docker and Visual Studio Team Systems already. Probably more. All of these should also be updated as often and automatically as possible, with pre-release packages if they support them. Otherwise, I agree, @dazinator. 👍
I believe that's the default behavior for |
I will create a seperate issue for sorting our automated deployment out. |
Fixes #1430