Repository navigation
chore: bump Uno.Settings.DevServer to 2.0.0-dev.10 and Uno.DevTools.Telemetry to 1.4.0-dev.18 - #24594
Conversation
074bb4b to
cc8d82f
Compare
|
@rajamatt ready to merge? |
carldebilly
left a comment
There was a problem hiding this comment.
Approving: the two bumps belong together, the add-in alignment check passes, and nothing here should break a build or an add-in load. A few things are worth addressing before merge, mostly in the PR description and the privacy documentation, because the packages pulled in do more than the title suggests.
What this change brings in
- Every dev-server telemetry event sent after the Settings add-in loads now carries the signed-in account id (
user_AuthenticatedId). Hot Design server events are attributed too, with no change on its side (it bundles Telemetry 1.2.1 and rolls forward to the host's 1.4). - Licensing SDK 2.0 changes sign-in behaviour: a cross-process user switch restarts the token refresh, and a new transient path can return no token or throw
InvalidOperationExceptionfromGetCreditsAsync/ReserveCreditsAsync. It also fixes a case where the new user's id was paired with the previous user's token. tools/devserver/Config/sdk.jsonin the Settings package moves the licensing API base URL fromlicencing.api.platform.unotolicensing.api.platform.uno(both resolve today).- The two bumps are coupled in one direction: Settings 2.0 on a host with Telemetry older than 1.4 (reachable with
UnoSettingsVersionon an older SDK) loads a second Telemetry copy and silently loses attribution. A revert has to take both lines together.
Not anchored to a diff line
- MEDIUM -
src/Uno.UI.RemoteControl.Host/Telemetry.mdis the GDPR/privacy inventory of dev-server events and does not mentionuser_AuthenticatedId. Suggest a short note naming the tag, its source (the Settings add-in), theUNO_PLATFORM_TELEMETRY_OPTOUTopt-out and theLicensingSdkOptions:PublishAuthenticatedUserIdToTelemetryswitch, in a docs-only commit.
Minor notes
- Nothing in this repo tests or demonstrates attribution end to end. The host's
UNO_PLATFORM_TELEMETRY_FILEsink is its ownFileTelemetry, so it cannot show the id for host events; a short manual check onuser_AuthenticatedIdin Application Insights, grouped by event name, would back the PR's central claim. - Add-ins share the host's
TelemetryUserContext, so a third-party add-in usingUno.DevTools.Telemetrywith its own instrumentation key would also stamp the Uno account id. - Unsent events queued in the shared temp directory will now include the account id (on Linux,
/tmpis shared between users). Worth confirming upstream.
Worth checking manually
- Switch accounts in a second process while a host or the IDE is refreshing a token. It is a defect if a raw "No authenticated user" exception reaches the developer, or if the displayed sign-in state does not match the account in use.
Summary: 5 medium, 1 low, 2 info. Approving, with the PR description and documentation updates recommended before merge.
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The coordinated package bumps are covered by the existing add-in load-graph compatibility gate.
Review effort: Balanced
Findings: None
What changed in this PR
Coordinates DevServer settings and telemetry package upgrades to support authenticated telemetry attribution.
Changes:
- Upgrades
Uno.Settings.DevServerto 2.0. - Upgrades the shared telemetry dependency to 1.4 prerelease.
| File | Description |
|---|---|
src/Uno.Sdk/packages.json |
Updates the Settings add-in version. |
src/Directory.Packages.props |
Updates telemetry across consuming projects. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24594/wasm-skia-net9/index.html |
…elemetry to 1.4.0-dev.18 Uno.Settings.DevServer 2.0.0-dev.10 carries Uno.Licensing.Sdk 2.0, whose user store publishes the signed-in account id to Uno.DevTools.Telemetry's process-wide TelemetryUserContext, so every telemetry event emitted in the dev-server process while the Uno account is signed in is attributed to it (the native user_AuthenticatedId column). Add-ins load into the default load context and resolve Uno.DevTools.Telemetry to the host's copy, so the central Uno.DevTools.Telemetry version moves to 1.4.0-dev.18, the first build with the store, in the same change. Every project that references it, the source generators included, uses that one version. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PSS3Ndp941pGwx2QHS8mPc
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PSS3Ndp941pGwx2QHS8mPc
cc8d82f to
0a5f906
Compare
🤖 Addressed PR comments up to this pointRebased on latest
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24594/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24594/docs/index.html |
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
Backport of unoplatform#24594 (Telemetry part), unoplatform#25624 and unoplatform#25848. This branch pins the package in each project, so the master bumps don't apply as-is. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Docs part of unoplatform#24594. Co-Authored-By: Claude Opus 5.5 <[email protected]>
GitHub Issue: related to unoplatform/studio.live#3337 (package side: unoplatform/uno.devtools.telemetry#31, SDK side: unoplatform/uno.licensing#798)
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
Telemetry events from the dev-server process now carry the signed-in Uno account id (the native Application Insights
user_AuthenticatedIdcolumn). Before this change, dev-server telemetry was never attributed to a user.Uno.Settings.DevServer1.13.0-dev.7 to 2.0.0-dev.10 insrc/Uno.Sdk/packages.json. This add-in carriesUno.Licensing.Sdk2.0. Its user store publishes the account id toUno.DevTools.Telemetry's process-wideTelemetryUserContexton sign-in, sign-out and first load, so telemetry clients in the dev-server process that resolve the host'sUno.DevTools.Telemetrypick it up with no per-tool code (see the coverage list below). 2.0 is the licensing line for Uno 7.0, which matches master's7.0-dev.Uno.DevTools.Telemetry1.3.3 to 1.4.0-dev.18 insrc/Directory.Packages.props, so every project that references it moves together: the host, the server, the dev-server tests and the source generators. 1.4.0-dev.18 is the first build with the store. Add-ins load into the default load context and resolve this assembly to the host's copy, so the host has to be on 1.4 for the add-in's publisher to find the store. That is why both bumps ship together.Attribution coverage
startup,addin-discovery-*,addin-loading-*, includingaddin-loading-error), the host'sUNO_PLATFORM_TELEMETRY_FILEsink, the XAML source generators (they move to 1.4 too, but run in the compiler), and IDE extensions running in other processes. Queries onuser_AuthenticatedIdwill undercount accordingly.Behaviour change (Licensing SDK 2.0)
ILicensingService.GetAccessTokenAsynccan now returnnull, andGetCreditsAsync/ReserveCreditsAsynccan throw a transientInvalidOperationExceptionafter a cross-process user switch. Hot Design consumes this service through the shared Contracts assembly. 2.0 also fixes a case where the new user's id was paired with the previous user's token. A revert has to take both bumps together.Docs
uno-toolchain-telemetry.mdnow covers the dev-server, the account id and the fact that onlyUNO_PLATFORM_TELEMETRY_OPTOUTsilences the dev-server (theUnoPlatformTelemetryOptOutMSBuild property only reaches the XAML generator). The host'sTelemetry.mdinventory documentsuser_AuthenticatedId.Follow-ups before the 7.0 release
Uno.DevTools.Telemetryto a stable 1.4.x (1.4.0-dev.18 is a prerelease).Uno.Licensing.*assemblies still report AssemblyVersion 1.0.0.0 in 2.0, soAddInVersionAlignmentTestscan't tell Settings' and Hot Design's copies apart.The value is unverified client attribution. Users opt out of all telemetry with
UNO_PLATFORM_TELEMETRY_OPTOUT=true, and the privacy policy disclosure is tracked in unoplatform/studio.live#3204 (closed).AddInVersionAlignmentTestschecks that each add-in's load graph resolves against the host without a downgrade. It covers exactly this change, and CI runs it. It could not run locally because master targets .NET 11 and the machine has the .NET 10 SDK.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code