Conversation
|
|
Caution Review failedAn error occurred during the review process. Please try again later. ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
packages/lynx/benchx_cli/scripts/build.mjs (1)
111-125: Include GN args and cherry-pick commit in cache key
checkBinary()currently only comparesCOMMIT, so changes to the cherry-picked patch or GN arguments (e.g.enable_trace) won’t invalidate the cache and the build is skipped with Perfetto still enabled. Record a compositeBUILD_KEYofCOMMIT,PICK_COMMIT, andGN_ARGS, write that tobenchx_cli.commit, and compare against it:--- a/packages/lynx/benchx_cli/scripts/build.mjs +++ b/packages/lynx/benchx_cli/scripts/build.mjs @@ top-of-file +// include cherry-pick and GN args in cache key +const GN_TRACE = process.env.GN_TRACE || 'none'; +const GN_ARGS = `enable_unittests=true enable_trace="${GN_TRACE}" jsengine_type="quickjs" enable_frozen_mode=true`; +const BUILD_KEY = `${COMMIT}:${PICK_COMMIT}:${GN_ARGS}`; @@ async function checkBinary() - if (exitCode === 0 && stdout.trim() === COMMIT) { + if (exitCode === 0 && stdout.trim() === BUILD_KEY) { return true; @@ build from source -gn gen --args='enable_unittests=true enable_trace="none" jsengine_type="quickjs" enable_frozen_mode=true' out/Default +gn gen --args="${GN_ARGS}" out/Default @@ - git rev-parse HEAD > ../dist/bin/benchx_cli.commit + echo "${BUILD_KEY}" > ../dist/bin/benchx_cli.commit
🧹 Nitpick comments (1)
packages/lynx/benchx_cli/scripts/build.mjs (1)
115-115: Make trace selection configurable (default to none in CI).Avoid future PRs for toggling. Drive enable_trace via env, defaulting to none in CI.
// Near top const GN_TRACE = process.env.BENCHX_TRACE ?? (process.env.CI ? 'none' : 'perfetto'); const GN_ARGS = `enable_unittests=true enable_trace="${GN_TRACE}" jsengine_type="quickjs" enable_frozen_mode=true`;
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/lynx/benchx_cli/scripts/build.mjs(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: build / Build (Windows)
- GitHub Check: build / Build (Ubuntu)
- GitHub Check: test-rust / Test (Ubuntu)
- GitHub Check: code-style-check
- GitHub Check: zizmor
- GitHub Check: CodeQL Analyze (actions)
- GitHub Check: CodeQL Analyze (javascript-typescript)
🔇 Additional comments (1)
packages/lynx/benchx_cli/scripts/build.mjs (1)
115-115: enable_trace="none" is valid
The config.gni at the pinned commit defines"none"as the default/disable value for enable_trace (see config.gni:21).
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
React Example#4915 Bundle Size — 238.26KiB (0%).3c90b4c(current) vs 64c578b main#4907(baseline) Bundle metrics
|
| Current #4915 |
Baseline #4907 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
4 |
4 |
|
164 |
164 |
|
68 |
68 |
|
46.93% |
46.93% |
|
2 |
2 |
|
0 |
0 |
Bundle size by type no changes
| Current #4915 |
Baseline #4907 |
|
|---|---|---|
145.76KiB |
145.76KiB |
|
92.5KiB |
92.5KiB |
Bundle analysis report Branch hzy:p/hzy/bench_8 Project dashboard
Generated by RelativeCI Documentation Report issue
Web Explorer#4906 Bundle Size — 367.43KiB (0%).3c90b4c(current) vs 64c578b main#4898(baseline) Bundle metrics
|
| Current #4906 |
Baseline #4898 |
|
|---|---|---|
144.23KiB |
144.23KiB |
|
31.84KiB |
31.84KiB |
|
0% |
0% |
|
8 |
8 |
|
8 |
8 |
|
220 |
220 |
|
16 |
16 |
|
3.32% |
3.32% |
|
4 |
4 |
|
0 |
0 |
Bundle size by type no changes
| Current #4906 |
Baseline #4898 |
|
|---|---|---|
235.43KiB |
235.43KiB |
|
100.16KiB |
100.16KiB |
|
31.84KiB |
31.84KiB |
Bundle analysis report Branch hzy:p/hzy/bench_8 Project dashboard
Generated by RelativeCI Documentation Report issue
CodSpeed Performance ReportMerging #1673 will degrade performances by 10.69%Comparing 🎉 Hooray!
|
| Benchmark | BASE |
HEAD |
Change | |
|---|---|---|---|---|
| ❌ | 002-hello-reactLynx-destroyBackground |
624.7 µs | 699.4 µs | -10.69% |
| ⚡ | 003-hello-list__main-thread-componentAtIndex__create |
5.2 ms | 4.6 ms | +13.67% |
Footnotes
|
This pull request has been automatically marked as stale because it has not had recent activity. If this pull request is still relevant, please leave any comment (for example, "bump"). |
Summary by CodeRabbit
Checklist