Skip to content

fix(deps): switch xunit to mtp-v2 and fix Scriban build error#309

Merged
j-d-ha merged 3 commits into
mainfrom
fix/mtp-tests-failing
Mar 20, 2026
Merged

fix(deps): switch xunit to mtp-v2 and fix Scriban build error#309
j-d-ha merged 3 commits into
mainfrom
fix/mtp-tests-failing

Conversation

@j-d-ha

@j-d-ha j-d-ha commented Mar 20, 2026

Copy link
Copy Markdown
Collaborator

🚀 Pull Request

📋 Summary

Two related fixes to restore a clean build and working tests:

  • Fix Scriban build error: Scriban 6.6.0 includes System.Text.Json-dependent source files that fail to compile against netstandard2.0. Added System.Text.Json as a package reference to MinimalLambda.SourceGenerators so those sources compile correctly.
  • Switch test projects to xunit.v3.mtp-v2: All test projects were referencing xunit.v3; switched to xunit.v3.mtp-v2 which is the correct package for use with the Microsoft.Testing.Platform runner (pinned in global.json).
  • Package version bumps in Directory.Packages.props: Amazon.Lambda.Core, Amazon.Lambda.KinesisEvents, Amazon.Lambda.RuntimeSupport, Microsoft.Extensions.*, Microsoft.SourceLink.GitHub, Microsoft.CodeAnalysis.*, and others brought up to current patch/minor releases.

✅ Checklist

  • My changes build cleanly
  • I've added/updated relevant tests
  • I've added/updated documentation or README
  • I've followed the coding style for this project
  • I've tested the changes locally (if applicable)

🧪 Related Issues or PRs

N/A


💬 Notes for Reviewers

The System.Text.Json reference on the source generator project is scoped only to build assets (PrivateAssets="all") so it does not leak into consuming projects.

j-d-ha added 3 commits March 20, 2026 19:01
- Updated `xunit.v3` to `xunit.v3.mtp-v2` in multiple test projects.
- Introduced `System.Text.Json` as a dependency in `MinimalLambda.SourceGenerators.csproj`.
- Bumped versions for various dependencies in `Directory.Packages.props`:
  - `Amazon.Lambda.Core` to `2.8.1`.
  - `Amazon.Lambda.RuntimeSupport` to `1.14.2`.
  - `AWSSDK.Core` to `4.0.3.20`.
  - `Microsoft.CodeAnalysis`, `Microsoft.CodeAnalysis.CSharp`, and related packages to `5.3.0`.
  - `OpenTelemetry.Exporter.InMemory`, `OpenTelemetry.Exporter.OpenTelemetryProtocol`,
    and `OpenTelemetry.Extensions.Hosting` to `1.15.0`.
  - `Verify.XunitV3` to `31.13.5`.
  - Locked `System.Text.Json` for `netstandard2.0` targets and applied version ranges for `.net8+`.
…ages.props`

- Refined version ranges for `Microsoft.Extensions.Hosting` and related packages:
  - Locked to `[9.0.14, 10.0.0)` for `net9.0`.
  - Locked to `[10.0.5, 11.0.0)` for `net10.0`.
- Applied consistent version range approach for `.net8+` frameworks.
- Removed outdated comments regarding version locking.
- Standardized spacing for `<PackageVersion>` elements in `Directory.Packages.props`.
- Updated `Amazon.Lambda.KinesisEvents` to version `3.0.2`.
- Bumped `System.Text.Json` to `8.0.6` for `netstandard2.0`.
- Ensured consistent version ranges in conditional `.net` framework target groups.
@github-actions github-actions Bot added the type: fix Bug fix label Mar 20, 2026
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Mar 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #309      +/-   ##
==========================================
+ Coverage   87.35%   87.38%   +0.02%     
==========================================
  Files         131      113      -18     
  Lines        2919     2814     -105     
  Branches      351      351              
==========================================
- Hits         2550     2459      -91     
+ Misses        268      254      -14     
  Partials      101      101              

see 43 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ab28b2...108c761. Read the comment docs.

🚀 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.

@j-d-ha
j-d-ha merged commit 793b2ee into main Mar 20, 2026
8 checks passed
@j-d-ha
j-d-ha deleted the fix/mtp-tests-failing branch March 20, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant