You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though we trust that the master branch is building successfully, the build failing on TravisCI with resulting red badge on project level README is not a good experience for our customers.
Actions: move from TravisCI to CircleCI
Other options for discussion:
Change default branch from master; leave master for contributions and ongoing dev.
Related to point 1: #1466 -- quick introduction: when we split up our repo into sub-modules, our README was out of date with npm install-reality while we worked to release the sub-modules to npm.
Here's a link to the TL;DR by @jgeewax that has a short discussion that follows: #1466 (comment)
Is it an option to simply remove the badge? I'm not sure it communicates anything meaningful to any audience. Us: "Oh look at that, Travis is broken again." Contributors: "My repo is red all the time on Travis, too!" (or) "Weird, npm test worked..." -- Customers: "This is broken!" (...but it's not).
If we can get CircleCI to run our builds on-time and accurately reflect master-- as opposed to the latest PR build where build failures are expected during development-- then maybe the badge will have value and provide some accountability for us. But for now, the Travis green badge isn't an award worth winning, considering it would take several hours across multiple days to achieve (seriously).
Here's when things are going well for a PR build, which only runs a subset of our tests, not including system tests. This is 1 hour for 1/6 (we now have 8) test VMs to run.
--
Proposal: this issue becomes "Move to CircleCI" where we talk through the problems we face while transitioning, and we move the other discussion, re: switching the default branch, to gcloud-common, as we would probably want to be consistent across languages anyway.
That's definitely what we should have, but in either case, I'm still uncertain the badge is doing anything for us at this point, so I'd rather just ditch it altogether.
A few thoughts on this, though. Here's how the PR currently works:
User on local machine runs npm run prepare-release x.x.x from the module directory, i.e. packages/bigquery
This uses npm version to bump the version in package.json, create the git tag, and then push it to master
CI runs automatically (unit tests, snippet tests, system tests) and publishes to npm
Things that make the argument for manual publishing sound better:
Circle CI only tests Linux, it's not doing OS X (maybe someday) or Windows (that's handled separately through AppVeyor). To have the different build environments communicate would be necessary to orchestrate a release after all greens.
CI can easily fail (search "system test flakiness"), which would grind the whole publishing process to a halt. We'd have to manually intervene to publish in this scenario.
Tagging locally before seeing if the build is successful is a bit backwards-- we shouldn't tag until we know all system tests are green. So, assuming we do that-- the user waits for all tests to pass across the different CI platforms before running npm run prepare-release-- why wouldn't they just publish it at that time, instead of having CI run all of the tests again?
I'm currently leaning towards manual here, but let me know if you have any ideas for how to proceed.
There's a monthly fee for testing on OS X with Circle. However, it's apparently free for OSS projects, but someone will need to reach out to them:
What if I am building open-source?
We offer a total of four free linux containers ($2400 annual value) for open-source projects. Simply keeping your project public will enable this for you!
We also offer the Seed plan for OS X open-source projects. Contact us at [email protected] for access. If you are building a bigger open-source project and need more resources, let us know how we can help you!
Is it really important to test specifically on OS X, and is "on push" the right way to do it if so? What is a type of problem that we have gotten that is Darwin-specific?
If it is critical, then I would probably ask that we shift our focus to using CI for unit tests and having GCE instances that run unit and system tests on each type of platform.
But, in the meantime, I assert that Windows + *nix is enough.
Activity
stephenplusplus commentedon Dec 5, 2016
Related to point 1: #1466 -- quick introduction: when we split up our repo into sub-modules, our README was out of date with
npm install-reality while we worked to release the sub-modules to npm.Here's a link to the TL;DR by @jgeewax that has a short discussion that follows: #1466 (comment)
Is it an option to simply remove the badge? I'm not sure it communicates anything meaningful to any audience. Us: "Oh look at that, Travis is broken again." Contributors: "My repo is red all the time on Travis, too!" (or) "Weird,
npm testworked..." -- Customers: "This is broken!" (...but it's not).If we can get CircleCI to run our builds on-time and accurately reflect master-- as opposed to the latest PR build where build failures are expected during development-- then maybe the badge will have value and provide some accountability for us. But for now, the Travis green badge isn't an award worth winning, considering it would take several hours across multiple days to achieve (seriously).
Here's when things are going well for a PR build, which only runs a subset of our tests, not including system tests. This is 1 hour for 1/6 (we now have 8) test VMs to run.
--
Proposal: this issue becomes "Move to CircleCI" where we talk through the problems we face while transitioning, and we move the other discussion, re: switching the default branch, to gcloud-common, as we would probably want to be consistent across languages anyway.
// @jmdobry
jmdobry commentedon Dec 5, 2016
We could quickly switch the badge from being a general Travis badge across all branches to being Travis badge tied to the master branch:
=>
stephenplusplus commentedon Dec 6, 2016
That's definitely what we should have, but in either case, I'm still uncertain the badge is doing anything for us at this point, so I'd rather just ditch it altogether.
Remove Travis badge
bjwatson commentedon Mar 2, 2017
@stephenplusplus Has this already been done?
stephenplusplus commentedon Mar 2, 2017
Not all the way, I'm keeping track with the TODOs in the first post.
[-]Fix build failing (badge) - transition from TravisCI to CircleCI[/-][+]transition from TravisCI to CircleCI[/+]stephenplusplus commentedon Mar 13, 2017
Just a status update on this-- publishing to npm after a successful tagged commit is in the works, PR #2058.
stephenplusplus commentedon Mar 13, 2017
A few thoughts on this, though. Here's how the PR currently works:
npm run prepare-release x.x.xfrom the module directory, i.e. packages/bigquerynpm versionto bump the version inpackage.json, create the git tag, and then push it to masterThings that make the argument for manual publishing sound better:
Circle CI only tests Linux, it's not doing OS X (maybe someday) or Windows (that's handled separately through AppVeyor). To have the different build environments communicate would be necessary to orchestrate a release after all greens.
CI can easily fail (search "system test flakiness"), which would grind the whole publishing process to a halt. We'd have to manually intervene to publish in this scenario.
Tagging locally before seeing if the build is successful is a bit backwards-- we shouldn't tag until we know all system tests are green. So, assuming we do that-- the user waits for all tests to pass across the different CI platforms before running
npm run prepare-release-- why wouldn't they just publish it at that time, instead of having CI run all of the tests again?I'm currently leaning towards manual here, but let me know if you have any ideas for how to proceed.
bjwatson commentedon Mar 13, 2017
FYI @lukesneeringer, since you're looking into similar issues for Python.
stephenplusplus commentedon Mar 22, 2017
There's a monthly fee for testing on OS X with Circle. However, it's apparently free for OSS projects, but someone will need to reach out to them:
lukesneeringer commentedon Mar 22, 2017
Is it really important to test specifically on OS X, and is "on push" the right way to do it if so? What is a type of problem that we have gotten that is Darwin-specific?
stephenplusplus commentedon Mar 22, 2017
lukesneeringer commentedon Mar 22, 2017
If it is critical, then I would probably ask that we shift our focus to using CI for unit tests and having GCE instances that run unit and system tests on each type of platform.
But, in the meantime, I assert that Windows + *nix is enough.
stephenplusplus commentedon Mar 24, 2017
I think we're all good for now, then. Hooray!
Opened #1970 to have a place to talk about the GCE idea.
feat(spanner): add DdlStatementActionInfo and add actions to UpdateDa…