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
PEP 545 #11
PEP 545 #11
Conversation
This avoid dropping each following builds if a single fails.
highlighting @ned-deily @ewdurbin @benjaminp for review. |
""" | ||
logging.info("Updating repository %s in %s", repository, directory) | ||
try: | ||
shell_out("git -C {} checkout {}".format(directory, branch)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to pass a list of arguments rather than a string to avoid issues with shell?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, wait, the "{}" or "%s" in shell commands are not new: the current code already use them. You can ignore my comment. It can be enhanced in a different PR ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will gladly fix this in another PR yes.
(sphinxbuild, maketarget, os.path.join(log_directory, logname))) | ||
shell_out("cd Doc; make SPHINXBUILD=%s SPHINXOPTS='%s' %s >> %s 2>&1" % | ||
(sphinxbuild, sphinxopts, maketarget, | ||
os.path.join(log_directory, logname))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't use use cwd parameter of subprocess.Popen to avoid the "cd"?
Note: make also has a -C parameter to make the "cd".
Same question for string vs list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right, it will even allow running make directly (without a shell) once your previous comment fixed, which is nice. I tried to keep my changes minimal so I didn't changed this. Will do in another PR, later.
(As I don't have access to the logs or the server, I prefer keeping my chances atomic, so if something break we all know exactly what caused it).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, it perfectly makes sense. But it would help if someone could give you access to the logs since you seem to be one of the people working on this project :-)
@ewdurbin: Can you please give access to Julien to the logs? Or maybe send him logs on demand? Thanks.
FYI I proposed to give the commit bit to @JulienPalard on this project :-)
https://mail.python.org/pipermail/python-committers/2017-June/004583.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Haypo I can help get the logs, can you point me to what logs you'll need?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MarkMangoba @Haypo is speaking about the output of this crontab: https://github.com/python/psf-salt/blob/master/salt/docs/init.sls#L47 and /var/log/docsbuild/.
Having a copy of the logs right now is not needed, I'd only need them if I break something in one of my PRs, to diagnose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JulienPalard understood. @ewdurbin do you have a chance to review?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, LGTM.
@MarkMangoba, @ewdurbin & others: how can we unblock this situation please? |
Running test builds now! Thanks @JulienPalard |
Cool, thanks @ewdurbin! How can we check for failure? Are you going to notify us? @JulienPalard: maybe join the #python-infra channel on Freenode? ;-) |
@Haypo indeed, unfortunately it's just logs on the docs server when the build job kicks off via cron. |
This implements https://www.python.org/dev/peps/pep-0545/, building all known translations by default (only french for the moment, japanese may arrive soon.
This implements no crosslink between versions (no language switcher in the graphical interface) allowing to test for a period of time before going really public about it.
I tested it with:
And it went well, properly skipping untranslated versions, building a correct hierarchy in www_root. It'll probably miss some work before implementing cross-linking like setting symlinks like /3/, and /dev/, which are currently done manually if I'm right, that I should implement in salt or in this script in a near future.