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

limit sphinx version #317

Merged
merged 2 commits into from
Sep 7, 2023
Merged

limit sphinx version #317

merged 2 commits into from
Sep 7, 2023

Conversation

matthiasdiener
Copy link
Collaborator

No description provided.

@matthiasdiener matthiasdiener self-assigned this Sep 7, 2023
@inducer
Copy link
Owner

inducer commented Sep 7, 2023

Is this to address the doc example failure seen by @majosm in #316? Is there a sphinx issue that might explain this?

@matthiasdiener
Copy link
Collaborator Author

Is this to address the doc example failure seen by @majosm in #316? Is there a sphinx issue that might explain this?

Yes, this fixes the doc build at least locally for me (sphinx 7.2.4 is fine, 7.2.5 breaks). There is no issue I could find, but sphinx-doc/sphinx#11645 is the underlying PR that causes the failure.

@matthiasdiener matthiasdiener marked this pull request as ready for review September 7, 2023 12:49
@inducer
Copy link
Owner

inducer commented Sep 7, 2023

Left a comment.

Co-authored-by: Andreas Klöckner <[email protected]>
@alexfikl
Copy link
Collaborator

alexfikl commented Sep 7, 2023

Unrelated, but why does the documentation take over 1h to generate (almost as much as pylint!)? Is it just that hello-grudge.py example?

@matthiasdiener
Copy link
Collaborator Author

matthiasdiener commented Sep 7, 2023

Unrelated, but why does the documentation take over 1h to generate (almost as much as pylint!)? Is it just that hello-grudge.py example?

Just the conda env create takes more than 1 hour for docs and pylint (see e.g. here). I suspect that using mamba env create would significantly speed this up (at least that's what we saw in mirgecom). Env creation takes more time for these two tests since they pull in matplotlib, which in turn pulls in many more packages.

@alexfikl
Copy link
Collaborator

alexfikl commented Sep 7, 2023

Just the conda env create takes more than 1 hour for docs and pylint (see e.g. here). I suspect that using mamba env create would significantly speed this up (at least that's what we saw in mirgecom). Env creation takes more time for these two tests since they pull in matplotlib, which in turn pulls in many more packages.

Never thought of looking at that, but yeah, you're completely right! Wow!
Not super familiar with the conda/mamba split, but ci-support.sh seems to download Mambaforge. Does that not mean it uses mamba under the hood?
https://github.com/inducer/ci-support/blob/756aec4768a505b715e3da9ca66d6e72c4f55dfb/ci-support.sh#L116

@matthiasdiener
Copy link
Collaborator Author

matthiasdiener commented Sep 7, 2023

Not super familiar with the conda/mamba split, but ci-support.sh seems to download Mambaforge. Does that not mean it uses mamba under the hood? https://github.com/inducer/ci-support/blob/756aec4768a505b715e3da9ca66d6e72c4f55dfb/ci-support.sh#L116

Installing Mambaforge AFAIK only means that mamba as a command is available by default, conda is still available as a separate command. Currently, ci-support still uses conda for env creation: https://github.com/inducer/ci-support/blob/756aec4768a505b715e3da9ca66d6e72c4f55dfb/ci-support.sh#L255

For some strange reason I'm unable to create a fork on gitlab.tiker.net, so I can't send a PR currently.

Edit: Created a PR here: inducer/ci-support#26

@inducer inducer merged commit 667b93c into main Sep 7, 2023
6 checks passed
@inducer inducer deleted the docs-workaround branch September 7, 2023 19:29
@inducer
Copy link
Owner

inducer commented Sep 7, 2023

Thanks!

@matthiasdiener
Copy link
Collaborator Author

Unrelated, but why does the documentation take over 1h to generate (almost as much as pylint!)? Is it just that hello-grudge.py example?

With inducer/ci-support#27, the documentation build went from 73 min to <5 min 👀

@alexfikl
Copy link
Collaborator

alexfikl commented Sep 7, 2023

With inducer/ci-support#27, the documentation build went from 73 min to <5 min 👀

Much more environmentally friendly! Thanks for figuring this out! ❤️

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.

3 participants