Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin packages for ansible-lint #182

Merged
merged 4 commits into from
Jun 6, 2024

Conversation

jsf9k
Copy link
Member

@jsf9k jsf9k commented May 21, 2024

🗣 Description

This pull request removes the current version pin on the ansible-core Python package, replacing it with a lower bound that guarantees we will never use the problematic versions.

💭 Motivation and context

We can do this because new versions of the ansible-core Python package (2.16.7 and 2.17.0) have been released that do not suffer from the bug discussed in ansible/ansible#82702. This bug broke any symlinked files in vars, tasks, etc. for any Ansible role installed via ansible-galaxy.

🧪 Testing

All automated tests pass.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

jsf9k and others added 3 commits May 21, 2024 15:30
New versions of ansible-core (2.16.7 and 2.17.0) have been released
that do not suffer from the bug discussed in ansible/ansible#82702.
This bug broke any symlinked files in vars, tasks, etc. for any
Ansible role installed via ansible-galaxy.

All versions later than ansible-core 2.16.7 and 2.17.0 should function
as expected.

Co-authored-by: Nick <[email protected]>
The line is not only unnecessary, it was commented out to boot!
…lint

On its own ansible-lint does not pull in ansible, only ansible-core.
Therefore, if an Ansible module lives in ansible instead of
ansible-core, the linter will complain that the module is unknown.  In
these cases it is necessary to add the ansible package itself as an
additional dependency, with the same pinning as is done in
requirements-test.txt of cisagov/skeleton-ansible-role.
@jsf9k jsf9k added the dependencies Pull requests that update a dependency file label May 21, 2024
@jsf9k jsf9k self-assigned this May 21, 2024
@jsf9k jsf9k marked this pull request as ready for review May 21, 2024 19:40
@jsf9k jsf9k requested a review from a team May 21, 2024 19:40
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@mcdonnnj mcdonnnj left a comment

Choose a reason for hiding this comment

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

LGTM with one small suggestion.

.pre-commit-config.yaml Outdated Show resolved Hide resolved
The pin now agrees with what is in cisagov/skeleton-ansible-role.

Co-authored-by: Nick <[email protected]>
@mcdonnnj mcdonnnj added this pull request to the merge queue Jun 6, 2024
Merged via the queue into develop with commit 7ddea47 Jun 6, 2024
4 checks passed
@mcdonnnj mcdonnnj deleted the improvement/pin-packages-for-ansible-lint branch June 6, 2024 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
Development

Successfully merging this pull request may close these issues.

4 participants