arduino_ci icon indicating copy to clipboard operation
arduino_ci copied to clipboard

rubocop on Windows: 22 files inspected, 22 offenses detected

Open jgfoster opened this issue 4 years ago • 4 comments

It complains about CR characters being present but the test does not fail. This raises a couple questions:

  • If we have an automated test that reports a problem but the framework doesn't tell us about it, then something is broken.
  • Why do 22 files have CR on Windows?

jgfoster avatar Oct 13 '21 06:10 jgfoster

I wonder if this has anything to do with the text=auto setting that we had applied earlier in the git config

ianfixes avatar Oct 13 '21 16:10 ianfixes

That's something that I'm investigating as part of #314 (and once we merge that we can revisit this). But even if it does explain the second issue it doesn't address the first issue of failing tests that aren't being reported by the CI system (see here for the problem).

jgfoster avatar Oct 13 '21 16:10 jgfoster

When rubocop and rspec are combined in one job, a failure in rubocop will be ignored. But if they are separated then the error will be caught. Compare the Linux workflow with the Windows workflow.

jgfoster avatar Oct 17 '21 05:10 jgfoster

I think they should definitely be separated. Also, I should set something up for presenting the rubocop failures as line-level annotations in the diff, not just a pass/fail.

Note to self: https://github.com/marketplace/actions/rubocop-annotate-action

ianfixes avatar Oct 28 '21 17:10 ianfixes