Skip to content

LEDO-814: Try to correct broken workflows#21

Merged
atwaddle-r7 merged 2 commits into
mainfrom
LEDO-814-fix-failing-workflows
May 29, 2026
Merged

LEDO-814: Try to correct broken workflows#21
atwaddle-r7 merged 2 commits into
mainfrom
LEDO-814-fix-failing-workflows

Conversation

@atwaddle-r7

@atwaddle-r7 atwaddle-r7 commented May 29, 2026

Copy link
Copy Markdown
Contributor

Description

Some changes to get workflows working again:

  • Jruby to version 9.4 for support with ubuntu 24.04
  • Formatting changes for rubocop
  • Also updated the fingerprint match tests to allow whitespace - as to provide compatibility with some different ruby versions.

Motivation and Context

Fixing failing workflows (https://rapid7.atlassian.net/browse/LEDO-814)

How Has This Been Tested?

Tested locally, and verified that commit was passing

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have updated the documentation accordingly (or changes are not required).
  • I have added tests to cover my changes (or new tests are not required).
  • All new and existing tests passed.

@atwaddle-r7 atwaddle-r7 changed the title Try to correct broken workflows LEDO-814: Try to correct broken workflows May 29, 2026
@sbhuiyan-r7 sbhuiyan-r7 requested a review from Copilot May 29, 2026 11:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to restore failing GitHub Actions workflows by updating the CI Ruby/JRuby matrix and making small formatting/test adjustments to reduce cross-Ruby/JRuby differences.

Changes:

  • Update CI to run against JRuby 9.4.
  • Relax match reporter spec expectation to tolerate whitespace variations in Hash#inspect output.
  • Apply small RuboCop-driven style cleanups in Recog::Fingerprint#match.

Impact Analysis:

  • Blast radius: low (CI configuration + specs; fingerprint.rb change appears style-only).
  • Data and contract effects: none identified from diff (no schema/payload changes).
  • Rollback and test focus: rollback is straightforward (revert commit); focus on CI matrix runs (especially JRuby) and spec/lib/recog/match_reporter_spec.rb stability across runtimes.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/ci.yml Updates the CI Ruby matrix to include JRuby 9.4.
lib/recog/fingerprint.rb RuboCop-style edits in fingerprint matching/interpolation guard logic.
spec/lib/recog/match_reporter_spec.rb Makes the match output assertion more tolerant of whitespace differences.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread spec/lib/recog/match_reporter_spec.rb Outdated
describe '#report' do
it 'prints matches' do
expect(formatter).to receive(:success_message).with('MATCH: {"data"=>"a match"}')
expect(formatter).to receive(:success_message).with(a_string_matching(/\AMATCH: \{"data"\s*=>\s*"a match"\}\z/))
Comment thread .github/workflows/ci.yml Outdated
fail-fast: false
matrix:
ruby-version: ['2.5', '2.6', '2.7', '3.0', '3.1', 'jruby-9.2', 'jruby']
ruby-version: ['2.5', '2.6', '2.7', '3.0', '3.1', 'jruby-9.4', 'jruby']
@atwaddle-r7 atwaddle-r7 merged commit 83af1b7 into main May 29, 2026
19 checks passed
@atwaddle-r7 atwaddle-r7 deleted the LEDO-814-fix-failing-workflows branch May 29, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants