Skip to content

Re-enable template search sorting test - #55705

Merged
marcpopMSFT merged 2 commits into
mainfrom
marcpopmsft-reenable-template-search-sort-test
Aug 11, 2026
Merged

marcpopMSFT merged 2 commits into
mainfrom
marcpopmsft-reenable-template-search-sort-test

Conversation

@marcpopMSFT

Copy link
Copy Markdown
Member

Summary

  • re-enable CanSortByDownloadCountAndThenByName
  • treat ellipsis-truncated template names as equivalent to their full rendered names
  • make the shrink-aware comparer valid by returning equality for indistinguishable names

This is part of the weekly test issue cleanup effort to burn down SDK test debt and known build errors.

Fixes #39772

Testing

  • CanSortByDownloadCountAndThenByName (3 data rows)

Copilot AI lite review requested due to automatic review settings August 10, 2026 20:50
@marcpopMSFT
marcpopMSFT requested review from a team as code owners August 10, 2026 20:50
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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

This PR re-enables the previously skipped dotnet new --search sorting integration test by adjusting the test’s name comparison logic to treat ellipsis-truncated template names as equivalent to their non-truncated forms, reducing flakiness due to display truncation.

Changes:

  • Re-enabled CanSortByDownloadCountAndThenByName by removing the [Ignore] attribute.
  • Materialized the expected ordered rows and updated assertions to compare template names via the shrink-aware comparer.
  • Updated the shrink-aware comparer to return equality (0) when a truncated and non-truncated name are indistinguishable by visible prefix.

Avoid using truncation equivalence as an ordering comparer. Validate download counts and distinguishable rendered names pairwise instead.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: cf9fe400-e7ac-4a58-8600-7b533ec5e32a
@marcpopMSFT
marcpopMSFT requested a review from joeloff August 11, 2026 18:04
@marcpopMSFT
marcpopMSFT merged commit 8231a56 into main Aug 11, 2026
21 checks passed
@marcpopMSFT
marcpopMSFT deleted the marcpopmsft-reenable-template-search-sort-test branch August 11, 2026 20:29
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Aug 15, 2026
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.

Re-enable CanSortByDownloadCountAndThenByName Template Engine test

3 participants