GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix recursive generated tuple argument conversions by thomhurst · Pull Request #7515 · thomhurst/TUnit

Conversation

@thomhurst

@thomhurst thomhurst commented Nov 3, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Generated invokers cast nested tuples directly, so a row such as (int, (int, string)) throws when a generic test accepts (T, (int, object)). Reconstruct mismatched value tuples recursively through their elements, preserving direct casts for already compatible tuples and avoiding reflection.

Cover nested and deep/long tuples, separate parameters, and preserved instance-source rows. Update the affected generator snapshots. A separate generated-metadata defect affecting preserved generic instance rows is tracked in #7514.

Closes #7485

Validation:

  • Four regression cases pass in generated mode and reflection mode; the original generator fails the conversion regressions with InvalidCastException.
  • Core generator suite: 251 passed, 1 skipped; intentional snapshot changes reviewed.
  • Existing OneElementValueTupleTests: 12 passed; GenericTupleBindingTests: 4 passed.
  • No public API or reflection paths changed. Engine test suite left to CI per repository guidance.

Summary by CodeRabbit

  • Bug Fixes

    • Fixed test argument binding for nested and deeply nested tuples, including nullable tuples and tuples passed as a single argument.
    • Improved support for tuple elements with generic types and cancellation-token parameters.
  • Tests

    • Added coverage for nested tuple binding across varied shapes and nesting depths.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

greptile-apps[bot] and chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

The source generator now builds tuple cast expressions recursively. It reconstructs tuple elements when their runtime tuple shape matches the target, retains cast fallbacks, and adds tests for nested and nullable tuple binding.

Changes: Generated tuple binding

Layer / File(s) Summary
Recursive tuple cast generation
src/TUnit.Core.SourceGenerator/CodeGenerators/Helpers/TupleArgumentHelper.cs, src/TUnit.Core.SourceGenerator/Generators/TestMetadataGenerator.cs
Tuple argument paths now generate casts through GenerateCastExpression. The helper recursively reconstructs tuple values from ITuple elements and retains CastHelper.Cast<T> for non-tuples and fallback values.
Wrapped tuple conversion cases
tests/TUnit.Core.SourceGenerator.Tests/OneElementValueTupleTests.Test.verified.txt, tests/TUnit.Core.SourceGenerator.Tests/Tests7108.Test.verified.txt, tests/TUnit.Core.SourceGenerator.Tests/Tests7225.MemberShapes.verified.txt, tests/TUnit.Core.SourceGenerator.Tests/Tests7402.Generic_Tuples_Use_Shared_Binder.verified.txt, tests/TUnit.Core.SourceGenerator.Tests/Tests7402.Test.verified.txt
Verified generated output covers wrapped tuples with one or more elements, cancellation-token parameters, and nested tuple shapes. Compatible tuple values retain direct-cast fallbacks.
Nested tuple regression coverage
tests/TUnit.TestProject/Bugs/_7485/NestedTupleBindingTests.cs, tests/TUnit.Core.SourceGenerator.Tests/NestedTupleBindingTests.cs, tests/TUnit.Core.SourceGenerator.Tests/NestedTupleBindingTests.Test.verified.txt, tests/TUnit.Core.SourceGenerator.Tests/Tests7402.Test.verified.txt
New tests cover generic and separate parameters, instance data, nullable nested tuples, and nesting up to five levels. Verified output includes generated invocation and registration code for these cases.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix · Severity of issue fixed: Low

Possibly related PRs

  • thomhurst/TUnit#7469: It changes generated tuple-row preservation and reconstruction; this PR adds recursive conversion for the generated invocation path.
  • thomhurst/TUnit#7487: It handles incompatible nested tuple binding in reflection execution, while this PR handles conversion in source-generated invokers.
  • thomhurst/TUnit#7496: It routes generated constructor arguments through TupleArgumentHelper, which this PR extends with recursive tuple conversion.
Merge Risk: Minimal · up to a4b99

