Skip to content

fix: the build verb runs the test classes the emitted assembly contains (modules resolvable) - #2794

Merged
rbuergi merged 1 commit into
mainfrom
fix/build-runs-the-tests-it-emitted
Aug 30, 2026
Merged

rbuergi merged 1 commit into
mainfrom
fix/build-runs-the-tests-it-emitted

Conversation

@rbuergi

@rbuergi rbuergi commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

The lane's first real run over MeshWeaver.Plugins (run 33319413459: 53 packages, 811 nodes, 47 green in 48.5 s) reported zero tests for every package. Cause: a type's Test/*.cs reaches the compile through the compiler's default query — the node declares sources, rarely tests — so gating the run on definition.Tests skipped every suite the assembly actually carried.

The assembly is the truth: the runner now executes whatever test classes it contains, reports the case count (no test classes in the assembly reads apart from 0 of N passed), and the composed --module assemblies are resolvable in the collectible load context, since the AI-bound types bind them.

Cascade tests 9/9 locally. Follow-up to #2784; the Plugins lane (Plugins#973) composes the modules on its side.

🤖 Generated with Claude Code

…ns, with the composed modules resolvable

The lane's first real run (MeshWeaver.Plugins 33319413459: 53 packages, 811 nodes) reported
zero tests for every package. A type's Test/*.cs reaches the compile through the compiler's
DEFAULT query — the node declares 'sources', rarely 'tests' — so gating the run on
definition.Tests skipped every suite the assembly actually carried. The assembly is the truth:
the runner now executes whatever test classes it contains, reports the case count (so
'no test classes in the assembly' reads apart from '0 of N passed'), and the composed --module
assemblies are resolvable in the load context, since the AI-bound types bind them.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HWc8YSndL2gpW2i9wRUQWt
Copilot AI lite review requested due to automatic review settings August 30, 2026 15:26
@rbuergi
rbuergi enabled auto-merge August 30, 2026 15:26

Copilot AI 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.

Pull request overview

Updates the mw-plugin-test build cascade runner so that test execution and reporting are driven by what the emitted assembly actually contains (rather than definition.Tests), and ensures --module assemblies participate in the collectible load context used by the static test runner.

Changes:

  • Always executes StaticTestRunner when RunTests is enabled, regardless of definition.Tests metadata.
  • Includes options.ModuleAssemblyPaths in the dependency assembly set given to StaticTestRunner.Execute to improve resolution of composed --module assemblies.
  • Enhances per-type console output to distinguish “no tests discovered” from non-zero case counts.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +466 to +468
+ (tests is null ? "" : tests.Cases.IsEmpty
? " tests: no test classes in the assembly"
: $" tests: {tests.Cases.Length} case(s) — {tests.Passed} passed, {tests.Failed} failed, {tests.NeedsMesh} needs-mesh")
@github-actions

Copy link
Copy Markdown
Contributor

Test Results (shard 3)

444 tests  ±0   444 ✅ ±0   4m 33s ⏱️ -34s
  6 suites ±0     0 💤 ±0 
  6 files   ±0     0 ❌ ±0 

Results for commit a1e7f3d. ± Comparison against base commit 5671b97.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (shard 4)

   10 files  ±0     10 suites  ±0   5m 4s ⏱️ -31s
3 084 tests ±0  3 084 ✅ ±0  0 💤 ±0  0 ❌ ±0 
3 749 runs  ±0  3 749 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit a1e7f3d. ± Comparison against base commit 5671b97.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (shard 0)

1 178 tests  ±0   985 ✅ ±0   5m 31s ⏱️ -2s
    5 suites ±0   193 💤 ±0 
    5 files   ±0     0 ❌ ±0 

Results for commit a1e7f3d. ± Comparison against base commit 5671b97.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (shard 5)

2 183 tests  ±0   2 179 ✅ ±0   6m 9s ⏱️ -42s
   10 suites ±0       4 💤 ±0 
   10 files   ±0       0 ❌ ±0 

Results for commit a1e7f3d. ± Comparison against base commit 5671b97.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (shard 2)

624 tests  ±0   624 ✅ ±0   6m 8s ⏱️ +3s
  6 suites ±0     0 💤 ±0 
  6 files   ±0     0 ❌ ±0 

Results for commit a1e7f3d. ± Comparison against base commit 5671b97.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (shard 1)

988 tests  ±0   988 ✅ ±0   5m 42s ⏱️ -23s
  5 suites ±0     0 💤 ±0 
  5 files   ±0     0 ❌ ±0 

Results for commit a1e7f3d. ± Comparison against base commit 5671b97.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   42 files  ±0     42 suites  ±0   33m 10s ⏱️ - 2m 9s
8 501 tests ±0  8 304 ✅ ±0  197 💤 ±0  0 ❌ ±0 
9 166 runs  ±0  8 969 ✅ ±0  197 💤 ±0  0 ❌ ±0 

Results for commit a1e7f3d. ± Comparison against base commit 5671b97.

@rbuergi
rbuergi merged commit a7cc0a7 into main Aug 30, 2026
26 checks passed
@rbuergi
rbuergi deleted the fix/build-runs-the-tests-it-emitted branch September 13, 2026 10:31
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.

2 participants