10000 circle.yml: Grep WARNINGs in docs log and fail by mrshu · Pull Request #6030 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

circle.yml: Grep WARNINGs in docs log and fail #6030

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

Closed

Conversation

mrshu
Copy link
Contributor
@mrshu mrshu commented Dec 14, 2015
  • Grep WARNINGs in docs log and fail if there are any found.

Signed-off-by: mr.Shu mr@shu.io

* Grep WARNINGs in docs log and fail if there are any found.

Signed-off-by: mr.Shu <mr@shu.io>
@mrshu
Copy link
Contributor Author
mrshu commented Dec 14, 2015

@amueller This is a work in progress, I would like to leave this PR open until I resolve all the issues with WARNINGs.

@mrshu
Copy link
Contributor Author
mrshu commented Dec 14, 2015

Should fix #6025

@amueller
Copy link
Member

circle CI is only run on master currently. maybe @waterponey can say how he tested #5578.

@GaelVaroquaux
Copy link
Member
GaelVaroquaux commented Dec 15, 2015 via email

@amueller
Copy link
Member

Thanks for the input @GaelVaroquaux.

Well, the PRs don't fail, master does, as circleCI is only run on master. So the PR can be merged, and if there is an error, the log might give insights into whether it's easy to fix or a maintainer has to step in.

I'm not sure this is the best way to do it, either. But I'm not very happy with a lot of the work on cleaning up the doc build falling to me by default, and I'd like there to be at least some signal when things fail. Currently people probably don't realize they broke anything.

@mrshu
Copy link
Contributor Author
mrshu commented Dec 15, 2015

@amueller If circleCI only runs on master how will people be notified prior to merging the PR to master? Does not that break the idea of Continuous Integration?

@amueller
Copy link
Member

people will not be notified prior to merging to master.
We could run circleci on the PRs as well. @GaelVaroquaux is that what you do?

* Fixed simple WARNINGs that were reported by circleCI as part of making
  sure the automatic docs generation does not fail and is properly
  tested too.

Signed-off-by: mr.Shu <mr@shu.io>
@mrshu
Copy link
Contributor Author
mrshu commented Dec 15, 2015

@amueller @GaelVaroquaux If I am reading your comments correctly then this PR achieves the state @amueller would like the circleCI to be in. My last commit to this PR's branch fixes a few easy issues I managed to spot in the log output today but I was also not able to locally reproduce many of those that are currently visible in circleCI's log output.

If you are satisfied with the state of this PR I would suggest that you merge into master and see if you are satisfied with the circleCI's log output. The circleCI build should not break anything as it will most probably fail to get past the section added by this PR's first commit (there will most probably be some WARNINGs in the log output).

@GaelVaroquaux
Copy link
Member
GaelVaroquaux commented Dec 15, 2015 via email

@amueller
Copy link
Member

I was thinking about contributing upstream to improve this. But there is this book to write...

So the consequence is that maintainers have to fix the broken doc build you say? is that better or worse than the current state in sklearn?

@GaelVaroquaux
Copy link
Member

I was thinking about contributing upstream to improve this.

It's actually in numpydoc that it would probably be the most useful. As
for standard sphinx, at least the line number of the error is correct.
Whereas for numpy doc, it's not.

So the consequence is that maintainers have to fix the broken doc build you say?

Yes.

is that better or worse than the current state in sklearn?

To tell the truth, I don't know. It has slowed down hugely our release of
nilearn, but at least the docs of this release have no broken internal
references.

@lesteve
Copy link
Member
lesteve commented Dec 17, 2015

is that better or worse than the current state in sklearn?

To tell the truth, I don't know. It has slowed down hugely our release of
nilearn, but at least the docs of this release have no broken internal
references.

Talking about our experience in nilearn, my hope is that with time we will be more aware of these sphinx issues, know how to fix the most common ones and debug the less common ones.

@amueller
Copy link
Member

@GaelVaroquaux coming back to this after some time, I think most of our PRs don't touch the docs, or if they do, only in a small part. I think it would be worth giving it a go.

@amueller
Copy link
Member

There is very little cost in trying this out, I think. If it's not working well, we can turn it off again.

@lesteve
Copy link
Member
lesteve commented Jul 28, 2016

FWIW in my experience, most of the hardest to track warnings comes from docstring formatting (you get very little help from numpydoc sphinx extension to track down the origin of the problem) and not from rst documentation. My guess is that in most problematic cases CircleCI would not run in the PR but master would break once the PR is merged.

There is very little cost in trying this out, I think. If it's not working well, we can turn it off again.

That would be my inclination too.

@amueller
Copy link
Member

My guess is that in most problematic cases CircleCI would not run in the PR but master would break once the PR is merged.

Doesn't CircleCI run on all PRs right now?

@lesteve
Copy link
Member
lesteve commented Jul 28, 2016

Doesn't CircleCI run on all PRs right now?

Off the top of my head only on the ones that are touching the doc or examples folders or have something like build-doc in the last commit message. See https://github.com/scikit-learn/scikit-learn/blob/master/build_tools/circle/check_build_doc.py for the full details.

@jnothman
Copy link
Member

I think this is no longer applicable.

@jnothman jnothman closed this Dec 20, 2016
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.

5 participants
0