ManageIQ / miq_bot

ManageIQ Bot
Apache License 2.0
15 stars 39 forks source link

Yamllint tests fail if yamllint isn't installed #379

Open bdunne opened 6 years ago

bdunne commented 6 years ago
    Failure/Error: _out, err, _ps = Open3.capture3("yamllint -v")

     Errno::ENOENT:
       No such file or directory - yamllint
     # ./app/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder.rb:129:in `yamllint_version'
     # ./app/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder.rb:45:in `header'
     # ./app/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder.rb:59:in `build_comments'
     # ./app/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder.rb:13:in `comments'
     # ./spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder_spec.rb:15:in `block (3 levels) in <top (required)>'
     # ./spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder_spec.rb:21:in `block (3 levels) in <top (required)>'
miq-bot commented 4 years ago

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the traige process documentation.

bdunne commented 4 years ago

Copying in comment from @Fryguy in #392 since these are essentially the same issue...

There are a few approaches to fixing this...not sure what's best

* When the yamllint files don't exist, use a shared file from guides

* When the yamllint files don't exist, assuming linting is disabled and don't lint at all

* Add enable/disable support for individual linters, then fail or fallback when the files don't exist

* Send an email instead of making a comment

Also, should the same rules apply for haml lint and rubocop as well?