Skip to content

DOC: Making the build fail if the doc build fails #24292

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 3 commits into from
Dec 16, 2018
Merged

DOC: Making the build fail if the doc build fails #24292

merged 3 commits into from
Dec 16, 2018

Conversation

datapythonista
Copy link
Member

The doc build is failing silently if sphinx fails. This PR makes the CI red when something goes wrong building the docs.

CC: @jreback

It has been tested here: https://travis-ci.org/pandas-dev/pandas/jobs/468243202

@datapythonista datapythonista added Docs CI Continuous Integration labels Dec 15, 2018
@pep8speaks
Copy link

Hello @datapythonista! Thanks for submitting the PR.

.travis.yml Outdated

# In allow_failures
- dist: trusty
env:
- JOB="3.6, doc" ENV_FILE="ci/deps/travis-36-doc.yaml" DOC=true
Copy link
Contributor

Choose a reason for hiding this comment

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

leave all of this

i am not convinced this build is actually reliable enough to change this

Copy link
Member Author

Choose a reason for hiding this comment

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

You'll know better, I just thought that it'd be a good idea to make it break the build for a while, to see if it's actually reliable. Other than taking too long, does it fails with false positives often for any reason?

Copy link
Contributor

Choose a reason for hiding this comment

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

let's make that an independent change.

Copy link
Member Author

Choose a reason for hiding this comment

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

fair enough, reverted that part

Copy link
Member

Choose a reason for hiding this comment

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

BTW, the travis build here is only failing when the sphinx build is completely failing, not when there is an error in the doc build. So that shouldn't happen too often.

Copy link
Member

Choose a reason for hiding this comment

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

Actually, the doc build is failing on travis now. But I am wondering if this is because of "fatal: No such remote: origin".
In that case, we should either fix that to not try to push the docs the github repo on PRs, or revert this PR, as it will currently always fail on PRs.

@codecov
Copy link

codecov bot commented Dec 16, 2018

Codecov Report

Merging #24292 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24292      +/-   ##
==========================================
- Coverage   92.28%   92.22%   -0.06%     
==========================================
  Files         162      162              
  Lines       51827    51824       -3     
==========================================
- Hits        47827    47795      -32     
- Misses       4000     4029      +29
Flag Coverage Δ
#multiple 90.62% <ø> (-0.07%) ⬇️
#single 43.01% <ø> (ø) ⬆️
Impacted Files Coverage Δ
pandas/io/s3.py 0% <0%> (-86.37%) ⬇️
pandas/io/parquet.py 76.92% <0%> (-7.7%) ⬇️
pandas/io/common.py 72.09% <0%> (-0.78%) ⬇️
pandas/util/testing.py 87.41% <0%> (-0.07%) ⬇️
pandas/core/reshape/reshape.py 99.56% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca85a41...8ad2ff1. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 16, 2018

Codecov Report

Merging #24292 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #24292   +/-   ##
=======================================
  Coverage   92.28%   92.28%           
=======================================
  Files         162      162           
  Lines       51827    51827           
=======================================
  Hits        47827    47827           
  Misses       4000     4000
Flag Coverage Δ
#multiple 90.68% <ø> (ø) ⬆️
#single 43.01% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca85a41...8ad2ff1. Read the comment docs.

@jreback jreback added this to the 0.24.0 milestone Dec 16, 2018
@jreback jreback merged commit 66e9cfe into pandas-dev:master Dec 16, 2018
@jreback
Copy link
Contributor

jreback commented Dec 16, 2018

thanks @datapythonista

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants