Skip to content

fix(ci): pin slather to 2.8.5 - #254

Open
uc-brunosilva wants to merge 1 commit into
masterfrom
fix/ci-pin-slather-2.8.5
Open

uc-brunosilva wants to merge 1 commit into
masterfrom
fix/ci-pin-slather-2.8.5

Conversation

@uc-brunosilva

@uc-brunosilva uc-brunosilva commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

User description

Problem

test-ios fails in the Generate iOS HTML Report step on every PR since 2026-10-09, while the tests themselves pass (84 tests, 0 failures, Test Succeeded):

slather-2.8.6/lib/slather/project.rb:237:in `profdata_coverage_dir': undefined method `first' for nil:NilClass (NoMethodError)

Cause

gem install slather is unpinned. slather 2.8.6 was published on 2026-10-09; the last green test-ios run (2026-10-07, fix/MSDK-4862…) installed 2.8.5. Same workflow, same Xcode 16.1, same coverage flags, only the slather version differs.

Fix

Pin gem install slather -v 2.8.5. Found while validating the 2.33.0 bump in #253 (unrelated to the bump itself).

🤖 Generated with Claude Code


CodeAnt-AI Description

Restore iOS coverage report generation in CI

What Changed

  • CI uses Slather 2.8.5 to generate the iOS HTML coverage report, avoiding a failure with the newer release after tests pass.

Impact

✅ iOS coverage reports generated after passing tests
✅ Fewer CI failures during coverage reporting

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

slather 2.8.6 (published 2026-10-09) fails on the iOS coverage step with
"undefined method 'first' for nil" in profdata_coverage_dir, even though
all 84 sampleTests pass. The last green run (2026-10-07) used 2.8.5.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codeant-ai

codeant-ai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 75bfc28 Oct 14, 2026 · 11:19 11:20

@codeant-ai

codeant-ai Bot commented Oct 14, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@qodo-code-review

qodo-code-review Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

Grey Divider

Sorry, something went wrong

We weren't able to complete the code review on our side. Please try again manually by commenting /agentic_review on this PR.

Grey Divider

Qodo Logo

@coderabbitai

coderabbitai Bot commented Oct 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e8da896e-f170-4546-8881-ae192310def5
📥 Commits

Reviewing files that changed from the base of the PR and between 4e565d2 and 75bfc28.

📒 Files selected for processing: 1
  • .github/workflows/ci.yml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Pin Slather 2.8.5 to restore iOS coverage reporting

🐞 Bug fix ⚙️ Configuration changes 🕐 Less than 5 minutes

Grey Divider

AI Description

• Pin Slather to the last known working version in the iOS CI job.
• Prevent a Slather 2.8.6 error from failing coverage reporting after tests pass.
High-Level Assessment

Pinning the last known working release is the smallest targeted fix. An unpinned install would retain the reported failure; a newer version should be considered once its coverage behavior is verified.

Files changed (1) +1 / -1

Bug fix (1) +1 / -1
ci.ymlPin Slather for the iOS coverage step +1/-1

Pin Slather for the iOS coverage step

• Changes the test-ios job to install Slather 2.8.5 instead of the latest release. This avoids the reported 2.8.6 failure when generating the iOS HTML coverage report.

.github/workflows/ci.yml

@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Oct 14, 2026
@pantoaibot

pantoaibot Bot commented Oct 14, 2026

Copy link
Copy Markdown

PR Summary:

Pin Slather to 2.8.5 in CI to stabilize iOS coverage reporting.

  • Modified .github/workflows/ci.yml
  • Changed "gem install slather" to "gem install slather -v 2.8.5" in the CI step that generates iOS HTML coverage
  • Effect: CI will use a fixed Slather version (2.8.5) to avoid breakage from upstream gem changes and ensure reproducible coverage artifacts
  • No other build/test logic or steps were altered; no breaking changes expected

Reviewed by Panto AI

@codeant-ai

codeant-ai Bot commented Oct 14, 2026

Copy link
Copy Markdown

CodeAnt PR Risk: Low Risk

  • The PR appears safe to merge; it only pins the Slather version installed by CI.

Assessed commit: 75bfc283e131

@pantoaibot

pantoaibot Bot commented Oct 14, 2026

Copy link
Copy Markdown

Reviewed up to commit:75bfc283e131176ad7166180f4a041e84fec53fb

Looks good to me! 👍

Additional Suggestion
.github/workflows/ci.yml, line:115-121 Add a short verification step immediately after installing slather that fails early if the installed version is not the expected one, e.g. `slather --version | grep -q "2.8.5" || (slather --version; exit 1)`. This prevents silent future regressions if upstream versions change or install fails to pick the pinned version.
      - name: Install Slather
        run: |
          gem install slather -v 2.8.5 --no-document
          slather --version | grep -q "2.8.5" || (echo "Unexpected slather version:"; slather --version; exit 1)
Others - Good immediate fix: pinning slather to 2.8.5 addresses the CI break caused by slather 2.8.6 (released 2026-10-09). Make the pin explicit in source (Gemfile) and add a short comment in the workflow referencing the regression date and the failing stacktrace to make the rationale discoverable for future maintainers. Plan to unpin/update when slather releases a fixed version and verify the fix in CI before removing the pin.
      - name: Install Slather
        run: |
          # Pinning slather to 2.8.5 due to coverage regression in 2.8.6
          # (NoMethodError: undefined method `first' for nil:NilClass in project.rb:237)
          gem install slather -v 2.8.5 --no-document

      - name: Generate iOS HTML Report
        working-directory: ./sample/ios
        run: |
          slather coverage --html --output-directory html-report --scheme sample --workspace sample.xcworkspace sample.xcodeproj

Reviewed by Panto AI

@apiiro

apiiro Bot commented Oct 14, 2026

Copy link
Copy Markdown

WORKFLOW-2 · Apps team PR Open

Policies: "Pipeline misconfiguration added", "Pipeline misconfiguration removed"

⚠️ Apiiro found 2 material changes ⚠️

Other

  • ⚠ Code finding Ensure top-level permissions are not set to write-all (ci.yml)
    • ⚠ New misconfiguration: Ensure top-level permissions are not set to write-all. Detected in .github/workflows/ci.yml
  • Code finding Ensure top-level permissions are not set to write-all (ci.yml)
    • ℹ Misconfiguration: Ensure top-level permissions are not set to write-all. Removed from .github/workflows/ci.yml

Repository: react-native-sdk
Applications: Usercentrics Complete bundle,Usercentrics CMP

View in Apiiro

@uc-brunosilva uc-brunosilva mentioned this pull request Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant