Skip to content

Commit fbdd7ac

Browse files
jackfranklinDevtools-frontend LUCI CQ
authored andcommitted
RPP: remove experimental insights experiment
We are not actively building out lots of new insights right now, and if we were we should enable them with a Chromium feature flag which is the latest guidance, so we can remove this experiment. [email protected] Bug: none Change-Id: Ifbdafe7af44410074be30b5b2265d3b2ab2b58c6 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6788073 Commit-Queue: Jack Franklin <[email protected]> Reviewed-by: Yang Guo <[email protected]> Commit-Queue: Yang Guo <[email protected]> Auto-Submit: Jack Franklin <[email protected]>
1 parent 7491ac4 commit fbdd7ac

File tree

6 files changed

+0
-70
lines changed

6 files changed

+0
-70
lines changed

front_end/core/host/UserMetrics.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,6 @@ export enum DevtoolsExperiments {
826826
'timeline-enhanced-traces' = 90,
827827
'timeline-compiled-sources' = 91,
828828
'timeline-debug-mode' = 93,
829-
'timeline-experimental-insights' = 102,
830829
'vertical-drawer' = 107,
831830
/* eslint-enable @typescript-eslint/naming-convention */
832831

front_end/core/root/Runtime.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ export const enum ExperimentName {
322322
TIMELINE_DEBUG_MODE = 'timeline-debug-mode',
323323
TIMELINE_ENHANCED_TRACES = 'timeline-enhanced-traces',
324324
TIMELINE_COMPILED_SOURCES = 'timeline-compiled-sources',
325-
TIMELINE_EXPERIMENTAL_INSIGHTS = 'timeline-experimental-insights',
326325
VERTICAL_DRAWER = 'vertical-drawer',
327326
// Adding or removing an entry from this enum?
328327
// You will need to update:

front_end/entrypoints/main/MainImpl.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,6 @@ export class MainImpl {
360360
'Performance panel: show postMessage dispatch and handling flows',
361361
);
362362

363-
Root.Runtime.experiments.register(
364-
Root.Runtime.ExperimentName.TIMELINE_EXPERIMENTAL_INSIGHTS,
365-
'Performance panel: enable experimental performance insights',
366-
);
367-
368363
Root.Runtime.experiments.enableExperimentsByDefault([
369364
Root.Runtime.ExperimentName.FULL_ACCESSIBILITY_TREE,
370365
Root.Runtime.ExperimentName.HIGHLIGHT_ERRORS_ELEMENTS_PANEL,

front_end/panels/timeline/components/SidebarSingleInsightSet.test.ts

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import * as Root from '../../../core/root/root.js';
65
import * as Trace from '../../../models/trace/trace.js';
76
import {getCleanTextContentFromElements, renderElementIntoDOM} from '../../../testing/DOMHelpers.js';
87
import {describeWithEnvironment} from '../../../testing/EnvironmentHelpers.js';
@@ -126,51 +125,6 @@ describeWithEnvironment('SidebarSingleInsightSet', () => {
126125
]);
127126
});
128127

129-
it('renders experimental insights if the experiment is turned on', async function() {
130-
const {parsedTrace, metadata, insights} = await TraceLoader.traceEngine(this, 'font-display.json.gz');
131-
const component = new Components.SidebarSingleInsightSet.SidebarSingleInsightSet();
132-
Root.Runtime.experiments.enableForTest(
133-
Root.Runtime.ExperimentName.TIMELINE_EXPERIMENTAL_INSIGHTS,
134-
);
135-
renderElementIntoDOM(component);
136-
const firstNavigation = parsedTrace.Meta.mainFrameNavigations.at(0)?.args.data?.navigationId;
137-
assert.isOk(firstNavigation);
138-
component.data = {
139-
insights,
140-
insightSetKey: firstNavigation,
141-
activeCategory: Trace.Insights.Types.InsightCategory.ALL,
142-
activeInsight: null,
143-
parsedTrace,
144-
traceMetadata: metadata,
145-
};
146-
await RenderCoordinator.done();
147-
const userVisibleTitles = getUserVisibleInsights(component);
148-
assert.deepEqual(userVisibleTitles, [
149-
'LCP breakdown',
150-
'Layout shift culprits',
151-
'Network dependency tree',
152-
'Improve image delivery',
153-
'Font display',
154-
'3rd parties',
155-
'Use efficient cache lifetimes',
156-
]);
157-
158-
const passedInsightTitles = getPassedInsights(component);
159-
assert.deepEqual(passedInsightTitles, [
160-
'INP breakdown',
161-
'LCP request discovery',
162-
'Render blocking requests',
163-
'Document request latency',
164-
'Optimize viewport for mobile',
165-
'Optimize DOM size',
166-
'Duplicated JavaScript',
167-
'CSS Selector costs',
168-
'Forced reflow',
169-
'Modern HTTP',
170-
'Legacy JavaScript',
171-
]);
172-
});
173-
174128
it('will render the active insight fully', async function() {
175129
const {insights, metadata, parsedTrace} = await TraceLoader.traceEngine(this, 'web-dev-with-commit.json.gz');
176130

front_end/panels/timeline/components/SidebarSingleInsightSet.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import * as i18n from '../../../core/i18n/i18n.js';
77
import * as Platform from '../../../core/platform/platform.js';
8-
import * as Root from '../../../core/root/root.js';
98
import * as CrUXManager from '../../../models/crux-manager/crux-manager.js';
109
import * as Trace from '../../../models/trace/trace.js';
1110
import * as Buttons from '../../../ui/components/buttons/buttons.js';
@@ -82,13 +81,6 @@ export interface SidebarSingleInsightSetData {
8281
traceMetadata: Trace.Types.File.MetaData|null;
8382
}
8483

85-
/**
86-
* These are WIP Insights that are only shown if the user has turned on the
87-
* "enable experimental performance insights" experiment. This is used to enable
88-
* us to ship incrementally without turning insights on by default for all
89-
* users. */
90-
const EXPERIMENTAL_INSIGHTS: ReadonlySet<string> = new Set([]);
91-
9284
type InsightNameToComponentMapping =
9385
Record<string, typeof Insights.BaseInsightComponent.BaseInsightComponent<Trace.Insights.Types.InsightModel>>;
9486

@@ -379,10 +371,6 @@ export class SidebarSingleInsightSet extends HTMLElement {
379371
insightSetKey: string,
380372
activeCategory: Trace.Insights.Types.InsightCategory,
381373
): {shownInsights: CategorizedInsightData[], passedInsights: CategorizedInsightData[]} {
382-
const includeExperimental = Root.Runtime.experiments.isEnabled(
383-
Root.Runtime.ExperimentName.TIMELINE_EXPERIMENTAL_INSIGHTS,
384-
);
385-
386374
const insightSet = insightSets?.get(insightSetKey);
387375
if (!insightSet) {
388376
return {shownInsights: [], passedInsights: []};
@@ -397,10 +385,6 @@ export class SidebarSingleInsightSet extends HTMLElement {
397385
continue;
398386
}
399387

400-
if (!includeExperimental && EXPERIMENTAL_INSIGHTS.has(name)) {
401-
continue;
402-
}
403-
404388
if (!model || !shouldRenderForCategory({activeCategory, insightCategory: model.category})) {
405389
continue;
406390
}

front_end/testing/EnvironmentHelpers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ const REGISTERED_EXPERIMENTS = [
127127
Root.Runtime.ExperimentName.FULL_ACCESSIBILITY_TREE,
128128
Root.Runtime.ExperimentName.TIMELINE_SHOW_POST_MESSAGE_EVENTS,
129129
Root.Runtime.ExperimentName.TIMELINE_ENHANCED_TRACES,
130-
Root.Runtime.ExperimentName.TIMELINE_EXPERIMENTAL_INSIGHTS,
131130
Root.Runtime.ExperimentName.VERTICAL_DRAWER,
132131
];
133132

0 commit comments

Comments
 (0)