Repository navigation
Delta Util integration - #6558
Merged
Merged
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Delta consistency can accept malformed data, misclassify damaged deltas, and silently ignore unsupported comparisons.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
Open (5)
Validate is_removed flags contain only 0 or 1 · New Require a non-removed map entry for referenced values · New Detect damaged deltas before standard index consistency checks · New Reject DeltaComparisonIndexPath in unsupported schema versions · New Require only the three generation properties · New
What changed in this PR
Exposes delta-index generation and validation through WinGetUtil properties while integrating baseline metadata and consistency checks.
Changes:
- Adds public delta-generation and comparison properties.
- Implements delta metadata, generation, merged-view validation, and equivalence checks.
- Adds native and interop test coverage.
| File | Description |
|---|---|
src/WinGetUtilInterop/Interfaces/IWinGetSQLiteIndex.cs |
Defines managed delta properties. |
src/WinGetUtilInterop.UnitTests/APIUnitTests/SQLiteIndexUnitTests.cs |
Tests managed delta workflows. |
src/WinGetUtil/WinGetUtil.h |
Extends the native property enum. |
src/WinGetUtil/Exports.cpp |
Maps native properties internally. |
src/AppInstallerRepositoryCore/Microsoft/SQLiteIndex.h |
Updates index API and properties. |
src/AppInstallerRepositoryCore/Microsoft/SQLiteIndex.cpp |
Handles delta properties and contextual consistency. |
src/AppInstallerRepositoryCore/Microsoft/Schema/SQLiteIndexContextData.h |
Stores new contextual properties. |
src/AppInstallerRepositoryCore/Microsoft/Schema/ISQLiteIndex.h |
Adds const operation context. |
src/AppInstallerRepositoryCore/Microsoft/Schema/ISQLiteIndex.cpp |
Implements default contextual checking. |
src/AppInstallerRepositoryCore/Microsoft/Schema/2_1/Interface.h |
Declares 2.1 delta metadata and checks. |
src/AppInstallerRepositoryCore/Microsoft/Schema/2_1/Interface_2_1.cpp |
Integrates generation and consistency behavior. |
src/AppInstallerRepositoryCore/Microsoft/Schema/2_1/DeltaGeneration.h |
Defines baseline references. |
src/AppInstallerRepositoryCore/Microsoft/Schema/2_1/DeltaGeneration.cpp |
Persists baseline metadata. |
src/AppInstallerRepositoryCore/Microsoft/Schema/2_1/DeltaConsistency.h |
Declares delta validation APIs. |
src/AppInstallerRepositoryCore/Microsoft/Schema/2_1/DeltaConsistency.cpp |
Implements consistency and equivalence checks. |
src/AppInstallerRepositoryCore/Microsoft/Schema/2_0/Interface.h |
Exposes contextual overloads. |
src/AppInstallerRepositoryCore/Microsoft/Schema/2_0/Interface_2_0.cpp |
Rejects unsupported generation properties. |
src/AppInstallerRepositoryCore/AppInstallerRepositoryCore.vcxproj.filters |
Registers new files in filters. |
src/AppInstallerRepositoryCore/AppInstallerRepositoryCore.vcxproj |
Adds new files to the build. |
src/AppInstallerCLITests/SQLiteIndexDelta.cpp |
Expands native delta tests. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Ruben Guerrero (msftrubengu)
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



📖 Description
This change exposes the delta index generation to the util interfaces. It does this exclusively through properties, removing the explicit baseline marking function in favor of setting a property and thus allowing a single pass through the prepare routines. It also adds new properties that will be used in a future change for the client to consume the delta.
It adds extensive consistency checking so that delta generation errors can be detected early. Delta consistency covers:
An example calling pattern for the delta changes:
🔍 Validation
Added new tests.
Microsoft Reviewers: Open in CodeFlow