Skip to content
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

Makefile, travis: miscellaneous fix #349

Merged
merged 2 commits into from
Oct 19, 2016

Conversation

overvenus
Copy link
Member

@overvenus overvenus commented Oct 18, 2016

  • ignore pd-server in tests and coveralls
  • ignore a generated go-bindata file in coveralls
  • prevent stall jobs in travis tests by extending testing timeout

close #347

 * ignore pd-server in tests and coveralls
 * ignore a generated go-bindata file in coveralls
 * prevent stall jobs in travis tests by extending testing time
@overvenus
Copy link
Member Author

PTAL @siddontang @huachaohuang

@@ -16,4 +16,4 @@ matrix:
script:
- make dev
after_success:
- make travis_coverage
- travis_wait make travis_coverage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is travis_wait?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A magic function that automatically doubles testing timeout. Now the extended timeout is 20 minutes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

em, does PD can run 20m+ in travis? If yes, it is too long, we must speed up the test.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, PD won't run 20m+.

Sometimes make travis_coverage may run more than 10 minutes and outputs nothing, that may cause travis build error, because travis thinks it is a stall job.

Here travis_wait extends timeout, so that we prevent stall jobs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If make travis_coverage runs over 20m, is it still a stall job?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, though highly unlikely. There must be something wrong in our tests, if it happened.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I think we don't need this, if > 10m, it is our bug and we must fix it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep it, I received a build error email yesterday because of no outputs within 10 minutes, and I am pretty sure it is not caused by bugs, sometimes travis machines become slow make travis_coverage may run more than 10 mintues.

BTW, make travis_coverage casts 15min+ in my machine.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it

@huachaohuang
Copy link
Contributor

LGTM

1 similar comment
@siddontang
Copy link
Contributor

LGTM

@siddontang siddontang merged commit 17ed1cc into tikv:master Oct 19, 2016
@overvenus overvenus deleted the travis-miscellaneous-fix branch October 19, 2016 07:32
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.

ignore travis test coverage for main.go
3 participants