No actionable merge-blocking risk remains after normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: fixing recursive tuple argument conversions in generated code.
Linked Issues check Passed The PR meets the coding requirements in [#7485]. TupleArgumentHelper.GenerateCastExpression recursively reconstructs mismatched tuple elements, including nested and nullable tuples, and keeps the di…
Out of Scope Changes check Passed The changes stay within [#7485]. The helper, generator call-site updates, regression tests, and generated snapshots directly support recursive tuple conversion. No unrelated public API or reflection-p…
Full details: Linked Issues check

Explanation

The PR meets the coding requirements in [#7485]. TupleArgumentHelper.GenerateCastExpression recursively reconstructs mismatched tuple elements, including nested and nullable tuples, and keeps the direct CastHelper.Cast fallback for compatible values. TestMetadataGenerator uses this helper in the affected generated invocation paths. NestedTupleBindingTests covers generic nested binding, separate parameters, instance-source rows, deep nesting, and nullable values. The updated generator snapshots provide coverage for the generated output.

Full details: Out of Scope Changes check

Explanation

The changes stay within [#7485]. The helper, generator call-site updates, regression tests, and generated snapshots directly support recursive tuple conversion. No unrelated public API or reflection-path changes are shown. The separate generated-metadata defect in [#7514] is not treated as a requirement for this PR.

Full details: Docstring Coverage

Explanation

Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 6 functions across 4 files. (6 skipped: 6 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • 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
  • X
  • Mastodon
  • Reddit
  • LinkedIn

A rabbit hops through tuples deep,
Where nested values used to leap.
Each element finds its proper place,
With nullable shapes kept in the race.
The generated paths now bind with care.

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 29b81525-5048-4db4-8b75-bbd561b78c97
Commits

Reviewing files that changed from the base of the PR and between 149ee33 and a4b9973.

Files selected for processing: 10
  • src/TUnit.Core.SourceGenerator/CodeGenerators/Helpers/TupleArgumentHelper.cs
  • src/TUnit.Core.SourceGenerator/Generators/TestMetadataGenerator.cs
  • tests/TUnit.Core.SourceGenerator.Tests/NestedTupleBindingTests.Test.verified.txt
  • tests/TUnit.Core.SourceGenerator.Tests/NestedTupleBindingTests.cs
  • tests/TUnit.Core.SourceGenerator.Tests/OneElementValueTupleTests.Test.verified.txt
  • tests/TUnit.Core.SourceGenerator.Tests/Tests7108.Test.verified.txt
  • tests/TUnit.Core.SourceGenerator.Tests/Tests7225.MemberShapes.verified.txt
  • tests/TUnit.Core.SourceGenerator.Tests/Tests7402.Generic_Tuples_Use_Shared_Binder.verified.txt
  • tests/TUnit.Core.SourceGenerator.Tests/Tests7402.Test.verified.txt
  • tests/TUnit.TestProject/Bugs/_7485/NestedTupleBindingTests.cs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thomhurst

thomhurst commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T19:49:28.748270Z a4b9973 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Review: nested tuple conversion in generated invokers (#7485)

The approach is sound. ValueTuple is invariant, so rebuilding a mismatched tuple from its elements is the right fix. It uses no reflection, so it is AOT-safe. It keeps the fast path (CastHelper.Cast) when the runtime type already matches. All three call sites that cast tuples now go through one helper, GenerateCastExpression. I read the generator changes only. I did not build the PR or run any tests.

Concerns

  1. Generated code grows exponentially with nesting depth. In GenerateCastExpression, expression appears in the is ITuple check, the is not T check, the fallback cast, and in every child's expression. Each nesting level multiplies the text of the level below it by 4 or more. The PR says deep and long tuples are tested, so this may be fine for the cases covered. A tuple with several nested levels, or a chain through Rest, could still produce very large invoker bodies and slow compilation. A better shape is a small shared generic helper that takes the object once and recurses, so the expression text stays linear in depth. It would also evaluate args[i] once.

  2. The match is by arity only. ITuple { Length: N } && not T also matches System.Tuple<...> and any custom ITuple of the same length. That is probably good, but it is a behaviour change, so say so explicitly and add a test if you intend to support it. A null element where the target element is a non-nullable value type should still fail as before. A test would pin that down.

  3. Duplicated gating logic. In TestMetadataGenerator.cs (~L2258) the caller checks IsTupleType and falls back to a hand-built CastHelper.Cast string. GenerateCastExpression already does that check and fallback. Calling it unconditionally removes the duplicate and the risk of drift.

  4. Minor: GenerateCastExpression is public and could be internal.

Good

  • Snapshot updates are limited to the affected generators.
  • Both execution modes are covered by the new regression tests in tests/TUnit.TestProject/Bugs/_7485.
  • The scope is narrow, and the separate bug is tracked as Generated discovery drops elements from preserved tuples bound to generic parameters #7514.

I'd address (1), or at least confirm the output size for a 4+ level nesting, before merge. The rest are optional.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: fa2a2cbc78

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable new issues were found.

Summary

Generated test invokers now rebuild mismatched value tuples recursively instead of directly casting boxed tuples.

  • Generated tests now rebuild tuples when nested element types differ.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Argument and target type] --> B{Target is a tuple?}
    B -->|No| C[Use CastHelper]
    B -->|Yes| D{Input has matching length and needs conversion?}
    D -->|No| C
    D -->|Yes| E[Convert each element recursively]
    E --> F[Build target tuple]
Loading

Reviews (3) · Last reviewed commit: "Refresh tuple snapshots after rebasing (..." · Reviewed by Greptile

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

greptile-apps[bot]
greptile-apps Bot reviewed Nov 3, 2026
View reviewed changes
Comment thread src/TUnit.Core.SourceGenerator/CodeGenerators/Helpers/TupleArgumentHelper.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@thomhurst

thomhurst commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

Addressed in 2725146.

  • Nullable tuple targets now inspect the underlying tuple type, rebuild non-null mismatched values recursively, and preserve null through the existing cast fallback. Both nullable rows pass in generated and reflection modes.
  • Switch patterns bind each tuple input once, so child expressions use a local pattern variable instead of repeating the parent indexing chain. Added a five-level nesting regression.
  • Removed the duplicate tuple gate at the generic invoker call site and made GenerateCastExpression internal.
  • The existing arity-based ITuple reconstruction remains intentional: tuple inputs are consumed through their indexed elements, including reference/custom ITuple implementations. This patch preserves that policy; no additional input-type restriction was introduced. Null scalar elements still use the unchanged CastHelper fallback. Additional reference/custom ITuple and invalid scalar fixtures are optional follow-up coverage, not required for the nullable fix.

Validation: core generator suite 251 passed, 1 skipped; seven regression cases pass in each execution mode. Reviewed and accepted the four affected snapshots. No reflection or public API paths changed. Engine tests left to CI per repository guidance.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thomhurst

thomhurst commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Review

The approach is sound. Generated invokers now rebuild a mismatched ValueTuple from its elements instead of casting the boxed tuple directly. This avoids reflection, so it stays AOT and trim friendly. All the call sites that used CastHelper.Cast<tuple> now share one helper, TupleArgumentHelper.GenerateCastExpression.

I read the diff but did not build it or run any tests.

What looks good:

  • The is not {tuple} guard keeps the direct cast when the runtime tuple already has the exact type. That is the cheap path for the common case.
  • The null fallback to CastHelper.Cast<T> handles nullable tuples and nulls.
  • The per-depth input names (__tupleInput{depth}) avoid repeating the indexing chain at each level.
  • The one-element case uses new ValueTuple<T>(..), which is correct because (x) is not a tuple literal.
  • The PR adds regression tests for nested tuples, deep tuples, separate parameters and preserved instance-source rows. The generator snapshots are updated.

Suggestions, none blocking:

  1. Generated code size. Every tuple parameter now emits a nested switch expression, and this is repeated across the args.Length == N and wrapped-tuple branches. For tuples whose element types contain no generic parameters, no element can be a type mismatch. A tuple like (int, string) arriving as (int, string) already hits the direct cast. The nested rebuild is only needed when some element type is a type parameter or a non-sealed type. Check how often that holds. If it is rare, add a cheap check in the helper: if no element in the tuple tree needs rebuilding, return the plain Cast<T>. That keeps snapshots and generated code small for the usual non-generic tests.
  2. Element conversions. Elements are converted through CastHelper.Cast<T>. Check that it still applies the implicit-conversion handling the old whole-tuple cast did (for example an int boxed into a long element). If it does not, the new path could regress a case that worked before when the tuple types matched exactly.
  3. Tuples with 8 or more elements. Roslyn flattens TRest in TupleElements, and ITuple.Length also reports the total, so this should work. The PR describes "deep/long tuples" in its tests, so confirm that a test covers 8 or more elements and not only deep nesting.
  4. Tracking issue. Generated discovery drops elements from preserved tuples bound to generic parameters #7514 covers the separate defect with preserved generic instance rows. A short comment near the preserved-instance-row test would stop someone from assuming it is fully fixed.

Overall this is a good, focused fix. I'd approve it once the 8+ element coverage is confirmed and the code-size trade-off in (1) is considered.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 27251465db

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

thomhurst added 3 commits November 3, 2026 19:28
@thomhurst
Fix recursive generated tuple argument conversions (#7485)
13e9743
@thomhurst
Fix nullable nested tuple conversion and bind tuple inputs once (#7485)
773997c
@thomhurst
Refresh tuple snapshots after rebasing (#7485)
a4b9973
@thomhurst
thomhurst force-pushed the issue-7485-nested-tuples branch from 2725146 to a4b9973 Compare November 3, 2026 19:29
@thomhurst

thomhurst commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

Rebased onto origin/main and resolved the shared invoker conflict, preserving main's reference-tuple and cancellation-token handling and this PR's recursive value-tuple conversion. Snapshot refresh: a4b9973.

Disposition of Claude's remaining suggestions:

  • Keep reconstruction for concrete scalar element types: sealed/value types can still require numeric or user-defined conversions (for example int to long). Restricting it to generic or non-sealed elements would lose those conversions. Switch pattern locals keep expression growth linear in the tuple tree; compatible tuples retain the direct-cast fallback.
  • Elements still use CastHelper.Cast, preserving its numeric, implicit/explicit operator, and null-to-default behavior. The 57 existing _7402 tuple-binding cases pass, including numeric and nested operator conversion cases.
  • DeepRow contains an eight-element nested tuple; VeryDeepRow covers five levels. All seven _7485 cases pass in generated and reflection modes.
  • The preserved-instance fixture is deliberately non-generic. The separate generic instance-row defect remains explicitly tracked in Generated discovery drops elements from preserved tuples bound to generic parameters #7514 in the PR body.

Validation after rebase: generator suite 326 passed, 1 skipped; reviewed and accepted three snapshot refreshes; _7485 generated 7 passed and reflection 7 passed; _7402 generated 57 passed. Engine tests left to CI per repository instructions. Existing build warnings are tracked in #7410 and #7412. Keeping this PR draft for fresh reviews of the rebased head.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thomhurst

thomhurst commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: a4b9973338

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Review of #7515: recursive tuple reconstruction in generated invokers

I read the TupleArgumentHelper.GenerateCastExpression change. I did not build it or run the tests.

What it does well

  • It fixes the real problem. ValueTuple<> is invariant, so a boxed (int, (int, string)) can't be cast to (int, (int, object)). Rebuilding the tuple from its elements, with no reflection, keeps the Native AOT and trimming constraints.
  • The when input is not {tuple} guard sends already-compatible tuples through the direct CastHelper.Cast. Null handling for Nullable<tuple> goes through the same fallback arm.
  • Giving each nesting level its own pattern variable (__tupleInput{depth}) avoids repeating the indexing chain at every level.
  • The tests cover nested and deep tuples, separate parameters and preserved instance-source rows. The PR also notes the related defect in Generated discovery drops elements from preserved tuples bound to generic parameters #7514 as a separate issue.

Suggestions (non-blocking)

  1. Code size. Every tuple-typed parameter now gets a full switch expression, even when no element type can differ, such as (int, string) bound to (int, string). The snapshot diffs are large, with 571 added lines for the new test alone. The generator could emit the switch only when a rebuild is possible: a tuple element is an interface, object, a type parameter, or has a nested tuple that could vary. Otherwise it could keep the plain CastHelper.Cast<T>. That keeps the output for the common case small and easier to read. It also lowers the risk for existing users' generated code and compile time.
  2. Move the repeated expression into a helper. The per-level switch is long inline generated text. A small runtime helper such as CastHelper.CastTuple<T>(object?) could do the same job. The cost is that a generic helper would need reflection or per-arity overloads, which is why the inline form is reasonable here. I'd record that choice in a comment near the method.
  3. System.Tuple<> input. Matching on ITuple means a reference Tuple<,> now silently converts to a ValueTuple parameter, where before it threw. That's probably fine, but confirm it matches reflection mode's behaviour, since AGENTS.md requires both modes to behave identically.
  4. Name collisions. __tupleInput{depth} and __tupleFallback{depth} are scoped to their switch arm. If the invoker ever hoists these into a shared scope or a lambda, two parameters at the same depth could collide. A one-line comment saying the names rely on arm scoping would protect against that.

Overall the approach is sound and the tests are good. I have no blocking concerns, assuming CI and the engine tests pass in both modes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thomhurst

thomhurst commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

Current-head review disposition (a4b9973): Claude explicitly reports no blocking concerns, and Codex reports a completed review with no findings.

Claude's non-blocking suggestions are dispositioned as follows: retain reconstruction for concrete element types because numeric and user-defined conversions can still require it, as explained in the prior disposition. Keep inline generated construction to preserve reflection-free AOT support; the existing helper comments explain this choice and the per-level bindings. Pattern bindings remain scoped to their switch arms; no hoisting is introduced. System.Tuple inputs are supported by reflection's CastInvocationArgument, which recognizes both tuple families, unwraps them, and reconstructs the target tuple. Extra custom-ITuple coverage and explanatory comments are optional future improvements rather than blockers for this fix.

Marking ready for CI and the ready-for-review Claude run. Auto-merge must wait for that Claude run's verdict, per repository guidance.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thomhurst
thomhurst marked this pull request as ready for review November 3, 2026 19:47
@thomhurst
thomhurst temporarily deployed to Pull Requests November 3, 2026 19:47 — with GitHub Actions Inactive
@thomhurst
thomhurst temporarily deployed to Pull Requests November 3, 2026 19:47 — with GitHub Actions Inactive
@thomhurst
thomhurst temporarily deployed to Pull Requests November 3, 2026 19:47 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Review of #7515: recursive tuple reconstruction in generated invokers

Overall this is a sound fix. I read TupleArgumentHelper.cs in the PR head. I did not build it or run the tests, and I did not look at the TestMetadataGenerator.cs change or the new tests. The snapshot files only appear in the PR's file list; I didn't inspect them.

What works

  • Casting a boxed ValueTuple directly fails when the element types differ, for example (int, string) to (int, object). Rebuilding the tuple from its elements, recursively and without reflection, is the right fix and keeps Native AOT and trimming intact.
  • The generated switch has an is not T guard, so tuples that already match still go through a plain cast.
  • Null, wrong-length and non-tuple inputs fall through to CastHelper.Cast<T>. They fail or pass exactly as before.
  • Nullable tuples and one-element tuples (new ValueTuple<T>(...)) are handled.
  • Depth-indexed names (__tupleInput{depth}) stop a child from shadowing its parent. Sibling elements at the same depth reuse a name, but each sits in its own switch expression, so that is legal.
  • Tests cover nested, deep and long tuples, separate parameters, and preserved instance-source rows, in both generated and reflection modes.

Suggestions (non-blocking)

  1. Generated code size. Each tuple-typed parameter now emits a switch expression with a full fallback arm, repeated for every invoker case and argument count. Moving the shape into a cached generic helper would keep the invokers small and avoid duplicated IL. That helper could be CastHelper.CastTuple<T>(object?), with the generator emitting only the nested element conversion. It would also shorten the snapshots. The inline form is acceptable if you want to avoid a runtime helper.
  2. Fast path. When the declared parameter type contains no nested tuple or element-type mismatch that can occur at runtime, the code could skip the ITuple machinery. In practice the source types are unknown at generation time, so this is only a minor note.
  3. Name collisions. __tupleInput0 and __tupleFallback0 are pattern variables inside the generated expression. A parameter or local with the same name would be shadowed, but it would be legal. It is unlikely, so I would leave it.

I have no blocking concerns. The follow-up generic-instance-row defect is tracked separately in #7514, which is reasonable.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thomhurst

thomhurst commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

The earlier blocker is cleared: run 41706580978 completed successfully on a4b9973. The ready-for-review Claude verdict has no blocking concerns, Codex reports a completed review without findings on the same head, and all CI checks have passed, including engine tests and AOT on all three platforms. The latest Claude suggestions repeat the already dispositioned inline-construction and fast-path trade-offs; no new changes are needed. CodeRabbit’s docstring-coverage warning is non-blocking: the new internal helper already explains invariance, reflection-free reconstruction, input binding, and nullable fallback in comments. Additional XML documentation is optional. The nullable-tuple thread is resolved with its fix commit and has no later reviewer reply. Proceeding through the repository merge gate.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thomhurst
thomhurst merged commit 056a572 into main Nov 3, 2026
40 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@thomhurst
thomhurst deleted the issue-7485-nested-tuples branch November 3, 2026 20:55
This was referenced Nov 4, 2026
Preserve generic tuple rows from instance data sources #7548
Merged
Check tuple conversion analyzer policy against runtime binding #7559
Merged
This was referenced Nov 22, 2026
Bump TUnit.Assertions from 1.70.1 to 1.87.12 zcsizmadia/KernelSharp#89
Open
Bump the nuget-minor-and-patch group with 2 updates msallin/hangfire-raft#48
Open
chore: Bump TUnit from 1.67.0 to 1.87.12 iamr8/apps#104
Merged
Bump CodeGlyphX and 6 others guitarrapc/FeatherQR#503
Closed
chore(deps): Bump TUnit from 1.65.68 to 1.87.12 GorbunowArtem/calm-class#51
Open
Bump the npm-dependencies group with 3 updates Natsumi-sama/OscQueryLibrary#46
Open
Bump the tunit group with 1 update joinrpg/kogda-igra-net#47
Open
chore: Bump the testing group with 1 update danganhphu/scdl-4life#49
Open
Bump TUnit from 1.75.0 to 1.87.12 alastairlundy/EnhancedLinq#440
Merged
chore: Bump the minor-and-patch group with 5 updates herwineric/bergetsharp#18
Open
Bump TUnit from 1.68.17 to 1.87.12 Dippere/Telegraph.Sharp#153
Open
chore(deps): Bump Microsoft.Testing.Extensions.TrxReport, TUnit and xunit.v3.mtp-v2 apache/iggy#5057
Closed
Bump the dependencies group with 8 updates guitarrapc/FeatherQR#507
Merged
Bump the nuget-minor-patch group with 5 updates mgnslndh/Attributary#15
Open
build(deps): Bump the testing group with 1 update zcsizmadia/Gatehouse#76
Open
Bump the dependencies group with 1 update guitarrapc/scenetake#73
Merged
Bump the dependencies group with 4 updates guitarrapc/seiton#216
Open
Bump the nuget-dependencies group with 3 updates OpenShock/Internal.Net#102
Closed
chore(deps): Bump the nuget group with 6 updates GoSimulate/PackageCascade#42
Open
Bump the dotnet group with 2 updates rschili/RSHome#106
Open
Bump the nuget-dependencies group with 6 updates substrait-io/substrait-csharp#123
Open
Bump TUnit from 1.79.0 to 1.87.12 yakivyusin/DiplomaAnalysis#227
Merged
gergodrazsdik added a commit to gergodrazsdik/calendar-gates that referenced this pull request Nov 25, 2026
@dependabot @gergodrazsdik
chore: Bump the nuget-minor-patch group with 2 updates (#143)
1455fd6
Updated [TUnit](https://github.com/thomhurst/TUnit) from 1.78.0 to
1.80.0.

<details>
<summary>Release notes</summary>

_Sourced from [TUnit's
releases](https://github.com/thomhurst/TUnit/releases)._

## 1.80.0

<!-- Release notes generated using configuration in .github/release.yml
at v1.80.0 -->

## What's Changed
### Other Changes
* Share evaluated constructor-row state across discovery modes by
@​thomhurst in thomhurst/TUnit#7497
* Diagnose static data-source properties in inaccessible containing
types by @​thomhurst in thomhurst/TUnit#7503
* Extract typed-row binding and verify invocation parity by @​thomhurst
in thomhurst/TUnit#7507
* Accept omitted optional MethodDataSource arguments in TUnit0001 by
@​thomhurst in thomhurst/TUnit#7486
* Preserve null-containing tuples from static method data sources by
@​thomhurst in thomhurst/TUnit#7469
* Fix dependencies on deferred enumeration tests by @​thomhurst in
thomhurst/TUnit#7471
* Preserve DI scope ownership and synchronize concurrent property
registration by @​thomhurst in
thomhurst/TUnit#7476
* Infer typed row generic arguments through interfaces and base classes
by @​thomhurst in thomhurst/TUnit#7508
* Keep session cleanup from disposing another session’s data sources by
@​thomhurst in thomhurst/TUnit#7509
* Fix recursive generated tuple argument conversions by @​thomhurst in
thomhurst/TUnit#7515
* Share generic class row selection and pairing policy by @​thomhurst in
thomhurst/TUnit#7498
* Raise data-source delegates at test lifecycle stages by @​thomhurst in
thomhurst/TUnit#7521
* Fix class argument literals to use constructor parameter types by
@​thomhurst in thomhurst/TUnit#7496
* Accept numeric widening for single reference-tuple data parameters by
@​thomhurst in thomhurst/TUnit#7510
* fix(core): preserve optional F# async support without AOT warnings by
@​thomhurst in thomhurst/TUnit#7526
* Fix timeouts for synchronously blocking test bodies by @​thomhurst in
thomhurst/TUnit#7527
* Fix Native AOT getters for generic test class property metadata by
@​thomhurst in thomhurst/TUnit#7524
* Refresh stale core generator snapshots by @​thomhurst in
thomhurst/TUnit#7549
* Infer generic class types from inherited literal arguments by
@​thomhurst in thomhurst/TUnit#7544
* Make duplicate-stop cancellation regression independent of thread-pool
scheduling by @​thomhurst in
thomhurst/TUnit#7546
* Fix colliding generator diagnostic IDs by @​thomhurst in
thomhurst/TUnit#7538
* Fix generic array binding inside tuple data-source parameters by
@​thomhurst in thomhurst/TUnit#7541
* Discover AOT converters from method data source return types by
@​thomhurst in thomhurst/TUnit#7547
* Check tuple conversion analyzer policy against runtime binding by
@​thomhurst in thomhurst/TUnit#7559
* Deduplicate disposal span callbacks on .NET 8 by @​thomhurst in
thomhurst/TUnit#7557
* Preserve generic tuple rows from instance data sources by @​thomhurst
in thomhurst/TUnit#7548
* Expect source operators to bind in AOT in the tuple conversion matrix
by @​thomhurst in thomhurst/TUnit#7580
* Preserve containing generic types in TUnit0001 diagnostics by
@​thomhurst in thomhurst/TUnit#7563
* Populate reflection class property metadata by @​thomhurst in
thomhurst/TUnit#7550
* Verify every generic class/method argument pair executes once by
@​thomhurst in thomhurst/TUnit#7558
* Exclude indexers from generated class property metadata by @​thomhurst
in thomhurst/TUnit#7560
* Fix synchronous factory timeout cancellation classification by
@​thomhurst in thomhurst/TUnit#7561
* Add packaged F# async trimming smoke coverage by @​thomhurst in
thomhurst/TUnit#7562
* Remove unused metadata generation entry points by @​thomhurst in
thomhurst/TUnit#7570
* Remove unused streaming test builder path by @​thomhurst in
thomhurst/TUnit#7535
* Isolate test registration callback failures by @​thomhurst in
thomhurst/TUnit#7556

### Dependencies
* Update mcr.microsoft.com/dotnet/sdk Docker tag to v11 by @​thomhurst
in thomhurst/TUnit#7513
* Update dependency Microsoft.Kiota.Abstractions to 2.1.6 by @​thomhurst
in thomhurst/TUnit#7512
* Update all non-major dependencies to 1.79.0 by @​thomhurst in
thomhurst/TUnit#7528
* Update all non-major dependencies by @​thomhurst in
thomhurst/TUnit#7536


**Full Changelog**:
thomhurst/TUnit@v1.79.0...v1.80.0

## 1.79.0

<!-- Release notes generated using configuration in .github/release.yml
at v1.79.0 -->

## What's Changed
### Other Changes
* test(sourcegen): parse fixtures as a real build in all generator test
harnesses by @​thomhurst in thomhurst/TUnit#7319
* test(sourcegen): fix net472 compile of AotConverterScanTests
obsolete-conversion fixture by @​thomhurst in
thomhurst/TUnit#7330
* fix(sourcegen): emit typeof(Nullable<>) for a T? parameter of a
generic test method by @​thomhurst in
thomhurst/TUnit#7322
* test: fix ClassDataSourceTupleTests to exercise class-level tuple
unwrapping by @​thomhurst in
thomhurst/TUnit#7318
* fix(fsharp): pin FSharp.Core in TUnit.Assertions.FSharp independent of
the building SDK by @​thomhurst in
thomhurst/TUnit#7321
* fix(sourcegen): pick MethodDataSource overloads declared on base types
like reflection by @​thomhurst in
thomhurst/TUnit#7323
* fix(reflection): close generic methods over a typed data source's
declared types without [GenerateGenericTest] by @​thomhurst in
thomhurst/TUnit#7324
* fix(engine): run every overload of a [Test] method in filtered runs by
@​thomhurst in thomhurst/TUnit#7332
* fix: bind a tuple row whole to a tuple parameter followed by optional
parameters by @​thomhurst in
thomhurst/TUnit#7341
* fix(core): keep and dispose data-source roots when object-graph
tracking throws by @​thomhurst in
thomhurst/TUnit#7342
* fix(engine): lower default maximum parallel tests to 2x processor
count by @​thomhurst in thomhurst/TUnit#7354
* ci: cut duplicate TFM and packaging work from the Windows and macOS
jobs by @​thomhurst in thomhurst/TUnit#7357
* ci: run engine tests in their own job and drop the per-child test-host
relaunch by @​thomhurst in thomhurst/TUnit#7364
* fix(sourcegen): split untyped class data source rows by the generic
class type they infer by @​thomhurst in
thomhurst/TUnit#7339
* fix(engine): read a generic class's own class-level [MethodDataSource]
member on the closed class by @​thomhurst in
thomhurst/TUnit#7336
* fix(analyzers): TUnit0001 unwraps only the Func/TestDataRow layers the
runtime removes by @​thomhurst in
thomhurst/TUnit#7347
* test: make SharedType.None leakage tests independent of build order by
@​thomhurst in thomhurst/TUnit#7385
* fix(generic): infer method type arguments from [Arguments<T>] rows in
both modes by @​thomhurst in
thomhurst/TUnit#7343
* fix(generic): infer class type arguments through T[] constructor
parameters from any class row by @​thomhurst in
thomhurst/TUnit#7346
* fix(engine): await the Task of async runtime dynamic tests by
@​thomhurst in thomhurst/TUnit#7363
* feat(engine): add dispose spans for shared data-source objects by
@​thomhurst in thomhurst/TUnit#7396
* fix(engine): stop copying build-time output to TestSessionContext by
@​thomhurst in thomhurst/TUnit#7397
* feat(mocks): argument-aware Returns for Task/ValueTask members by
@​thomhurst in thomhurst/TUnit#7404
* fix(generic): a type-free class [Arguments] row lets method rows infer
T, with matching constructor binding in both modes by @​thomhurst in
thomhurst/TUnit#7392
* feat(scripts): finish open loop PRs before starting new issues by
@​thomhurst in thomhurst/TUnit#7423
* fix(mocks): preserve nullable generic constraints by @​thomhurst in
thomhurst/TUnit#7414
* Retain class sources sharing an inferred generic instantiation by
@​thomhurst in thomhurst/TUnit#7420
* Fix reflection data source overloads with omitted optional arguments
by @​thomhurst in thomhurst/TUnit#7421
* feat(playwright): honor HEADED and BROWSER environment variables by
@​thomhurst in thomhurst/TUnit#7395
* docs: enable Windows long paths before worktree checkout by
@​thomhurst in thomhurst/TUnit#7416
* Fix duplicate dynamic builder invocation in reflection mode by
@​thomhurst in thomhurst/TUnit#7424
* fix(mocks): bind explicit method type arguments on
Mock.Of<IGeneric<X>>() by @​thomhurst in
thomhurst/TUnit#7406
* fix(mocks): Is<T>(predicate) passes T, not T?, for non-nullable T by
@​thomhurst in thomhurst/TUnit#7405
* fix(engine): deliver row builder-context events to the test and raise
OnDispose once per test (#​7381) by @​thomhurst in
thomhurst/TUnit#7384
* fix: report generic classes whose data cannot infer types at compile
time by @​thomhurst in thomhurst/TUnit#7425
* fix(core): hold shared instances fetched while runtime tests register
by @​thomhurst in thomhurst/TUnit#7391
* fix(mocks): match null literals in generated predicate overloads by
@​thomhurst in thomhurst/TUnit#7415
* fix(mocks): qualify extern-aliased types with their alias in generated
code by @​thomhurst in thomhurst/TUnit#7403
* fix(generic): fail wrongly sized [GenerateGenericTest] in
source-generated mode by @​thomhurst in
thomhurst/TUnit#7344
* fix(sourcegen): generate a data source factory for
[InstanceMethodDataSource] (#​7225) by @​thomhurst in
thomhurst/TUnit#7348
* fix(aspire): preserve caller cancellation over startup cleanup faults
by @​thomhurst in thomhurst/TUnit#7447
* fix(tests): remove polling throughput requirement on shared runners by
@​thomhurst in thomhurst/TUnit#7448
* fix(html-reporter): scope report state per session when sessions
overlap by @​thomhurst in thomhurst/TUnit#7400
* fix(analyzers): validate class data against TestConstructor by
@​thomhurst in thomhurst/TUnit#7449
* Infer generic method types from typed array rows in both discovery
modes by @​thomhurst in thomhurst/TUnit#7460
* Share generic method inference policy between discovery modes by
@​thomhurst in thomhurst/TUnit#7455
 ... (truncated)

Commits viewable in [compare
view](thomhurst/TUnit@v1.78.0...v1.80.0).
</details>

Updated [TUnit.AspNetCore](https://github.com/thomhurst/TUnit) from
1.78.0 to 1.80.0.

<details>
<summary>Release notes</summary>

_Sourced from [TUnit.AspNetCore's
releases](https://github.com/thomhurst/TUnit/releases)._

## 1.80.0

<!-- Release notes generated using configuration in .github/release.yml
at v1.80.0 -->

## What's Changed
### Other Changes
* Share evaluated constructor-row state across discovery modes by
@​thomhurst in thomhurst/TUnit#7497
* Diagnose static data-source properties in inaccessible containing
types by @​thomhurst in thomhurst/TUnit#7503
* Extract typed-row binding and verify invocation parity by @​thomhurst
in thomhurst/TUnit#7507
* Accept omitted optional MethodDataSource arguments in TUnit0001 by
@​thomhurst in thomhurst/TUnit#7486
* Preserve null-containing tuples from static method data sources by
@​thomhurst in thomhurst/TUnit#7469
* Fix dependencies on deferred enumeration tests by @​thomhurst in
thomhurst/TUnit#7471
* Preserve DI scope ownership and synchronize concurrent property
registration by @​thomhurst in
thomhurst/TUnit#7476
* Infer typed row generic arguments through interfaces and base classes
by @​thomhurst in thomhurst/TUnit#7508
* Keep session cleanup from disposing another session’s data sources by
@​thomhurst in thomhurst/TUnit#7509
* Fix recursive generated tuple argument conversions by @​thomhurst in
thomhurst/TUnit#7515
* Share generic class row selection and pairing policy by @​thomhurst in
thomhurst/TUnit#7498
* Raise data-source delegates at test lifecycle stages by @​thomhurst in
thomhurst/TUnit#7521
* Fix class argument literals to use constructor parameter types by
@​thomhurst in thomhurst/TUnit#7496
* Accept numeric widening for single reference-tuple data parameters by
@​thomhurst in thomhurst/TUnit#7510
* fix(core): preserve optional F# async support without AOT warnings by
@​thomhurst in thomhurst/TUnit#7526
* Fix timeouts for synchronously blocking test bodies by @​thomhurst in
thomhurst/TUnit#7527
* Fix Native AOT getters for generic test class property metadata by
@​thomhurst in thomhurst/TUnit#7524
* Refresh stale core generator snapshots by @​thomhurst in
thomhurst/TUnit#7549
* Infer generic class types from inherited literal arguments by
@​thomhurst in thomhurst/TUnit#7544
* Make duplicate-stop cancellation regression independent of thread-pool
scheduling by @​thomhurst in
thomhurst/TUnit#7546
* Fix colliding generator diagnostic IDs by @​thomhurst in
thomhurst/TUnit#7538
* Fix generic array binding inside tuple data-source parameters by
@​thomhurst in thomhurst/TUnit#7541
* Discover AOT converters from method data source return types by
@​thomhurst in thomhurst/TUnit#7547
* Check tuple conversion analyzer policy against runtime binding by
@​thomhurst in thomhurst/TUnit#7559
* Deduplicate disposal span callbacks on .NET 8 by @​thomhurst in
thomhurst/TUnit#7557
* Preserve generic tuple rows from instance data sources by @​thomhurst
in thomhurst/TUnit#7548
* Expect source operators to bind in AOT in the tuple conversion matrix
by @​thomhurst in thomhurst/TUnit#7580
* Preserve containing generic types in TUnit0001 diagnostics by
@​thomhurst in thomhurst/TUnit#7563
* Populate reflection class property metadata by @​thomhurst in
thomhurst/TUnit#7550
* Verify every generic class/method argument pair executes once by
@​thomhurst in thomhurst/TUnit#7558
* Exclude indexers from generated class property metadata by @​thomhurst
in thomhurst/TUnit#7560
* Fix synchronous factory timeout cancellation classification by
@​thomhurst in thomhurst/TUnit#7561
* Add packaged F# async trimming smoke coverage by @​thomhurst in
thomhurst/TUnit#7562
* Remove unused metadata generation entry points by @​thomhurst in
thomhurst/TUnit#7570
* Remove unused streaming test builder path by @​thomhurst in
thomhurst/TUnit#7535
* Isolate test registration callback failures by @​thomhurst in
thomhurst/TUnit#7556

### Dependencies
* Update mcr.microsoft.com/dotnet/sdk Docker tag to v11 by @​thomhurst
in thomhurst/TUnit#7513
* Update dependency Microsoft.Kiota.Abstractions to 2.1.6 by @​thomhurst
in thomhurst/TUnit#7512
* Update all non-major dependencies to 1.79.0 by @​thomhurst in
thomhurst/TUnit#7528
* Update all non-major dependencies by @​thomhurst in
thomhurst/TUnit#7536


**Full Changelog**:
thomhurst/TUnit@v1.79.0...v1.80.0

## 1.79.0

<!-- Release notes generated using configuration in .github/release.yml
at v1.79.0 -->

## What's Changed
### Other Changes
* test(sourcegen): parse fixtures as a real build in all generator test
harnesses by @​thomhurst in thomhurst/TUnit#7319
* test(sourcegen): fix net472 compile of AotConverterScanTests
obsolete-conversion fixture by @​thomhurst in
thomhurst/TUnit#7330
* fix(sourcegen): emit typeof(Nullable<>) for a T? parameter of a
generic test method by @​thomhurst in
thomhurst/TUnit#7322
* test: fix ClassDataSourceTupleTests to exercise class-level tuple
unwrapping by @​thomhurst in
thomhurst/TUnit#7318
* fix(fsharp): pin FSharp.Core in TUnit.Assertions.FSharp independent of
the building SDK by @​thomhurst in
thomhurst/TUnit#7321
* fix(sourcegen): pick MethodDataSource overloads declared on base types
like reflection by @​thomhurst in
thomhurst/TUnit#7323
* fix(reflection): close generic methods over a typed data source's
declared types without [GenerateGenericTest] by @​thomhurst in
thomhurst/TUnit#7324
* fix(engine): run every overload of a [Test] method in filtered runs by
@​thomhurst in thomhurst/TUnit#7332
* fix: bind a tuple row whole to a tuple parameter followed by optional
parameters by @​thomhurst in
thomhurst/TUnit#7341
* fix(core): keep and dispose data-source roots when object-graph
tracking throws by @​thomhurst in
thomhurst/TUnit#7342
* fix(engine): lower default maximum parallel tests to 2x processor
count by @​thomhurst in thomhurst/TUnit#7354
* ci: cut duplicate TFM and packaging work from the Windows and macOS
jobs by @​thomhurst in thomhurst/TUnit#7357
* ci: run engine tests in their own job and drop the per-child test-host
relaunch by @​thomhurst in thomhurst/TUnit#7364
* fix(sourcegen): split untyped class data source rows by the generic
class type they infer by @​thomhurst in
thomhurst/TUnit#7339
* fix(engine): read a generic class's own class-level [MethodDataSource]
member on the closed class by @​thomhurst in
thomhurst/TUnit#7336
* fix(analyzers): TUnit0001 unwraps only the Func/TestDataRow layers the
runtime removes by @​thomhurst in
thomhurst/TUnit#7347
* test: make SharedType.None leakage tests independent of build order by
@​thomhurst in thomhurst/TUnit#7385
* fix(generic): infer method type arguments from [Arguments<T>] rows in
both modes by @​thomhurst in
thomhurst/TUnit#7343
* fix(generic): infer class type arguments through T[] constructor
parameters from any class row by @​thomhurst in
thomhurst/TUnit#7346
* fix(engine): await the Task of async runtime dynamic tests by
@​thomhurst in thomhurst/TUnit#7363
* feat(engine): add dispose spans for shared data-source objects by
@​thomhurst in thomhurst/TUnit#7396
* fix(engine): stop copying build-time output to TestSessionContext by
@​thomhurst in thomhurst/TUnit#7397
* feat(mocks): argument-aware Returns for Task/ValueTask members by
@​thomhurst in thomhurst/TUnit#7404
* fix(generic): a type-free class [Arguments] row lets method rows infer
T, with matching constructor binding in both modes by @​thomhurst in
thomhurst/TUnit#7392
* feat(scripts): finish open loop PRs before starting new issues by
@​thomhurst in thomhurst/TUnit#7423
* fix(mocks): preserve nullable generic constraints by @​thomhurst in
thomhurst/TUnit#7414
* Retain class sources sharing an inferred generic instantiation by
@​thomhurst in thomhurst/TUnit#7420
* Fix reflection data source overloads with omitted optional arguments
by @​thomhurst in thomhurst/TUnit#7421
* feat(playwright): honor HEADED and BROWSER environment variables by
@​thomhurst in thomhurst/TUnit#7395
* docs: enable Windows long paths before worktree checkout by
@​thomhurst in thomhurst/TUnit#7416
* Fix duplicate dynamic builder invocation in reflection mode by
@​thomhurst in thomhurst/TUnit#7424
* fix(mocks): bind explicit method type arguments on
Mock.Of<IGeneric<X>>() by @​thomhurst in
thomhurst/TUnit#7406
* fix(mocks): Is<T>(predicate) passes T, not T?, for non-nullable T by
@​thomhurst in thomhurst/TUnit#7405
* fix(engine): deliver row builder-context events to the test and raise
OnDispose once per test (#​7381) by @​thomhurst in
thomhurst/TUnit#7384
* fix: report generic classes whose data cannot infer types at compile
time by @​thomhurst in thomhurst/TUnit#7425
* fix(core): hold shared instances fetched while runtime tests register
by @​thomhurst in thomhurst/TUnit#7391
* fix(mocks): match null literals in generated predicate overloads by
@​thomhurst in thomhurst/TUnit#7415
* fix(mocks): qualify extern-aliased types with their alias in generated
code by @​thomhurst in thomhurst/TUnit#7403
* fix(generic): fail wrongly sized [GenerateGenericTest] in
source-generated mode by @​thomhurst in
thomhurst/TUnit#7344
* fix(sourcegen): generate a data source factory for
[InstanceMethodDataSource] (#​7225) by @​thomhurst in
thomhurst/TUnit#7348
* fix(aspire): preserve caller cancellation over startup cleanup faults
by @​thomhurst in thomhurst/TUnit#7447
* fix(tests): remove polling throughput requirement on shared runners by
@​thomhurst in thomhurst/TUnit#7448
* fix(html-reporter): scope report state per session when sessions
overlap by @​thomhurst in thomhurst/TUnit#7400
* fix(analyzers): validate class data against TestConstructor by
@​thomhurst in thomhurst/TUnit#7449
* Infer generic method types from typed array rows in both discovery
modes by @​thomhurst in thomhurst/TUnit#7460
* Share generic method inference policy between discovery modes by
@​thomhurst in thomhurst/TUnit#7455
 ... (truncated)

Commits viewable in [compare
view](thomhurst/TUnit@v1.78.0...v1.80.0).
</details>

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gergő Drazsdik <[email protected]>
This was referenced Nov 25, 2026
Bump the nuget-minor-patch group with 3 updates MASS4ORG/Graph#33
Open
Bump TUnit from 1.75.0 to 1.87.12 afscrome/AcrCredentialHelper#25
Open
Bump TUnit.Mocks from 1.75.0 to 1.87.12 afscrome/AcrCredentialHelper#26
Open
Bump the dotnet group with 2 updates rschili/RSFlowControl#24
Open
Bump the nuget-dependencies group with 8 updates sliekens/gw2sdk#540
Open
build: Bump the dotnet-dependencies group with 9 updates ncosentino/eve-client#209
Open
⬆️ Bump the tunit group with 1 update ChristophHornung/problemdetails#22
Open

This branch was previously deployed

1 inactive deployment
Pull Requests — a4b99733 Deployed Nov 3, 2026 by thomhurst via modularpipeline (windows-latest) #21013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@greptile-apps greptile-apps[bot] greptile-apps[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Generated invokers fail to convert nested tuple elements for generic tests

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@thomhurst
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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.