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

Update direct Molecule dependencies: ansible-lint>=4.0.1,<5 #1675

Merged
merged 2 commits into from Jan 24, 2019

Conversation

themr0c
Copy link
Contributor

@themr0c themr0c commented Jan 17, 2019

Closes #1607

Signed-off-by: Fabrice Flore-Thebault themr0c@users.noreply.github.com

PR Type

  • Bugfix Pull Request

Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>
requirements.txt Outdated Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
@webknjaz webknjaz assigned webknjaz and themr0c and unassigned webknjaz Jan 18, 2019
@webknjaz webknjaz changed the title references #1607 update requirements: ansible-lint>=4.0.1 Update direct Molecule dependencies: ansible-lint>=4.0.1,<5 Jan 18, 2019
Co-Authored-By: themr0c <themr0c@users.noreply.github.com>
@themr0c
Copy link
Contributor Author

themr0c commented Jan 21, 2019

hi, i believe travis errors are not related to this commit

@webknjaz
Copy link
Member

@themr0c @gundalow I've restarted failing jobs (which indeed look unrelated), other than that it's good to merge.

@gundalow gundalow added this to the v2.20 milestone Jan 23, 2019
@gundalow gundalow merged commit 37eb4d3 into ansible:master Jan 24, 2019
@gundalow
Copy link
Contributor

Thanks everyone, merged.

themr0c added a commit to themr0c/molecule that referenced this pull request Jan 28, 2019
…1675)

* references ansible#1607 update requirements: ansible-lint>=4.0.1

Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>

* Update requirements.txt

Co-Authored-By: themr0c <themr0c@users.noreply.github.com>
themr0c added a commit to themr0c/molecule that referenced this pull request Jan 28, 2019
…1675)

* references ansible#1607 update requirements: ansible-lint>=4.0.1

Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>

* Update requirements.txt

Co-Authored-By: themr0c <themr0c@users.noreply.github.com>
themr0c added a commit to themr0c/molecule that referenced this pull request Jan 28, 2019
…1675)

* references ansible#1607 update requirements: ansible-lint>=4.0.1

Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>

* Update requirements.txt

Co-Authored-By: themr0c <themr0c@users.noreply.github.com>
ssbarnea pushed a commit to ssbarnea/molecule that referenced this pull request Jan 31, 2019
…1675)

* references ansible#1607 update requirements: ansible-lint>=4.0.1

Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>

* Update requirements.txt

Co-Authored-By: themr0c <themr0c@users.noreply.github.com>
@Rickkwa
Copy link

Rickkwa commented Jan 31, 2019

Hi all, I came across this and I have a concern I'm hoping you can take a look at regarding upgrading the ansible-lint version. Let me preface this by saying that I am new to the project and I haven't been following along with the development changes, nor have I seen/ran the test cases that Molecule has. There may be another PR that has addressed my issue, I do not know.

I have Molecule 2.19.0 installed (ie. I'm not running the latest dev version), and simply upgrading the version of ansible-lint to 4.0.1 causes the linter to not catch errors anymore.

Here is how I've reproduced it:

# Running on Centos 7, with Python 2.7.5

virtualenv ansible-2.7.5
source ansible-2.7.5/bin/activate

mkdir -p testrole/tasks
cd testrole

cat <<EOF > tasks/main.yml
---

- file:
    path: /tmp/deleteme
    state: touch
EOF

pip install ansible==2.7.5 molecule==2.19.0

ansible-lint --version
# I get 3.4.23 as expected from the pinned version

molecule init scenario -r testrole
molecule lint

# Expect to see lint error "All tasks should be named"

pip install --upgrade ansible-lint
ansible-lint --version
# I get 4.0.1

molecule lint
# See no linting errors, which is unexpected

ansible-lint .
# But running the linter directly still gives me "All tasks should be named"

@Rickkwa
Copy link

Rickkwa commented Feb 3, 2019

I've tried with the current latest commit in master (abc4df6) instead of 2.19.0 and yeah, molecule lint doesn't catch the linting error, but ansible-lint . does.

@decentral1se
Copy link
Contributor

decentral1se commented Feb 4, 2019

@Rickkwa, thanks for doing some digging. There was some discussion on the IRC around ansible-lint being invoked by Molecule incorrectly. There was a documentation PR submitted for configuring ansible-lint when the default Molecule options does not work (for some reason): #1722. So, I'm starting to get suspicious ;) I'm going to create a new issue.

EDIT: Created #1723.

brianhelba added a commit to brianhelba/molecule that referenced this pull request Mar 1, 2021
This was added in ansible#1675 and no longer seems to be necessary.
Version `5` of `ansible-lint` is stable and not incompatible with `molecule`.
brianhelba added a commit to brianhelba/molecule that referenced this pull request Mar 1, 2021
This was added in ansible#1675 and no longer seems to be necessary.
Version `5` of `ansible-lint` is stable and not incompatible with `molecule`.

Since `ansible-lint` must be installed with the `[community]` extra
in version `5`, this makes version `5` the new minimum version, to
ensure the `[community]` extra is not applied to version `4`.
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.

Latest molecule release uses older release of ansible-lint
5 participants