Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 30, 2024

This PR contains the following updates:

Package Change Age Confidence
Divergic.Logging.Xunit 4.3.0 -> 4.3.1 age confidence

Release Notes

roryprimrose/Divergic.Logging.Xunit (Divergic.Logging.Xunit)

v4.3.1

Compare Source


Configuration

📅 Schedule: Branch creation - "every 2nd week starting on the 2 week of the year before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@bitwarden-bot bitwarden-bot changed the title [deps]: Update Divergic.Logging.Xunit to 4.3.1 [PM-12940] [deps]: Update Divergic.Logging.Xunit to 4.3.1 Sep 30, 2024
@bitwarden-bot
Copy link

Internal tracking:

@codecov
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.63%. Comparing base (d687e8a) to head (f2b058b).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4821      +/-   ##
==========================================
- Coverage   53.64%   53.63%   -0.01%     
==========================================
  Files        1926     1926              
  Lines       85720    85720              
  Branches     7687     7687              
==========================================
- Hits        45984    45980       -4     
- Misses      37964    37967       +3     
- Partials     1772     1773       +1     

☔ View full report in Codecov by Sentry.
📢 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.

@renovate renovate bot changed the title [PM-12940] [deps]: Update Divergic.Logging.Xunit to 4.3.1 [deps]: Update Divergic.Logging.Xunit to 4.3.1 Sep 30, 2024
@renovate renovate bot force-pushed the renovate/divergic.logging.xunit-4.x branch from 9c7c078 to f7ebec8 Compare September 30, 2024 07:42
@renovate renovate bot force-pushed the renovate/divergic.logging.xunit-4.x branch 2 times, most recently from 315d702 to afec0e6 Compare November 12, 2024 00:58
@renovate renovate bot force-pushed the renovate/divergic.logging.xunit-4.x branch from afec0e6 to 13c705f Compare November 25, 2024 19:32
@renovate renovate bot force-pushed the renovate/divergic.logging.xunit-4.x branch from 13c705f to f9125e8 Compare December 10, 2024 20:23
@renovate renovate bot force-pushed the renovate/divergic.logging.xunit-4.x branch from f9125e8 to f1a7770 Compare February 6, 2025 21:47
@renovate renovate bot force-pushed the renovate/divergic.logging.xunit-4.x branch 2 times, most recently from 988f872 to 2d17352 Compare August 13, 2025 13:26
@renovate renovate bot force-pushed the renovate/divergic.logging.xunit-4.x branch from 2d17352 to e41bc5c Compare August 24, 2025 10:48
@renovate renovate bot force-pushed the renovate/divergic.logging.xunit-4.x branch from e41bc5c to 72543ec Compare October 21, 2025 13:44
@renovate renovate bot force-pushed the renovate/divergic.logging.xunit-4.x branch from 72543ec to df55b5b Compare November 10, 2025 15:31
@renovate renovate bot force-pushed the renovate/divergic.logging.xunit-4.x branch from df55b5b to 7f3e6aa Compare November 18, 2025 14:34
@djsmith85 djsmith85 requested review from a team and amorask-bitwarden and removed request for a team November 26, 2025 19:48
@djsmith85
Copy link
Contributor

@amorask-bitwarden: FYI, package has been marked as deprecated and renamed to Neovolve.Logging.Xunit
source -> https://www.nuget.org/packages/Divergic.Logging.Xunit

@claude
Copy link
Contributor

claude bot commented Dec 8, 2025

Claude finished @renovate[bot]'s task —— View job


PR Review Complete ✓

Tasks

  • Gather context and review PR changes
  • Analyze code changes for quality, security, and best practices
  • Provide comprehensive review feedback

Overall Assessment: APPROVE

This PR successfully migrates from the deprecated Divergic.Logging.Xunit package (version 4.3.0) to its successor Neovolve.Logging.Xunit (version 6.3.0), along with modern C# refactoring of the test file.

Summary of Changes

1. Package Migration (test/Billing.Test/Billing.Test.csproj):

  • Removed: Divergic.Logging.Xunit version 4.3.0
  • Added: Neovolve.Logging.Xunit version 6.3.0
  • Note: This is a major version jump (4.x to 6.x), but the libraries maintain API compatibility

2. Test Code Refactoring (test/Billing.Test/Controllers/PayPalControllerTests.cs):

  • Migrated to C# 12 primary constructor syntax
  • Updated namespace import from Divergic.Logging.Xunit to Neovolve.Logging.Xunit
  • Removed unnecessary constructor body and field initialization
  • Removed 9 unused local variable declarations (organizationId that were declared but never used)
  • Updated helper method signatures to use generic ICacheLogger<PayPalController> instead of non-generic ICacheLogger
  • Updated method parameters to use nullable types (string?) where appropriate

Key Findings

✓ Good Practices Observed

  • Package deprecation properly addressed: The original package is deprecated, and migration to Neovolve.Logging.Xunit is the correct successor by the same author
  • Modern C# patterns adopted: Primary constructor syntax reduces boilerplate and aligns with modern C# standards
  • Type safety improved: Generic logger interface ICacheLogger<T> is more type-safe than non-generic ICacheLogger
  • Code cleanup: Removed 9 unused variable declarations that added no value
  • Nullable reference types: Properly uses string? for nullable parameters, aligning with Bitwarden ADR 0024

Migration Correctness

The migration is API-compatible because:

  1. BuildLoggerFor<T>() extension method maintains the same signature
  2. ICacheLogger<T> interface is available in both packages
  3. All test assertions remain unchanged, indicating the logging behavior is equivalent

Security and Compliance

  • No security concerns: This is a test-only dependency migration
  • No sensitive data exposure: The changes don't affect logging of production code
  • No breaking changes: Test functionality is preserved
  • Coverage maintained: Codecov shows coverage improved by +1 line

Technical Highlights

Primary Constructor Pattern (line 26):

public class PayPalControllerTests(ITestOutputHelper testOutputHelper)

Clean C# 12 feature that reduces boilerplate while maintaining clarity.

Generic Logger Type (lines 556, 563, 566):

private static void Logged(ICacheLogger<PayPalController> logger, ...)

More type-safe than non-generic version, ensures logger is specifically for PayPalController.

Nullable Parameter Types (lines 509-510):

string? webhookKey,
string? ipnBody

Correctly reflects that these parameters can be null, aligns with Bitwarden's nullable reference types ADR.

Recommendations

None Required - This is a clean, straightforward package migration with appropriate code modernization. The changes:

  • Address the package deprecation correctly (as noted by @djsmith85-bitwarden)
  • Improve code quality through modern C# patterns
  • Maintain full test coverage and functionality
  • Introduce no security, performance, or correctness issues

Conclusion

This PR is ready to merge. It successfully addresses the package deprecation warning, modernizes the test code using C# 12 features, and maintains all existing test functionality without introducing any issues.


@renovate
Copy link
Contributor Author

renovate bot commented Dec 8, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Logo
Checkmarx One – Scan Summary & Details6f01ee98-858f-493f-853b-5598dbfe1e79

Great job! No new security vulnerabilities introduced in this pull request

@amorask-bitwarden amorask-bitwarden merged commit acc2529 into main Dec 8, 2025
43 checks passed
@amorask-bitwarden amorask-bitwarden deleted the renovate/divergic.logging.xunit-4.x branch December 8, 2025 18:58
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.

4 participants