Repository navigation
Create nuget feeds for CI builds on Appveyor - #1054
Conversation
|
@rprouse @nunit/core-team Points to finalize before we merge this.
You can click on the Appveyor builds and look at the artifacts being produced right now. |
|
Fairly busy this weekend, will try to get back to you tomorrow. |
|
That will be good. Thinking about it, I feel like where we are in doubt we should publish less rather than more. We can always increase it later. If we had some good ci build's out there with nuget packages, then you could have people use those in testing the runner. |
|
For the naming pattern. Eventually, I would like the 3.0.0 part pulled from a single place and patched everywhere. I like how the Cake team updates their release notes right after release with a placeholder for the new version and that drives the version number everywhere. I would also like to see it incremented to whatever our next release is right after the release. We should have it set now to 3.1.0. If we want to do a hotfix, we branch off the 3.0.0 release and set it to 3.0.1. My only concern with the If we did it in that order, we could also use the I would like to produce artifacts for all of our branches, pull requests and obviously master. Only core team can create branches, so they are safe and would allow us to easily test our changes in other projects without referencing assemblies in the bin directory which can be a pain moving between machines. As you pointed out, pull requests could be dangerous, but nugets would allow us to test them without pulling down and building. If we have a clear naming scheme and they are only in the AppVeyor feed, then I think we mitigate the risk. Lastly, artifacts from master could be used by users that need a fix for a bug that is not in a hotfix. As for artifacts that I want to produce, primarily NuGet. Msi's are problematic because the third version digit needs to increment otherwise you need to uninstall first. We could produce zips, but my priority is to speed testing and nuget does that for me. As for SL and CF, much lower priority. I don't even think we can get AppVeyor to build CF. Let's get the primary stuff working and we can add to it if there is a need. |
|
Some of this discussion is over-shadowed by my wanting to use the odd / even convention in the future, and it's not being entirely clear what I mean by that. So...
With that in mind, I'll address the points you raised:
Next round of comments? :-) |
|
So how do you tell github that a ci build is required to pass? |
|
Thanks @chris-smith-zocdoc that's helpful. |
|
@CharliePoole, I have made master a protected branch and require CI builds to be passing before a merge. We have been having problems with Travis, so we might want to turn it off for that. Let's see how it goes. The only problem I can think of is if we want to merge a pull request offline. We'll have to see how it works out. It is simple enough to turn off if it causes problems, but I like the idea of not being able to push to master. Thanks for the help @chris-smith-zocdoc |
|
@rprouse I don't feel strongly about this but it feels like solving a problem we haven't actually seen. |
|
@CharliePoole, I agree and don't feel strongly about it either. I do like that we can't push to master though. We don't, but now that 3.0 is out, there is a lot more interest in the project and I can see us adding more people to the team. This just keeps everyone honest. If it is a problem, we can remove it. It is just a quick setting that you or I can change. |
|
Back to your comments on this PR. I am okay with everything you said. I don't feel like anything we are doing is backing us into a corner and that we can iterate and improve as we see how it works. We profess to be agile, so we don't need to do all the design up front 😄 I am fine with fixing some of the things we want to change once we get a better build system. I think this PR is just one step in the right direction.
I do think that we can postpone that decision, but I think that if AppVeyor is building our branches, it will end up producing artifacts for the 3.2 release as we are preparing it. I would actually hope it does. I envision a future where we create a release branch, AppVeyor builds it producing artifacts, we download and test the result and then push the official release if all is good. Pushing the build and packaging to a CI machine ensures that all steps are followed and god forbid, prevents us from doing something stupid like introducing a virus from a developers machine. My suggestion for dealing with different types of builds is to distinguish them somehow with the postfix identifier. I'm just not sure how we do that. I think this is another thing that we can move towards and shouldn't hold up this PR. |
|
I thought it only prevented push -f We can always recover from a simple push.
|
|
Results of some experiments locally: From this, it appears that the suffix must start with hyphen, have an alpha as the char after the hyphen and not contain any periods. |
|
This is now working with format 3.1.0-ci-xxxx We should finalize the format and merge. My thoughts:
Note that tags still have precedence over all this. That is, if you tag a commit as 3.0.0-beta1, that's what will be used. Folks would have to pick and choose which packages they want, but I think that's how this feed would be used anyway. @rprouse Let me know what you think and I'll make the "final" changes. |
|
Additional possibility: Use the pr number as well - 3.1.0-ci-1234-pr999 |
|
Turns out that the size of what nuget calls the "special version part" can't exceed 20 characters and the branch name can make it too big. So my new plan would be to leave it as but just add -pr for pull requests. That is: |
|
This is now working and ready to merge provided we like the conventions it implements. |
|
You can see the result of our experiments with this feature by setting http://ci.appveyor.com/nuget/nunit as a package source. Frankly, it's not that clear from the list which builds one might want to use. I think the ultimate solution might be to modify the nuspec file so that the release notes indicate what is being built. However, we should get what we have in place anyway. |
|
All sounds good. I will merge after I get a chance to review it. On 22 November 2015 at 16:00, CharliePoole [email protected] wrote:
Rob Prouse I welcome VSRE emails. Learn more at http://vsre.info/ |
|
Looks good to me so far. It think that this is at least a good move in the direction we want to go in. Like you, I would like to get rid of the PowerShell script, but we can cover that in the Cake script. Let's go with this for now and improve on it as we can. |
Create nuget feeds for CI builds on Appveyor
Create nuget feeds for CI builds on Appveyor

I have taken @ctaggart 's PR #932, rebased it on top of the current master and published it to this PR so I can make a few changes.
Even though we want to use something like Cake for our build script, this powershell script can provide an interim solution. The important thing is that we establish a solid naming convention for our builds, which we can continue to use, and that we make sure we are only publishing the artifacts for those builds where we really want them.