Skip to content

Don't require empty clones directory#153

Merged
m-aciek merged 8 commits into
mainfrom
dont-require-empty-clones-dir
Dec 16, 2025
Merged

Don't require empty clones directory#153
m-aciek merged 8 commits into
mainfrom
dont-require-empty-clones-dir

Conversation

@m-aciek
Copy link
Copy Markdown
Collaborator

@m-aciek m-aciek commented Nov 18, 2025

Clone/update repositories depending on presence (#150 (comment)).

Logs from a non-first run:

python generate.py 
INFO:root:starting at 2025-11-18 00:24:45.070584+00:00
venv already exists.
To recreate it, remove it first with `make clean-venv'.
mkdir -p build
Building NEWS from Misc/NEWS.d with blurb
[…]/pydocs-translation-dashboard/clones/cpython/Doc/build/NEWS is already up to date
PATH=./venv/bin:$PATH sphinx-build --builder gettext --doctree-dir build/doctrees --jobs auto  --doctree-dir build/doctrees-gettext  --fail-on-warning . build/gettext 
Running Sphinx v8.2.3
loading translations [en]... done
matplotlib is not installed, social cards will not be generated
loading pickled environment... done
building [gettext]: targets for 8 template files
[…]
build succeeded.

The message catalogs are in build/gettext.

failure: 3.14 sanketgarade/python-doc-mr: clone or switch
failure: 3.14 CuriousLearner/python-docs-hi-in: clone or switch
failure: 3.14 Abdur-rahmaanJ/python-docs-ar: clone or switch
failure: 3.14 revisto/python-docs-fa: clone or switch
failure: 3.14 python/python-docs-it: clone or switch
failure: 3.13 sanketgarade/python-doc-mr: clone or switch
failure: 3.13 Abdur-rahmaanJ/python-docs-ar: clone or switch
success: 3.14 python/python-docs-el: clone or switch
success: 3.14 python/python-docs-ko: clone or switch
success: 3.14 python/python-docs-bn-in: clone or switch
failure: 3.12 sanketgarade/python-doc-mr: clone or switch
failure: 3.12 Abdur-rahmaanJ/python-docs-ar: clone or switch
success: 3.13 revisto/python-docs-fa: clone or switch
success: 3.13 python/python-docs-it: clone or switch
success: 3.13 CuriousLearner/python-docs-hi-in: clone or switch
success: 3.14 python/python-docs-fr: clone or switch
failure: 3.11 Abdur-rahmaanJ/python-docs-ar: clone or switch
success: 3.14 python/python-docs-pt-br: clone or switch
failure: 3.11 sanketgarade/python-doc-mr: clone or switch
success: 3.14 python/python-docs-pl: clone or switch
success: 3.14 python/python-docs-id: clone or switch
success: 3.14 python/python-docs-hu: clone or switch
success: 3.14 python/python-docs-ja: clone or switch
failure: 3.10 sanketgarade/python-doc-mr: clone or switch
failure: 3.10 Abdur-rahmaanJ/python-docs-ar: clone or switch
failure: master sanketgarade/python-doc-mr: clone or switch
success: master Abdur-rahmaanJ/python-docs-ar: clone or switch
success: main sanketgarade/python-doc-mr: clone or switch
ERROR:root:Error merging clones/translations/python/python-docs-it/whatsnew/3.12.po. Replaced with clones/cpython/Doc/build/gettext/whatsnew/3.12.pot
Traceback (most recent call last):
[…]
OSError: Syntax error in po file clones/translations/python/python-docs-it/whatsnew/3.12.po (line 4361)
WARNING:root:No cache found
[…]
WARNING:root:No cache found
failure: 3.14 python/python-docs-es: clone or switch
success: 3.14 MLGRussianXP/python-docs-ru: clone or switch
success: 3.13 python/python-docs-es: clone or switch
success: 3.14 python/python-docs-zh-cn: clone or switch
success: 3.14 python/python-docs-sv: clone or switch
failure: 3.14 python/python-docs-tr: clone or switch
failure: 3.14 python/python-docs-uk: clone or switch
failure: 3.13 python/python-docs-tr: clone or switch
success: 3.13 python/python-docs-uk: clone or switch
success: 3.12 python/python-docs-tr: clone or switch
success: 3.14 python/python-docs-zh-tw: clone or switch

📊 Dashboard preview 📊: https://python-docs-translations.github.io/dashboard/153/merge/

@m-aciek m-aciek mentioned this pull request Nov 18, 2025
@StanFromIreland StanFromIreland self-requested a review November 18, 2025 07:28
Comment thread generate.py Outdated
Comment on lines +46 to +49
except subprocess.CalledProcessError as e:
e.add_note(
'Try pruning clones/cpython/Doc/venv and/or clones/cpython/Doc/build/doctrees-gettext.'
)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could run make ... clean?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automatically? 🤔

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the clean before: e4c4dbc

@m-aciek m-aciek merged commit 2cf4326 into main Dec 16, 2025
4 of 5 checks passed
@m-aciek m-aciek deleted the dont-require-empty-clones-dir branch December 16, 2025 00:12
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.

2 participants