Skip to content

Align pinget with packaged winget on Windows and add parity tests - #2

Merged
Marc-André Moreau (mamoreau-devolutions) merged 22 commits into
masterfrom
settings
Apr 26, 2026
Merged

Marc-André Moreau (mamoreau-devolutions) merged 22 commits into
masterfrom
settings

Conversation

@mamoreau-devolutions

@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) commented Apr 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR aligns pinget with packaged winget behavior on Windows and adds a dedicated parity test pipeline that validates coherence across system winget, Rust pinget, C# pinget, and the PowerShell module.

What Changed

  • Added Windows parity CI workflow:
    • .github/workflows/parity-test.yml
  • Added parity harness and helper scripts at workspace root:
    • scripts/Parity-Compare-WingetParity.ps1
    • scripts/Compare-WingetParity.ps1
  • Updated naming from smoke tests to parity tests throughout workflow/harness messaging.
  • Improved parity harness reliability:
    • normalized/filtered winget progress output to reduce noisy diffs
    • repaired source baseline handling and read-only parity behavior
    • skipped unsupported installed-pin scenarios where packaged winget does not persist installed pins for selected packages
  • Aligned Windows storage/settings behavior with packaged winget.
  • Fixed install/uninstall parity paths and installer handling.
  • Added pinning compatibility with packaged winget schema/type behavior.
  • Updated .NET and Rust core logic/tests to support the parity behavior changes.

Key Files

  • .github/workflows/parity-test.yml
  • scripts/Parity-Compare-WingetParity.ps1
  • scripts/Compare-WingetParity.ps1

ust/crates/pinget-core/src/lib.rs

  • dotnet/src/Devolutions.Pinget.Core/SourceStore.cs
  • dotnet/src/Devolutions.Pinget.Core/PinStore.cs
  • dotnet/src/Devolutions.Pinget.Core/Repository.cs
  • dotnet/src/Devolutions.Pinget.Core/InstallerDispatch.cs
  • dotnet/src/Devolutions.Pinget.Core.Tests/CoreTests.cs

Validation

  • Parity workflow executed successfully on branch settings after the script relocation updates.

@mamoreau-devolutions Marc-André Moreau (mamoreau-devolutions) changed the title Rename smoke tests to parity tests Align pinget with packaged winget on Windows and add parity tests Apr 26, 2026
@mamoreau-devolutions
Marc-André Moreau (mamoreau-devolutions) merged commit 232b9d2 into master Apr 26, 2026
5 checks passed
Marc-André Moreau (mamoreau-devolutions) added a commit that referenced this pull request Nov 8, 2026
…raries (Rust + C#)

#2 verify/publish after a kill mid package-swap: Rust stages the package under --state and writes .source2.*.new only after the pendingCommit marker; verify ignores root swap temporaries (.source2.*.new, source2.msix.<guid>.tmp, legacy .publish-<build>.staging) only while pendingCommit is set and marker write temporaries always (both sides); next publish removes them; real-interruption tests via commit-step hooks (review_b_tests.rs, ReviewFixesBTests.cs); contract.md updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant