@@ -2122,39 +2122,6 @@ export interface IEventNamePropertyMapping {
21222122 */
21232123 interpreterType ?: EnvironmentType ;
21242124 } ;
2125- /**
2126- * Telemetry event sent indicating the trigger source for discovery.
2127- */
2128- /* __GDPR__
2129- "unittest.discovery.trigger" : {
2130- "trigger" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
2131- "filekind" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
2132- "mssincelasttrigger" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true }
2133- }
2134- */
2135- [ EventName . UNITTEST_DISCOVERY_TRIGGER ] : {
2136- /**
2137- * Carries the source which triggered discovering of tests
2138- *
2139- * @type {('auto' | 'ui' | 'commandpalette' | 'watching' | 'interpreter') }
2140- * auto : Triggered by VS Code editor.
2141- * ui : Triggered by clicking a button.
2142- * commandpalette : Triggered by running the command from the command palette.
2143- * watching : Triggered by filesystem or content changes.
2144- * interpreter : Triggered by interpreter change.
2145- */
2146- trigger : 'auto' | 'ui' | 'commandpalette' | 'watching' | 'interpreter' ;
2147- /**
2148- * For 'auto' / 'watching' triggers, classifies the file whose change triggered discovery.
2149- * Used to detect whether discovery is firing on non-test files (see #25866).
2150- */
2151- fileKind ?: 'test' | 'conftest' | 'non-test' | 'unknown' ;
2152- /**
2153- * Milliseconds since the previous discovery trigger fired (any source).
2154- * Helps detect chatty re-trigger storms.
2155- */
2156- msSinceLastTrigger ?: number ;
2157- } ;
21582125 /**
21592126 * Telemetry event sent with details about discovering tests
21602127 */
@@ -2180,10 +2147,9 @@ export interface IEventNamePropertyMapping {
21802147 "failed" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
21812148 "mode" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
21822149 "trigger" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
2183- "failurecategory" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd" },
2184- "totaldurationms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true },
2185- "testcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true },
2186- "exitcode" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true }
2150+ "failureCategory" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd" },
2151+ "totalDurationMs" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true },
2152+ "testCount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true }
21872153 }
21882154 */
21892155 [ EventName . UNITTEST_DISCOVERY_DONE ] : {
@@ -2205,7 +2171,7 @@ export interface IEventNamePropertyMapping {
22052171 */
22062172 mode ?: 'project' | 'legacy' ;
22072173 /**
2208- * Source that triggered the discovery (mirrors UNITTEST_DISCOVERY_TRIGGER.trigger) .
2174+ * Source that triggered the discovery.
22092175 */
22102176 trigger ?: 'auto' | 'ui' | 'commandpalette' | 'watching' | 'interpreter' ;
22112177 /**
@@ -2228,10 +2194,6 @@ export interface IEventNamePropertyMapping {
22282194 * Number of test items discovered (leaf nodes).
22292195 */
22302196 testCount ?: number ;
2231- /**
2232- * Subprocess exit code, when known (failed discoveries).
2233- */
2234- exitCode ?: number ;
22352197 } ;
22362198 /**
22372199 * Telemetry event sent when cancelling discovering tests
@@ -2283,13 +2245,9 @@ export interface IEventNamePropertyMapping {
22832245 "debugging" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
22842246 "mode" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
22852247 "failed" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
2286- "failurecategory" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd" },
2287- "pipeclosedearly" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd" },
2288- "durationms" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true },
2289- "requestedcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true },
2290- "reportedcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true },
2291- "missingcount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true },
2292- "exitcode" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true }
2248+ "failureCategory" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd" },
2249+ "durationMs" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true },
2250+ "requestedCount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true }
22932251 }
22942252 */
22952253 [ EventName . UNITTEST_RUN_DONE ] : {
@@ -2311,11 +2269,6 @@ export interface IEventNamePropertyMapping {
23112269 | 'env-mismatch'
23122270 | 'cancelled'
23132271 | 'unknown' ;
2314- /**
2315- * `true` if the result pipe was disposed before the subprocess fully
2316- * reported all requested test results (see #25872).
2317- */
2318- pipeClosedEarly ?: boolean ;
23192272 /**
23202273 * Wall-clock duration of the run in milliseconds.
23212274 */
@@ -2324,48 +2277,6 @@ export interface IEventNamePropertyMapping {
23242277 * Number of test items the user asked to run.
23252278 */
23262279 requestedCount ?: number ;
2327- /**
2328- * Number of distinct test results reported back over the pipe.
2329- */
2330- reportedCount ?: number ;
2331- /**
2332- * requestedCount - reportedCount (signals #25892 "all skipped" pattern).
2333- */
2334- missingCount ?: number ;
2335- /**
2336- * Subprocess exit code when known.
2337- */
2338- exitCode ?: number ;
2339- } ;
2340- /**
2341- * Telemetry event emitted after the test tree is updated with new discovery results.
2342- * Used to detect full-rebuild-on-every-save pattern (see #25822, #25866).
2343- */
2344- /* __GDPR__
2345- "unittest.tree.update" : {
2346- "tool" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
2347- "mode" : { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "eleanorjboyd" },
2348- "rebuiltfromscratch" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd" },
2349- "beforecount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true },
2350- "aftercount" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "owner": "eleanorjboyd", "isMeasurement": true }
2351- }
2352- */
2353- [ EventName . UNITTEST_TREE_UPDATE ] : {
2354- tool : TestTool ;
2355- mode : 'project' | 'legacy' ;
2356- /**
2357- * `true` if the discovery handler cleared and rebuilt all test items rather
2358- * than performing an incremental update.
2359- */
2360- rebuiltFromScratch : boolean ;
2361- /**
2362- * Number of root test items in the controller before this update.
2363- */
2364- beforeCount : number ;
2365- /**
2366- * Number of root test items in the controller after this update.
2367- */
2368- afterCount : number ;
23692280 } ;
23702281 /**
23712282 * Telemetry event sent when testing is disabled for a workspace.
0 commit comments