Skip to content

Conversation

@ZerocouldBR
Copy link

The docs-build.py checker was failing with FileNotFoundError when trying to copy directories and files that don't exist in the repository (such as 'bin', 'lib', etc.). These directories are only present after cloning ansible-core using 'nox -s clone-core'.

This fix adds existence checks before attempting to copy directories and files, making the test more robust and preventing errors when running in environments where ansible-core hasn't been cloned yet.

The docs-build.py checker was failing with FileNotFoundError when trying
to copy directories and files that don't exist in the repository (such as
'bin', 'lib', etc.). These directories are only present after cloning
ansible-core using 'nox -s clone-core'.

This fix adds existence checks before attempting to copy directories and
files, making the test more robust and preventing errors when running in
environments where ansible-core hasn't been cloned yet.
@oraNod
Copy link
Contributor

oraNod commented Nov 27, 2025

@ZerocouldBR Thanks for the pull request. It looks like your branch needs to be rebased against devel. In the .readthedocs.yaml config file on your branch I can see Python 3.11, which is causing ci to fail: https://github.com/ZerocouldBR/ansible-documentation/blob/fbe1813ee40305d23e434c16b73df9f5ed8429e6/.readthedocs.yaml#L11

While on devel it should be 3.12:

@felixfontein
Copy link
Collaborator

I think the tests should fail if the files it needs aren't there. I guess the error message could be improved on, but the check shouldn't run (and potentially pass) when things it needs aren't there.

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.

4 participants