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

Unable to identify where is the error with the lint checks implemented on the Ansible projects #5838

Closed
camilamacedo86 opened this issue Jun 8, 2022 · 5 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. language/ansible Issue is related to an Ansible operator project lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Milestone

Comments

@camilamacedo86
Copy link
Contributor

camilamacedo86 commented Jun 8, 2022

Bug Report

See:

Warning: [indentation] wrong indentation: expected 12 but found 14
Warning: [indentation] wrong indentation: expected 12 but found 10
Error: [trailing-spaces] trailing spaces
Error: [trailing-spaces] trailing spaces
Error: [trailing-spaces] trailing spaces
Error: [trailing-spaces] trailing spaces
Warning: [indentation] wrong indentation: expected 12 but found 14
Warning: [empty-lines] too many blank lines (1 > 0)
ERROR: Lint failed: Command 'set -e
An error occurred during the test sequence action: 'lint'. Cleaning up.
yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .
' returned non-zero exit status 1.: Command 'set -e
--> Scenario: 'default'
yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .
' returned non-zero exit status 1.
--> Action: 'cleanup'
Skipping, cleanup playbook not configured.
--> Scenario: 'default'

What did you do?

Changes in the scaffold and tested it with default molecule tests scaffolded for advanced molecule sample

What did you expect to see?

Be able to know where is the error Error: [trailing-spaces] trailing spaces. What is the file? what is the line?

What did you see instead? Under which circumstances?

Only errors and warnings without any info which makes it very harder we are able to sort them out.

Environment

Operator type:

/language ansible

$ operator-sdk version

master

See the ci test with : https://github.com/operator-framework/operator-sdk/runs/6790333018?check_suite_focus=true#step:5:1816

@varshaprasad96
Copy link
Member

This issue seems to be related to ansible's linter. We would have to check if the linter accepts any arguments to give us a verbose error with filenames and line numbers. If not, the next step would be to open an issue with anisble's linter project and follow up with them.

@varshaprasad96 varshaprasad96 added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels Jun 13, 2022
@varshaprasad96 varshaprasad96 added this to the Backlog milestone Jun 13, 2022
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 12, 2022
@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 12, 2022
@openshift-bot
Copy link

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci openshift-ci bot closed this as completed Nov 12, 2022
@openshift-ci
Copy link

openshift-ci bot commented Nov 12, 2022

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. language/ansible Issue is related to an Ansible operator project lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

No branches or pull requests

3 participants