Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: upgrade trace_engine, reuse cdt bf-cache/deprecation strings #16362

Merged
merged 10 commits into from
Feb 28, 2025

Conversation

connorjclark
Copy link
Collaborator

Similar to #16272, this PR removes our copying of bf-cache/deprecation strings and instead plucks them from CDT.

@connorjclark connorjclark requested a review from a team as a code owner February 27, 2025 00:20
@connorjclark connorjclark requested review from adamraine and removed request for a team February 27, 2025 00:20
Copy link

Important

The terms of service for this installation has not been accepted. Please ask the Organization owners to visit the Gemini Code Assist Admin Console to sign it.

strings[`node_modules/@paulirish/trace_engine/${key.replace('.ts', '.js')}`] = value;
const lhKey = `node_modules/@paulirish/trace_engine/${key.replace('.ts', '.js')}`;

// TODO: why is this so malformed?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought I recognized this haha. This looks like a translation bug that we fixed on the LH side but never upstreamed to DevTools: https://b.corp.google.com/issues/290679361

I guess it's a good thing we are using the TE strings now, so we can avoid fixing in one place but not the other. I will file a separate bug to resolve this again.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Err, maybe this is a slightly different issue. The original DT string didn't contain any \ at all which is different from LH...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I filed b/399706272 about this, this workaround is fine for now

if (insight.state === 'fail') {
score = 0;
} else if (insightName === 'LCPPhases') {
// TODO: change these insights to denote passing/failing/informative. Until then... hack it.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have informative state now. What's preventing us from using it here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These insight models don't use any threshold to determine this state right now. We should probably be doing that to show between failing or informative.

@connorjclark connorjclark merged commit 03fc965 into main Feb 28, 2025
27 checks passed
@connorjclark connorjclark deleted the upte-feb-22 branch February 28, 2025 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants