@@ -144,10 +144,68 @@ RawEventsVSCodeExt
144144 UniqueMachines = dcount (VSCodeMachineId)
145145 by ManagerName = tostring (Properties.managername), ErrorType = tostring (Properties.errortype)
146146| extend TotalUniqueMachines = totalMachines
147- | extend MachinePct = round (todouble (UniqueMachines) / todouble (TotalUniqueMachines) * 100 , 1 )
147+ | extend MachinePct = round (todouble (UniqueMachines) / todouble (TotalUniqueMachines) * 100 , 2 )
148148| order by EventCount desc ;
149149
150150
151+ // =============================================================================
152+ // CHECK 4a: SPAWN_TIMEOUT failures broken down by manager × extension version
153+ // Shows whether spawn_timeout is improving or worsening across versions.
154+ // If a new version shows higher MachinePct → that release regressed timeout handling.
155+ // =============================================================================
156+ let totalByVersion = RawEventsVSCodeExt
157+ | where ServerTimestamp > ago (7 d )
158+ | where ExtensionName == "ms-python.vscode-python-envs"
159+ | where ExtensionVersion != ""
160+ | extend _minor = toint (extract ("^1\\.(\\d+)" , 1 , ExtensionVersion)), _patch = tolong (extract ("^1\\.\\d+\\.(\\d+)" , 1 , ExtensionVersion))
161+ | where _minor > 23 or (_minor == 23 and _patch >= 10781012 )
162+ | summarize TotalMachines = dcount (VSCodeMachineId) by ExtVersion = ExtensionVersion;
163+ RawEventsVSCodeExt
164+ | where ServerTimestamp > ago (7 d )
165+ | where EventName == "ms-python.vscode-python-envs/manager_registration.failed"
166+ | extend ExtVersion = tostring (Properties["common.extversion" ])
167+ | extend _minor = toint (extract ("^1\\.(\\d+)" , 1 , ExtVersion)), _patch = tolong (extract ("^1\\.\\d+\\.(\\d+)" , 1 , ExtVersion))
168+ | where _minor > 23 or (_minor == 23 and _patch >= 10781012 )
169+ | where tostring (Properties.errortype) == "spawn_timeout"
170+ | summarize
171+ EventCount = count (),
172+ UniqueMachines = dcount (VSCodeMachineId)
173+ by ManagerName = tostring (Properties.managername), ExtVersion
174+ | join kind =inner totalByVersion on ExtVersion
175+ | extend MachinePct = round (todouble (UniqueMachines) / todouble (TotalMachines) * 100 , 2 )
176+ | project ManagerName, ExtVersion, EventCount, UniqueMachines, TotalMachines, MachinePct
177+ | order by ManagerName asc , ExtVersion desc ;
178+
179+
180+ // =============================================================================
181+ // CHECK 4b: UNKNOWN failures broken down by manager × extension version
182+ // Shows whether unknown errors are improving or worsening across versions.
183+ // High counts in the latest version → new unclassified error paths need investigation.
184+ // =============================================================================
185+ let totalByVersion = RawEventsVSCodeExt
186+ | where ServerTimestamp > ago (7 d )
187+ | where ExtensionName == "ms-python.vscode-python-envs"
188+ | where ExtensionVersion != ""
189+ | extend _minor = toint (extract ("^1\\.(\\d+)" , 1 , ExtensionVersion)), _patch = tolong (extract ("^1\\.\\d+\\.(\\d+)" , 1 , ExtensionVersion))
190+ | where _minor > 23 or (_minor == 23 and _patch >= 10781012 )
191+ | summarize TotalMachines = dcount (VSCodeMachineId) by ExtVersion = ExtensionVersion;
192+ RawEventsVSCodeExt
193+ | where ServerTimestamp > ago (7 d )
194+ | where EventName == "ms-python.vscode-python-envs/manager_registration.failed"
195+ | extend ExtVersion = tostring (Properties["common.extversion" ])
196+ | extend _minor = toint (extract ("^1\\.(\\d+)" , 1 , ExtVersion)), _patch = tolong (extract ("^1\\.\\d+\\.(\\d+)" , 1 , ExtVersion))
197+ | where _minor > 23 or (_minor == 23 and _patch >= 10781012 )
198+ | where tostring (Properties.errortype) == "unknown"
199+ | summarize
200+ EventCount = count (),
201+ UniqueMachines = dcount (VSCodeMachineId)
202+ by ManagerName = tostring (Properties.managername), ExtVersion
203+ | join kind =inner totalByVersion on ExtVersion
204+ | extend MachinePct = round (todouble (UniqueMachines) / todouble (TotalMachines) * 100 , 2 )
205+ | project ManagerName, ExtVersion, EventCount, UniqueMachines, TotalMachines, MachinePct
206+ | order by ManagerName asc , ExtVersion desc ;
207+
208+
151209// =============================================================================
152210// CHECK 5: SETUP.HANG_DETECTED — property validation
153211// Expected: failureStage in {nativeFinder, managerRegistration, envSelection, terminalWatcher, settingsListener}
0 commit comments