Skip to content

.travis.yml: put lint tests first#2215

Merged
sa2ajj merged 2 commits intobuildbot:masterfrom
yetanotherion:lint_test_first
May 11, 2016
Merged

.travis.yml: put lint tests first#2215
sa2ajj merged 2 commits intobuildbot:masterfrom
yetanotherion:lint_test_first

Conversation

@yetanotherion
Copy link
Copy Markdown
Contributor

More than 20 travis jobs are currently
executed to validate a pull request. Travis
however doesn't start the 20 builds in parallel.

The link tests are therefore executed after
previous ones are finished.
To avoid situations where all the unit tests are ok,
but one needs to wait 20 minutes to be aware
of a lint issue (incorrect order of import), which is quite likely
to happen, this commit puts the lint test first.

Change-Id: Id57d6d9fec4742cc7ea768d888e058835ebb2113

More than 20 travis jobs are currently
executed to validate a pull request. Travis
however doesn't start the 20 builds in parallel.

The link tests are therefore executed after
previous ones are finished.
To avoid situations where all the unit tests are ok,
but one needs to wait 20 minutes to be aware
of a lint issue (incorrect order of import), which is quite likely
to happen, this commit puts the lint test first.

Change-Id: Id57d6d9fec4742cc7ea768d888e058835ebb2113
@mention-bot
Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @tardyp, @rutsky and @djmitche to be potential reviewers

@ryansydnor
Copy link
Copy Markdown
Contributor

I'd probably move coverage and docs up there as well to catch things like spelling errors and poorly formatted rst more quickly.

@tardyp
Copy link
Copy Markdown
Member

tardyp commented May 11, 2016

yes, I have been wanting to do that for long

@tardyp
Copy link
Copy Markdown
Member

tardyp commented May 11, 2016

agree, please also put doc first.

Put coverage and docs tests up,
to catch related errors earlier.

Change-Id: Id4df0d304afed5cc742b7c386aa2cfca182512a9
@yetanotherion
Copy link
Copy Markdown
Contributor Author

@tardyp @ryansydnor I put docs and coverage up

@sa2ajj sa2ajj merged commit 4394f91 into buildbot:master May 11, 2016
@yetanotherion
Copy link
Copy Markdown
Contributor Author

@ryansydnor @djmitche @tardyp the patch does not seem to work
https://travis-ci.org/buildbot/buildbot/builds/129648472
the lint test is in 17th position. Do you think it's a way for travis to make people subscribe to a service ?

@ryansydnor
Copy link
Copy Markdown
Contributor

It looks like the newer PRs (perhaps those that are rebased on top of your change) are behaving as expected. (for example, https://travis-ci.org/buildbot/buildbot/builds/129687285)

I realized that this change could make the builds even more efficient (from both a time and resource perspective) if we fail fast. Fortunately travis gives us that capability! I've opened another PR here: #2226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants