Skip to content

update build matrix#213

Merged
goodviber merged 18 commits intomainfrom
update-ruby
Nov 5, 2025
Merged

update build matrix#213
goodviber merged 18 commits intomainfrom
update-ruby

Conversation

@goodviber
Copy link
Copy Markdown
Contributor

@goodviber goodviber commented Oct 29, 2025

Update the test matrix ruby to include 3.4 and rails 8, removing ruby 3.2 and rails 7.1
Some tests were adjusted to allow for formatting etc, and Timezone we with a sqlite option to settle some flaky test fails.

@goodviber goodviber self-assigned this Oct 29, 2025
@goodviber goodviber added the enhancement New feature or request label Oct 29, 2025
@goodviber goodviber requested review from asatwal and Copilot November 3, 2025 17:48
Copy link
Copy Markdown

Copilot AI left a comment

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 upgrades the project's testing infrastructure to support Rails 8.0 and newer Ruby versions, while removing support for older versions (Rails 7.1 and Ruby 3.2). The changes also improve database timestamp handling and fix test assertions.

  • Upgrades Rails version support from 7.1/7.2 to 7.2/8.0
  • Updates Ruby version support from 3.2/3.3 to 3.3/3.4
  • Improves database timestamp fetching to be more explicit about timezone handling
  • Refactors test assertions to use more robust string comparison

Reviewed Changes

Copilot reviewed 7 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/build.yml Updates CI matrix to test Ruby 3.3/3.4 and Rails 7.2/8.0
Appraisals Comments out Rails 7.1, updates Rails 7.2 and adds Rails 8.0 configuration
gemfiles/rails_7.2.gemfile Upgrades rspec-rails to 8.0.2 for Rails 7.2
gemfiles/rails_8.0.gemfile Creates new gemfile for Rails 8.0 with rspec-rails 8.0.2
gemfiles/rails_7.1.gemfile.lock Removes lockfile for deprecated Rails 7.1
gemfiles/rails_7.2.gemfile.lock Removes lockfile (will be regenerated)
Gemfile.lock Updates dependencies including nokogiri and sqlite3 versions
lib/dfe/analytics/testing/helpers.rb Increases RSA key size from 2014 to 2048 bits for security
lib/dfe/analytics/services/entity_table_checks.rb Refactors timestamp fetching to handle multiple DB adapters with explicit timezone conversion
spec/dfe/analytics/send_events_spec.rb Refactors test assertions and removes debug statement
Comments suppressed due to low confidence (1)

gemfiles/rails_8.0.gemfile:6

  • rspec-rails version 8.0.2 does not exist. As of the latest stable release, rspec-rails is at version 7.x. The main Gemfile.lock shows rspec-rails 7.1.0 is being used, which suggests this version specification is incorrect and may cause bundle install failures.

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

expect(log_message).to include('"key"=>"first_name", "value"=>["HIDDEN"]')
expect(log_message).to include('"key"=>"email", "value"=>"user@example.com"')
expect(log_message).to include('"key"=>"phone_number", "value"=>"1234567890"')
puts log_message
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

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

Debug statement (puts) should be removed before merging to production. This appears to be leftover debugging code.

Suggested change
puts log_message

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator

@asatwal asatwal left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@goodviber goodviber merged commit 7830033 into main Nov 5, 2025
20 of 30 checks passed
@goodviber goodviber deleted the update-ruby branch November 5, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants