Skip to content

Upgrade Refit to v10.2.0 due to critical bugs found in 10.1.6#1108

Merged
christianhelle merged 1 commit into
mainfrom
refit-10.2.0
Jun 5, 2026
Merged

Upgrade Refit to v10.2.0 due to critical bugs found in 10.1.6#1108
christianhelle merged 1 commit into
mainfrom
refit-10.2.0

Conversation

@christianhelle

@christianhelle christianhelle commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • Chores
    • Updated Refit and Refit.HttpClientFactory dependencies to version 10.2.0 across multiple projects.

@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@christianhelle, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 1 minute and 43 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 58129a3e-4a53-470b-bd8c-0819510c737f

📥 Commits

Reviewing files that changed from the base of the PR and between cfb3012 and 1908484.

📒 Files selected for processing (8)
  • src/Refitter.SourceGenerator.Tests/Refitter.SourceGenerator.Tests.csproj
  • src/Refitter.SourceGenerator/Refitter.SourceGenerator.csproj
  • src/Refitter.Tests/Scenarios/GenerateJsonSerializerContextPolymorphismTests.cs
  • test/ConsoleApp/Directory.Build.props
  • test/HelloWorld/HelloWorld/HelloWorld.csproj
  • test/MSBuild/Refitter.MSBuild.Tests.csproj
  • test/MinimalApi/MinimalApi.csproj
  • test/MultipleFiles/Client/Client.csproj
📝 Walkthrough

Walkthrough

This pull request updates Refit and Refit.HttpClientFactory NuGet package dependencies from version 10.1.6 to 10.2.0 across all project files in the repository, including source generator projects, test projects, and shared build properties.

Changes

Refit Package Version Upgrade

Layer / File(s) Summary
Refit and Refit.HttpClientFactory version upgrades
src/Refitter.SourceGenerator/Refitter.SourceGenerator.csproj, src/Refitter.SourceGenerator.Tests/Refitter.SourceGenerator.Tests.csproj, test/ConsoleApp/Directory.Build.props, test/HelloWorld/HelloWorld/HelloWorld.csproj, test/MSBuild/Refitter.MSBuild.Tests.csproj, test/MinimalApi/MinimalApi.csproj, test/MultipleFiles/Client/Client.csproj
Refit dependency bumped from 10.1.6 to 10.2.0 in source generator project and test projects; Refit.HttpClientFactory updated from 10.1.6 to 10.2.0 in test projects and shared build properties.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • christianhelle/refitter#872: Adds Refit.HttpClientFactory package reference to an embedded test project; complements this PR's version update strategy across build projects.

Suggested labels

dependencies, .NET, bugfix

Poem

🐰 Hops with glee through the version tree,
From 10.1.6 to 10.2, set free!
Refit packages dance in unison song,
A dependency update, steady and strong. 🚀

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title accurately describes the main change: upgrading Refit dependencies from 10.1.6 to 10.2.0 across multiple project files, and provides context about critical bugs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refit-10.2.0

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 and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
test/MultipleFiles/Client/Client.csproj (1)

9-10: ⚡ Quick win

Reminder: Ensure all tests pass before merging.

Based on learnings, before merging this PR, you must:

  1. Run dotnet build -c Release src/Refitter.slnx and ensure zero errors
  2. Run dotnet test -c Release src/Refitter.slnx and ensure all tests pass (network-related failures in sandboxed environments are acceptable)
  3. Run dotnet format src/Refitter.slnx before committing or CI will fail
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@test/MultipleFiles/Client/Client.csproj` around lines 9 - 10, Before merging,
ensure the solution builds, tests, and is formatted: run dotnet build -c Release
src/Refitter.slnx and fix any compile errors (check changes around the
PackageReference entries for Refit and Refit.HttpClientFactory in
Client.csproj), then run dotnet test -c Release src/Refitter.slnx and address
any failing tests (note network-related sandbox failures may be acceptable), and
finally run dotnet format src/Refitter.slnx and commit the formatted changes so
CI passes.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@test/ConsoleApp/Directory.Build.props`:
- Around line 34-35: The test embeds a RuntimeProject string in
src/Refitter.Tests/Scenarios/GenerateJsonSerializerContextPolymorphismTests.cs
that hardcodes <PackageReference Include="Refit.HttpClientFactory"
Version="10.1.6" /> so it won’t inherit Directory.Build.props; update that
embedded version to 10.2.0 (or change the test to reference a shared version
constant) in the RuntimeProject string inside the
GenerateJsonSerializerContextPolymorphismTests class and then re-run dotnet test
-c Release src/Refitter.slnx to verify.

---

Nitpick comments:
In `@test/MultipleFiles/Client/Client.csproj`:
- Around line 9-10: Before merging, ensure the solution builds, tests, and is
formatted: run dotnet build -c Release src/Refitter.slnx and fix any compile
errors (check changes around the PackageReference entries for Refit and
Refit.HttpClientFactory in Client.csproj), then run dotnet test -c Release
src/Refitter.slnx and address any failing tests (note network-related sandbox
failures may be acceptable), and finally run dotnet format src/Refitter.slnx and
commit the formatted changes so CI passes.
🪄 Autofix (Beta)

❌ Autofix failed (check again to retry)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9edaedef-3920-423b-9f82-20cb4b8239c4

📥 Commits

Reviewing files that changed from the base of the PR and between 5031b66 and cfb3012.

📒 Files selected for processing (7)
  • src/Refitter.SourceGenerator.Tests/Refitter.SourceGenerator.Tests.csproj
  • src/Refitter.SourceGenerator/Refitter.SourceGenerator.csproj
  • test/ConsoleApp/Directory.Build.props
  • test/HelloWorld/HelloWorld/HelloWorld.csproj
  • test/MSBuild/Refitter.MSBuild.Tests.csproj
  • test/MinimalApi/MinimalApi.csproj
  • test/MultipleFiles/Client/Client.csproj

Comment thread test/ConsoleApp/Directory.Build.props
@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

⚠️ Branch updated during autofix.

The branch was updated while autofix was in progress. Please try again.

@sonarqubecloud

sonarqubecloud Bot commented Jun 4, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.31%. Comparing base (7f860e8) to head (1908484).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1108   +/-   ##
=======================================
  Coverage   95.31%   95.31%           
=======================================
  Files          28       28           
  Lines        3012     3012           
=======================================
  Hits         2871     2871           
  Misses         45       45           
  Partials       96       96           
Flag Coverage Δ
unittests 95.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant