Skip to content

Check for errors/warnings on failed doc-builds #24598

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 4, 2022

Conversation

oscargus
Copy link
Member

@oscargus oscargus commented Dec 3, 2022

PR Summary

I'm quite sure that this helps with #22176 (comment)

Still not good enough to solve the whole issue, but at least useable now...

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/
  • API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

@oscargus
Copy link
Member Author

oscargus commented Dec 3, 2022

This works now:

#!/bin/bash -eo pipefail
(grep "WARNING\|ERROR" /tmp/sphinxerrorswarnings.log ||
 echo "No errors or warnings")

WARNING: [autosummary] failed to import matplotlib.artist.Artist.get_foogure.
/home/circleci/project/doc/api/artist_api.rst:114: WARNING: autosummary: failed to import Artist.get_foogure.
CircleCI received exit code 0

@oscargus oscargus added the Documentation: build building the docs label Dec 3, 2022
@oscargus oscargus added this to the v3.6-doc milestone Dec 3, 2022
@timhoffm timhoffm merged commit 8a7a53a into matplotlib:main Dec 4, 2022
@lumberbot-app
Copy link

lumberbot-app bot commented Dec 4, 2022

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
git checkout v3.6.x
git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
git cherry-pick -x -m1 8a7a53aa9cf2d0c70186b40bde5555264b3845c4
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
git commit -am 'Backport PR #24598: Check for errors/warnings on failed doc-builds'
  1. Push to a named branch:
git push YOURFORK v3.6.x:auto-backport-of-pr-24598-on-v3.6.x
  1. Create a PR against branch v3.6.x, I would have named this PR:

"Backport PR #24598 on branch v3.6.x (Check for errors/warnings on failed doc-builds)"

And apply the correct labels and milestones.

Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon!

Remember to remove the Still Needs Manual Backport label once the PR gets merged.

If these instructions are inaccurate, feel free to suggest an improvement.

@lumberbot-app
Copy link

lumberbot-app bot commented Dec 4, 2022

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
git checkout v3.6.2-doc
git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
git cherry-pick -x -m1 8a7a53aa9cf2d0c70186b40bde5555264b3845c4
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
git commit -am 'Backport PR #24598: Check for errors/warnings on failed doc-builds'
  1. Push to a named branch:
git push YOURFORK v3.6.2-doc:auto-backport-of-pr-24598-on-v3.6.2-doc
  1. Create a PR against branch v3.6.2-doc, I would have named this PR:

"Backport PR #24598 on branch v3.6.2-doc (Check for errors/warnings on failed doc-builds)"

And apply the correct labels and milestones.

Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon!

Remember to remove the Still Needs Manual Backport label once the PR gets merged.

If these instructions are inaccurate, feel free to suggest an improvement.

@rcomer
Copy link
Member

rcomer commented Dec 4, 2022

I think the conflict is because #23868 was not backported. I just triggered that.

@rcomer
Copy link
Member

rcomer commented Dec 4, 2022

@meeseeksdev backport to v3.6.2-doc

@rcomer
Copy link
Member

rcomer commented Dec 4, 2022

Still needs backport to v3.6.x after #24612 is merged. But currently CI is failing on all v3.6.x PRs.

tacaswell added a commit that referenced this pull request Dec 4, 2022
…598-on-v3.6.2-doc

Backport PR #24598 on branch v3.6.2-doc (Check for errors/warnings on failed doc-builds)
@tacaswell
Copy link
Member

@meeseeksdev backport to v3.6.x

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Dec 4, 2022
@oscargus oscargus deleted the docbuilderrors branch December 4, 2022 16:29
rcomer added a commit that referenced this pull request Dec 4, 2022
…598-on-v3.6.x

Backport PR #24598 on branch v3.6.x (Check for errors/warnings on failed doc-builds)
@ksunden ksunden mentioned this pull request Feb 20, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation: build building the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants