You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Progressive mode is broken when there is at least one error. This is a regression introduced in ansible-lint 6.8.2. I think it was introduced by 388d015.
Run ansible-lint --progressive in repository that has at least one problem that wasn't introduced in the most recent commit. For an example of such repository, clone https://gist.github.com/ce4dec8ad7192ba9b08502d64e29a0f8.git.
Desired Behavior
--progressive should return 0 status code if no new issues were introduced.
Actual Behavior
I get status code 2 after running ansible-lint --progressive.
$ poetry run ansible-lint --progressive
WARNING Total violations not increased since previous commit, will mark result as success. (1 -> 0)
WARNING Marked 1 previously known violation(s) as ignored due to progressive mode.
WARNING Listing 1 violation(s) marked as ignored, likely already known
yaml[colons]: Too many spaces after colon
blah.yml:1
Rule Violation Summary
count tag profile rule associated tags
1 yaml[colons] basic formatting, yaml
Failed after min profile: 1 failure(s), 0 warning(s) on 4 files.
$ echo $?
2
The text was updated successfully, but these errors were encountered:
Summary
Progressive mode is broken when there is at least one error. This is a regression introduced in ansible-lint 6.8.2. I think it was introduced by 388d015.
Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
NixOS unstable, Python 3.10, installed using Poetry
STEPS TO REPRODUCE
Run
ansible-lint --progressive
in repository that has at least one problem that wasn't introduced in the most recent commit. For an example of such repository, clonehttps://gist.github.com/ce4dec8ad7192ba9b08502d64e29a0f8.git
.Desired Behavior
--progressive
should return0
status code if no new issues were introduced.Actual Behavior
I get status code
2
after runningansible-lint --progressive
.The text was updated successfully, but these errors were encountered: