Skip to content

CI ignores rubocop failures (Ruby Style job is continue-on-error) and rubocop is currently failing #167

Description

@silug

The Ruby Style job in .github/workflows/pr_tests.yml is configured with continue-on-error: true, so bundle exec rake rubocop failures do not fail CI — they are silently ignored.

Under the OpenVox test stack (voxpupuli-test, which pins rubocop 1.85 / rubocop-rspec 3.9), rubocop currently fails here:

spec/acceptance/suites/default/01_ignore_spec.rb:11 & :13  RSpec/LeakyLocalVariable
spec/unit/puppet/provider/iptables_default_policy/enforce_spec.rb:3 & :4  RSpec/LeakyLocalVariable
spec/unit/puppet/type/iptables_default_policy_spec.rb:5  RSpec/LeakyLocalVariable
37 files inspected, 5 offenses detected

Follow-up

  • Fix the offense(s) above.
  • Remove continue-on-error: true from the Ruby Style job so rubocop is actually enforced (note: pr_tests.yml is maintained by puppetsync, so the template likely needs updating too).

Filed as a follow-up during the round-2 OpenVox 9 / Ruby 4.0 migration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions