-
Notifications
You must be signed in to change notification settings - Fork 657
fix(rome_analyze): move config to a more performant place #3542
Conversation
✅ Deploy Preview for docs-rometools canceled.
|
!bench_analyzer |
Analyzer Benchmark Results
|
let options = AnalyzerOptions::default(); | ||
let mut options = AnalyzerOptions::default(); | ||
|
||
if let Ok(value) = std::env::var("ROME_TEST_RULE_OPTIONS") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is ROME_TEST_RULE_OPTIONS
coming from? Do we have it somewhere? If so, we should document it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am actually changing the implementation to allow the rule to be configured inside each test file. Makes more sense.
Comparing fix(rome_analyze): move config to a more performant place Snapshot #12 to median since last deploy of rome.tools.
1 page testedHomeBrowser previews
Most significant changes27 other significant changes: JS Parse & Compile on iPhone, 4G LTE, JS Parse & Compile on Chrome Desktop, First Contentful Paint on Motorola Moto G Power, 3G connection, Largest Contentful Paint on Motorola Moto G Power, 3G connection, Total CSS Size in Bytes on Chrome Desktop, Total CSS Size in Bytes on iPhone, 4G LTE, Total CSS Size in Bytes on Motorola Moto G Power, 3G connection, Time to Interactive on Motorola Moto G Power, 3G connection, Total Page Size in Bytes on Chrome Desktop, Total Page Size in Bytes on iPhone, 4G LTE, Total Page Size in Bytes on Motorola Moto G Power, 3G connection, Time to Interactive on Chrome Desktop, Number of Requests on Motorola Moto G Power, 3G connection, Number of Requests on Chrome Desktop, Number of Requests on iPhone, 4G LTE, Largest Contentful Paint on Chrome Desktop, First Contentful Paint on Chrome Desktop, Speed Index on Motorola Moto G Power, 3G connection, Time to Interactive on iPhone, 4G LTE, First Contentful Paint on iPhone, 4G LTE, Largest Contentful Paint on iPhone, 4G LTE, Speed Index on Chrome Desktop, Total HTML Size in Bytes on Chrome Desktop, Total HTML Size in Bytes on iPhone, 4G LTE, Total HTML Size in Bytes on Motorola Moto G Power, 3G connection, Lighthouse Performance Score on Motorola Moto G Power, 3G connection, Lighthouse Performance Score on Chrome Desktop Calibre: Site dashboard | View this PR | Edit settings | View documentation |
This PR is stale because it has been open 14 days with no activity. |
c963424
to
31a0608
Compare
e1b39df
to
4e65a85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, but we should update the contribution guidelines
@@ -0,0 +1 @@ | |||
/* Options: {"hook": [["useMyEffect", 0, 1]]} */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about a .json
file instead? We use the same approach in the formatter
Also, would you mind updating the contributions guidelines to explain how to add options to rules?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Now we can configure each test with a special file.
f437772
to
b301dba
Compare
Summary
This PR does two things:
Test Plan