Skip to content

CI limit diff to commit range #8097

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

Merged
merged 1 commit into from
Dec 21, 2016
Merged

CI limit diff to commit range #8097

merged 1 commit into from
Dec 21, 2016

Conversation

jnothman
Copy link
Member

We seem to be getting some spurious flake8 errors in Travis. I think it is because the diff of merge-base is being used relative to HEAD (merged master with PR head?) instead of the commit range from merge-base to PR head.

Example of spurious errors: https://travis-ci.org/scikit-learn/scikit-learn/jobs/185733709

@lesteve
Copy link
Member

lesteve commented Dec 21, 2016

Indeed not sure what happened there. In the Travis case COMMIT was unset so I am not sure what the diff was doing ...

@jnothman
Copy link
Member Author

jnothman commented Dec 21, 2016 via email

@lesteve
Copy link
Member

lesteve commented Dec 21, 2016

Indeed not sure what happened there. In the Travis case COMMIT was unset so I am not sure what the diff was doing ...

Actually my bad, I was not reading the code correctly. COMMIT is unset only for a push into a branch (i.e. not a PR) on Travis.

Anyway I think your original guess is correct HEAD is the result of the merge of the PR into master and that is what we are diffing against. Your fix looks good to me and Travis is green so I'll merge it

@lesteve lesteve merged commit 83c92a1 into scikit-learn:master Dec 21, 2016
@lesteve
Copy link
Member

lesteve commented Dec 21, 2016

Thanks a lot for diagnosing the problem and fixing it!

sergeyf pushed a commit to sergeyf/scikit-learn that referenced this pull request Feb 28, 2017
@Przemo10 Przemo10 mentioned this pull request Mar 17, 2017
Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
NelleV pushed a commit to NelleV/scikit-learn that referenced this pull request Aug 11, 2017
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
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.

2 participants