You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adam@docs:/srv/docsbuild$ sudo su --shell=/bin/bash docsbuild
docsbuild@docs:/srv/docsbuild$ /srv/docsbuild/venv/bin/python /srv/docsbuild/scripts/build_docs.py --languages en --select-output only-html-en --branches 3.14 3.13 3.12 3.11 3.10 3.9
This ran without PYTHON_DOCS_ENABLE_ANALYTICS=1, because that environment variables is managed by Salt, and seemingly only set for the scheduled cron jobs.
I've just started another rebuild with PYTHON_DOCS_ENABLE_ANALYTICS=1 set, hopefully this restores normality.
Probably the least intrusive way would be to update the scripts to read from a config file in like an xdg style way, allowing us to set a server wide setting that is picked up by the script when run in cron, interactively, or when using sudo.
Then salt could write the sentry dsn, fastly bits, and the analytics bit to /etc/....somethingoranother, and users could have local overrides.
Activity
ewdurbin commentedon Apr 11, 2025
suspect commits around that time: #235, #264, #258 and python/psf-salt#560
@AA-Turner @hugovk any ideas?
AA-Turner commentedon Apr 11, 2025
I ran a manual rebuild for the security branches:
This ran without
PYTHON_DOCS_ENABLE_ANALYTICS=1, because that environment variables is managed by Salt, and seemingly only set for the scheduled cron jobs.I've just started another rebuild with
PYTHON_DOCS_ENABLE_ANALYTICS=1set, hopefully this restores normality.A
AA-Turner commentedon Apr 11, 2025
https://docs.python.org/3.14/ is now showing as having the scripts again, please could you confirm? Sorry for the trouble.
Is there a good way to set all of the salt-managed environment variables at once in a shell for when doing manual rebuilds?
A
hugovk commentedon Apr 11, 2025
I also see the Plausible scripts at https://docs.python.org/3.14/ and the view counts are increasing again:
https://plausible.io/docs.python.org?period=realtime&keybindHint=R
ewdurbin commentedon Apr 11, 2025
Probably the least intrusive way would be to update the scripts to read from a config file in like an xdg style way, allowing us to set a server wide setting that is picked up by the script when run in cron, interactively, or when using sudo.
Then salt could write the sentry dsn, fastly bits, and the analytics bit to /etc/....somethingoranother, and users could have local overrides.
AA-Turner commentedon Apr 11, 2025
Symlinks have updated, I now see plausible on https://docs.python.org/3/.
A
hugovk commentedon Apr 11, 2025
Opened #266 as a reminder for this.