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

CI: Documentation built but not published in PRs #23536

Closed
datapythonista opened this issue Nov 6, 2018 · 4 comments
Closed

CI: Documentation built but not published in PRs #23536

datapythonista opened this issue Nov 6, 2018 · 4 comments
Labels
CI Continuous Integration Docs good first issue Needs Discussion Requires discussion from core team before further action

Comments

@datapythonista
Copy link
Member

datapythonista commented Nov 6, 2018

I was taking a look at the build of the documentation, and it looks like in every PR it is built, but it's not being published:

From https://github.com/pandas-dev/pandas-docs-travis
 * [new branch]      gh-pages   -> origin/gh-pages
origin	https://@github.com/pandas-dev/pandas-docs-travis.git (fetch)
origin	https://@github.com/pandas-dev/pandas-docs-travis.git (push)
remote: Anonymous access to pandas-dev/pandas-docs-travis.git denied.
fatal: Authentication failed for 'https://@github.com/pandas-dev/pandas-docs-travis.git/'

On commits to master, looks like it's working as expected (we should probably update the url):

From https://github.com/pandas-dev/pandas-docs-travis
 * [new branch]      gh-pages   -> origin/gh-pages
origin	https://[secure]@github.com/pandas-dev/pandas-docs-travis.git (fetch)
origin	https://[secure]@github.com/pandas-dev/pandas-docs-travis.git (push)
remote: This repository moved. Please use the new location:        
remote:   https://github.com/pandas-docs/pandas-docs-travis.git        
To https://github.com/pandas-dev/pandas-docs-travis.git
 + 6f622be...de98643 gh-pages -> gh-pages (forced update)

Building the docs takes around 45 minutes, so I think we should probably build only when merging the PRs, and save some travis resources? Not sure how to do it, but I guess there is a way inside travis to know if we're in a PR or in a commit to master.

May be in the future we can consider publishing the docs for each PR, but that would require some development, as fixing the error here would publish all PRs into the same place, which is not very useful.

The relevant files are .travis.yml and ci/build_docs.sh.

CC: @TomAugspurger @jorisvandenbossche

@datapythonista datapythonista added Docs CI Continuous Integration Effort Low Needs Discussion Requires discussion from core team before further action good first issue labels Nov 6, 2018
@TomAugspurger
Copy link
Contributor

TomAugspurger commented Nov 6, 2018 via email

@datapythonista
Copy link
Member Author

Oh, sorry, I missed that PR. That makes sense, I didn't think about it.

Then, the first thing would be to move the docs outside of the allowed failures in travis, which I don't see discussed or implemented there, right?

@jorisvandenbossche
Copy link
Member

Yes, we should IMO for sure build the docs also in PRs. I currently often look in the log to see if something in the PR is going wrong regarding the docs, and automatically failing there as @TomAugspurger is trying to do would be a big help (now we are constantly introducing mistakes that needs to be corrected afterwards)

I think we already mentioned that a few times in various places, but without taking action, that we should indeed move it outside of the allowed failures.

@datapythonista
Copy link
Member Author

Makes sense. Closing, as #22743 and #17921 already cover all what needs to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Docs good first issue Needs Discussion Requires discussion from core team before further action
Projects
None yet
Development

No branches or pull requests

3 participants