Skip to content

PackageDeploymentManager - Fix .Stop() events not being generated. Include PackageReadyOrNewerAvailableStatus in .Stop() events.#5278

Merged
DrusTheAxe merged 4 commits intomainfrom
user/drustheaxe/pdm-telemetry
Mar 27, 2025
Merged

PackageDeploymentManager - Fix .Stop() events not being generated. Include PackageReadyOrNewerAvailableStatus in .Stop() events.#5278
DrusTheAxe merged 4 commits intomainfrom
user/drustheaxe/pdm-telemetry

Conversation

@DrusTheAxe
Copy link
Copy Markdown
Member

@DrusTheAxe DrusTheAxe commented Mar 27, 2025

Fixed .Stop() events to be called before co_return...CompletedSuccess (rather than after and thus not actually be called).

Add PackageReadyOrNewerAvailableStatus to .Stop() events for EnsurePackageReadyAsync and EnsurePackageSetReadyAsync.

NOTE: EnsurePackageReadyByUriAsync calls EnsurePackageSetReadyAsync to do its heavy lifting so see the nested event for this data.

Fix compiler warnings

https://task.ms/56757819

@DrusTheAxe DrusTheAxe added the area-WinAppSDKDeployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) label Mar 27, 2025
@DrusTheAxe DrusTheAxe added this to the 1.8 milestone Mar 27, 2025
@DrusTheAxe DrusTheAxe self-assigned this Mar 27, 2025
@DrusTheAxe
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dabhattimsft
Copy link
Copy Markdown
Contributor

    {

Can we have an event here to tell if packageSet was already ready?


Refers to: dev/PackageManager/API/M.W.M.D.PackageDeploymentManager.cpp:472 in 0562da1. [](commit_id = 0562da1, deletion_comment = False)

@dabhattimsft
Copy link
Copy Markdown
Contributor

                PackageDeploymentStatus::CompletedFailure, activityId, error, extendedError, errorText);

can we expand activity stop event to have package deployment result?


Refers to: dev/PackageManager/API/M.W.M.D.PackageDeploymentManager.cpp:504 in 0562da1. [](commit_id = 0562da1, deletion_comment = False)

@DrusTheAxe DrusTheAxe merged commit 48b86fc into main Mar 27, 2025
27 checks passed
@DrusTheAxe DrusTheAxe deleted the user/drustheaxe/pdm-telemetry branch March 27, 2025 19:52
@DrusTheAxe
Copy link
Copy Markdown
Member Author

                PackageDeploymentStatus::CompletedFailure, activityId, error, extendedError, errorText);

can we expand activity stop event to have package deployment result?

Refers to: dev/PackageManager/API/M.W.M.D.PackageDeploymentManager.cpp:504 in 0562da1. [](commit_id = 0562da1, deletion_comment = False)

This is a thin wrapper over Add|Ensure calls so those will have the results you're looking for. Adding that info here is limited value and high complexity so the ROI wasn't worthy. You'll have an event with a nested event so later analysis has the data.

If this is problematic come hunt me up to discuss.

DrusTheAxe added a commit that referenced this pull request Apr 4, 2025
…ng generated. Include PackageReadyOrNewerAvailableStatus in .Stop() events (#5297)

!cherry-pick 0562da1
!cherry-pick 3c17287

* PackageDeploymentManager - Fix .Stop() events not being generated. Include PackageReadyOrNewerAvailableStatus in .Stop() events. [#5278](#5278)
* PackageDeploymentManager - Add missing .Stop() event on CompletedSuccess [#5284](#5284)

https://task.ms/56951078
DrusTheAxe added a commit that referenced this pull request Apr 4, 2025
…ng generated. Include PackageReadyOrNewerAvailableStatus in .Stop() events (#5296)

!cherry-pick 0562da1
!cherry-pick 3c17287

* PackageDeploymentManager - Fix .Stop() events not being generated. Include PackageReadyOrNewerAvailableStatus in .Stop() events. [#5278](#5278)
* PackageDeploymentManager - Add missing .Stop() event on CompletedSuccess [#5284](#5284)

https://task.ms/56951092
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-WinAppSDKDeployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) needs-triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants