Repository navigation
Conversation
|
Should be using |
|
Sorry. |
|
Missed the copy, sorry. |
|
LGTM. Thanks |
|
Yes, but the PDF without optipng is enormous, IIRC... Will we need to extend the timeout as in #7693? |
|
PDF without optipng is 45MB |
|
Yes, but the PDF without optipng is enormous, IIRC...
What's preventing us from getting optipng?
|
|
Probably nothing is preventing us from getting optipng... if we don't need to download a whole series of C/++ dependencies. I suppose it could be tested in |
|
Would it not make more sense to build the pdf doc in build_doc.sh rather than push_doc.sh, i.e. do something like this in build_doc.sh: if [[ "$CIRCLE_BRANCH" =~ '^master$|^[0-9]+\.[0-9]+\.X$' ]]; then
MAKE_TARGET=dist
else
MAKE_TARGET=html
fi
set -o pipefail && cd doc && make $MAKE_TARGET 2>&1 | tee ~/log.txtMaybe we need to make sure that the build is not for a PR via the CIRCLE_PULL_REQUESTS environment variable for example (https://circleci.com/docs/environment-variables/) |
Some LaTeX-related packages get installed via apt-get already in build_doc.sh (IIRC they are needed for the html build, maybe for maths). So it would be a matter of adding optipng to the list. |
|
If we agree that it doesn't happen with every push to a PR, does it matter On 19 October 2016 at 23:00, Loïc Estève [email protected] wrote:
|
It's mainly that building the doc in push_doc is rather misleading given the names of the scripts. Also log.txt gets overriden the way it is done right now, and it's not great that you have a copy and paste of almost the same command in build_doc and push_doc. |
|
Shrug. Feel like submitting a PR? On 19 October 2016 at 23:37, Loïc Estève [email protected] wrote:
|
|
If you put the make dist in the push doc, failures won't be caught and you might push corrupted documentation so it's not really a good idea. @lesteve solution is better I think. |
|
@waterponey I don't have too much time right now so if you do have time to do a PR, be my guest! |
|
Ok I'll do that. Should I open a new PR here or do a PR on @amueller repo ? |
|
Open a new PR, I think it will be quicker and you'll get the CI running on your PR. I think the main thing to do is to double-check that the CI_PULL_REQUEST environment variable is populated as expected, so that only the html is built inside a PR and not the pdf. |
|
Actually there is already a script that's taking care of looking at CI_PULL_REQUEST (the check_build_doc). Maybe I can alter it to add the possibility that when we add [pdf build] in the commit message, it forces the build ? Or just change the current behavior that makes it build the html version when [doc build] is passed. |
|
My understanding is that we should never build the pdf in pull requests because it takes too much time, what I would do is tweak slightly my snippet above and do (still in build_doc.sh rather than push_docs.sh): if [[ "$CIRCLE_BRANCH" =~ '^master$|^[0-9]+\.[0-9]+\.X$' && -z "$CI_PULL_REQUEST" ]]; then
MAKE_TARGET=dist
else
MAKE_TARGET=html
fi
set -o pipefail && cd doc && make $MAKE_TARGET 2>&1 | tee ~/log.txtSince check_build_doc.py is already using CI_PULL_REQUEST, it does give confidence that the environment variable is populated correctly and it should all just work ... |
I am not sure what you mean by "we won't send them anywhere" and I am not sure why you picked 0.6.X as an example. I don't think anyone is going to push into old (meaning at the time of the writing 0.17.X and older) release branches if that's what you are worrying about so let's stick to the simplest thing that works. |
|
I'd like to be able to push into the 0.18.X branch and have the stable website update. That should be the same case as pushing to 0.17.X or 0.6.X, right? |
|
New PR #7747 |
|
No my bad. It will work in both cases. On 24 October 2016 at 19:55, Andreas Mueller [email protected]
|
|
This PR should be closed |
Fixed #7543.
This builds the PDF for the release branches and master.
The html was already built do I don't do that again.