Skip to content

Fix 24 duplicate test cases in InstallRuntimeFromChannelTestCases#702

Merged
MichaelSimons merged 1 commit into
mainfrom
copilot/fix-duplicate-test-cases
Apr 29, 2026
Merged

Fix 24 duplicate test cases in InstallRuntimeFromChannelTestCases#702
MichaelSimons merged 1 commit into
mainfrom
copilot/fix-duplicate-test-cases

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 28, 2026

Summary

Fix 24 duplicate test cases in InstallRuntimeFromChannelTestCases that cause xUnit to skip them with warnings, and grant execute permissions on eng/common bash scripts.

Changes

Deduplicate test cases

InstallRuntimeFromChannelTestCases iterates both _runtimeBranches and _channels, which contain overlapping entries (6.0 through 11.0). This produces identical test parameter tuples that xUnit skips with "duplicate ID" warnings — 24 in total across 4 test methods. A HashSet is used to deduplicate before yielding.

Shell script permissions

Grant execute permission on all eng/common bash scripts and build.sh for an improved local dev experience on Unix systems.

Fixes #701

Copilot AI changed the title [WIP] Fix duplicate test cases in runtime install tests Fix 24 duplicate test cases in InstallRuntimeFromChannelTestCases Apr 28, 2026
Copilot AI requested a review from MichaelSimons April 28, 2026 19:30
The InstallRuntimeFromChannelTestCases property iterates both
_runtimeBranches and _channels, which contain overlapping entries
(e.g. 6.0 through 11.0). This produces 24 duplicate test case IDs
that xUnit skips with warnings, which is wasteful and the output
can be confusing.

Fix by using a HashSet to deduplicate test case tuples before
yielding them.

Additionally, grant execute permissions on eng/common bash scripts
for an improved local dev experience.

Fixes #701

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MichaelSimons MichaelSimons force-pushed the copilot/fix-duplicate-test-cases branch from 5015768 to 7312970 Compare April 29, 2026 14:38
@MichaelSimons MichaelSimons marked this pull request as ready for review April 29, 2026 16:21
@MichaelSimons MichaelSimons requested a review from a team as a code owner April 29, 2026 16:21
@MichaelSimons MichaelSimons enabled auto-merge April 29, 2026 16:44
@MichaelSimons MichaelSimons merged commit 64a6149 into main Apr 29, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Rollout in .NET Install Scripts Apr 29, 2026
@MichaelSimons MichaelSimons deleted the copilot/fix-duplicate-test-cases branch April 29, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Rollout

Development

Successfully merging this pull request may close these issues.

Duplicate test cases in runtime install tests cause 24 skipped tests per run

3 participants