-
Notifications
You must be signed in to change notification settings - Fork 40
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
CI: move away from Travis-ci.org #628
Comments
I'm happy to go the GH route - it's one less service to have to connect with. |
@GaryJones Shall I implement a "quick test" for pushes, similar to what we have for WPCS ? In practice that would mean that for pushes to arbitrary branches and merges to For pull requests and merges to |
@jrfnl Yes please :-) The current 38 checks seems excessive for potentially work-in-progress pushes. |
@GaryJones I'll action that after the initial PR has been merged. Have you got an opinion about the other suggestions which I left in the PR ?
|
Yes, but not urgent.
How much will that speed up the linting?
Sure - does that include the need for a set of docs files? Can it be informative and non-blocking?
Yes please.
What sort of code coverage % do we currently have? |
|
Let's keep this issue open until some of the other suggestions have also been addressed.
Agreed. I'm thinking we should leave this till the summer (2021) when a) there will be an PHP 8.1 alpha/beta to test with locally and b) it will become clearer what PHPUnit versions will support PHP 8.1. That is, unless a simple, working solution presents itself in the mean time. One thing I've been thinking about, which is related to this, is to:
That last solution would also get rid of the hassle of having to use the GH Via that last solution, I would also want to offer more extended test abilities, like:
As this is not a huge code base, the speed up won't be significant, but the error messages shown would be much more descriptive (with syntax highlighted code snippet and all). So it is more a usability improvement. Also, in the current script, linting is only run on PHP 7.4 in the "basic checks" workflow. Linting just against PHP 7.4 will not catch everything in that regard (and there is no dependency for that job to pass before running the tests).
The feature completeness check tool has two check levels: check for tests only or check for tests + docs. A sniff being pulled without tests, IMO, should be blocked anyway. In all cases, it can be made non-blocking by using
Also see my remark above about the tests which is loosely related to this.
It's one of the things I've been monitoring locally when I have been working on individual sniffs.
Yes, we can use the We'd need to investigate how we can make the build fail on a decrease in code coverage in that case though. That part is what external services do automatically (and with configurable settings).
|
Travis-ci.org is shutting down.
I know that in the past one could already manually move accounts over from .org to .com by a) signing up to .com, b) enabling the migration beta and then moving whichever repo you wanted to move.
It might be worth checking who within the Automattic organisation has the right access rights to the Travis account to do so and approach them about getting this repo moved (to prevent CI potentially having downtime when the move happens unexpectedly or when travis-ci.org is shut down without the account having been moved).
Alternatively, now might be a good time to move the CI to GitHub actions and away from Travis.
If the preference is to move to travis-ci.com, can someone from within Automattic please take ownership of this ticket and move that forward ?
If the preference is to move to GH actions, I can set that up and send in a PR.
The text was updated successfully, but these errors were encountered: