Downgrade simplecov to 0.22.0 — SonarQube can't parse 1.0 JSON schema - #1435
Merged
Conversation
IgnacioN99
marked this pull request as ready for review
July 31, 2026 17:05
andresg4
approved these changes
Jul 31, 2026
…chema) simplecov 1.0.0 changed the JSON formatter output (top-level $schema field, relative file paths) in a way SonarQube's SimpleCovSensor can't parse, so every CI run fails coverage import with "Cannot read coverage report file, expecting standard SimpleCov JSON formatter output". Confirmed via sonar-ruby PR #160 (open, unreviewed) and simplecov-ruby/simplecov#1228. Pinning back to 0.22.0 until sonar-ruby ships a fix. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
IgnacioN99
force-pushed
the
fix/simplecov-sonar-compat
branch
from
July 31, 2026 17:07
c1eb36b to
f61694c
Compare
…arsing Prevents dependabot from re-proposing the bump we just reverted for SonarQube compatibility (see previous commit / sonar-ruby PR #160). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
santir489
approved these changes
Jul 31, 2026
bundle lock --update simplecov (run via docker, linux-only) had stripped the arm64-darwin/x86_64-linux platform entries for ffi, nokogiri, and pg. Restored them so the lockfile still resolves on both dev (macOS) and CI (linux). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Board:
Description:
CI was failing on the "Merge Results" job with:
Root cause:
simplecov1.0.0 (bumped from 0.22.0 in #1434) changed the JSON formatter output in two ways SonarQube'sSimpleCovSensorcan't handle:$schemastring field, which breaks the sensor's naiveJSONObjectprobe (ClassCastException).This is a known, currently-unfixed incompatibility:
This PR pins
simplecovback to~> 0.22.0in the Gemfile and locksdocile,simplecov-html, andsimplecov_json_formatterback to their prior versions (the JSON formatter was merged into simplecov core in 1.0, dropping those as separate deps).Notes:
~> 1.0at that point.Tasks:
simplecovto~> 0.22.0in Gemfilebundle lock --update simplecov(Docker)Risk:
Preview: