GeezerVison is showing github.com — plausible analytics no longer loading · Issue #265 · python/docsbuild-scripts
plausible analytics no longer loading #265DescriptionReacted by Hugo van Kemenade Activityewdurbin commented on Apr 11, 2025 AA-Turner commented on Apr 11, 2025 I ran a manual rebuild for the security branches:
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.
A AA-Turner commented on 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 commented on Apr 11, 2025 ewdurbin commented on 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 commented on Apr 11, 2025 hugovk commented on Apr 11, 2025 Opened #266 as a reminder for this.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|