ci: improve ansible collection install robustness and pre-commit performance#211
Merged
ci: improve ansible collection install robustness and pre-commit performance#211
Conversation
…kflows **Added:** - Introduced retry logic with exponential backoff for Ansible Galaxy collection installs in both molecule and pre-commit workflows to improve reliability in case of network issues - Added caching for Ansible collections in the pre-commit workflow using actions/cache to speed up repeated runs **Changed:** - Set ANSIBLE_GALAXY_SERVER_TIMEOUT environment variable to 120 seconds for collection installs in all workflows to handle slow servers - Modified ansible-lint and docsible pre-commit hooks to only run on files within the `ansible/` directory and set `always_run` to false in `.pre-commit-config.yaml` to limit unnecessary executions **Removed:** - Removed unconditional ansible-galaxy install steps without retry logic from molecule and pre-commit workflows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Key Changes:
Added:
Changed:
ANSIBLE_GALAXY_SERVER_TIMEOUTenvironment variable to 120 seconds for more robust dependency installs in CIansible/directory and no longer always run, improving CI performance and reducing unnecessary runsRemoved: