Skip to content

Sort and deduplicate exported packages - #6438

Open
Andrew Barnes (Bortlesboat) wants to merge 1 commit into
microsoft:masterfrom
Bortlesboat:agent/1058-sort-export-packages
Open

Sort and deduplicate exported packages#6438
Andrew Barnes (Bortlesboat) wants to merge 1 commit into
microsoft:masterfrom
Bortlesboat:agent/1058-sort-export-packages

Conversation

@Bortlesboat

@Bortlesboat Andrew Barnes (Bortlesboat) commented Aug 6, 2026

Copy link
Copy Markdown

📖 Description

Sort each exported source's package list by package identifier. For the default
export mode, remove repeated identifiers after sorting. Keep repeated entries
when --include-versions is present so distinct version records are retained.

The workflow tests now start from an intentionally unsorted source and include
a duplicate package, then assert ordering and the mode-specific duplicate
behavior.

AI assistance: OpenAI Codex helped draft the implementation and tests. I
reviewed the complete diff and validation evidence and take responsibility for
the contribution.

🔗 References

Resolves #1058

🔍 Validation

  • AppInstallerCLITests.exe 'ExportFlow*' --reporter compact: 38 assertions in 3 test cases passed
  • relevant AppInstaller CLI test target built successfully
  • git diff --check

✅ Checklist

  • Signed the Contributor License Agreement — pending the automated PR check
  • Linked to an issue
  • Updated Release Notes — not applicable to this focused change
  • Updated documentation — not applicable; export behavior and tests are self-contained
  • Updated Copilot instructions — not applicable; no build, architecture, or convention change

📋 Issue Type

  • Bug fix
  • Feature
  • Task
Microsoft Reviewers: Open in CodeFlow

@Bortlesboat
Andrew Barnes (Bortlesboat) requested a review from a team as a code owner August 6, 2026 17:27
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@microsoft-github-policy-service microsoft-github-policy-service Bot added Issue-Feature This is a feature request for the Windows Package Manager client. Area-Sorting Issue related to sorting output labels Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Sorting Issue related to sorting output Issue-Feature This is a feature request for the Windows Package Manager client.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export should sort and remove duplicates

1 participant