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

fix(plugin-js-packages): add ignoreExitCode option for yarn v2 package manager #878

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

getlarge
Copy link
Collaborator

Fix #877

@getlarge getlarge requested a review from matejchalk as a code owner November 20, 2024 09:32
@github-actions github-actions bot added the 🧩 js-packages-plugin Plugin for audit and outdated dependencies label Nov 20, 2024
@getlarge
Copy link
Collaborator Author

@matejchalk Did I miss something, or are there no e2e tests for the js-packages-plugin?
Where could I write a test to show that the fix is working?

Copy link

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared target commit 789e46a with source commit 1353b20.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Categories

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Performance 🔴 48 🔴 48 ↓ −0.7
Custom checks 🟡 67 🟡 67
Code coverage 🟡 90 🟡 90
Security 🟡 73 🟡 73
Updates 🟡 76 🟡 76
Accessibility 🟢 91 🟢 91
Best Practices 🟢 100 🟢 100
SEO 🟡 61 🟡 61
Bug prevention 🟢 100 🟢 100
Code style 🟢 100 🟢 100
👎 1 group regressed, 👍 2 audits improved, 👎 2 audits regressed, 14 audits changed without impacting score

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
Lighthouse Performance 🔴 48 🔴 48 ↓ −0.7

19 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
Lighthouse Largest Contentful Paint 🟨 3.6 s 🟨 3.8 s ↑ +5.1 %
Lighthouse Speed Index 🟥 7.8 s 🟥 7.3 s ↓ −5.4 %
Lighthouse First Contentful Paint 🟨 2.8 s 🟨 2.8 s ↓ −2.3 %
Lighthouse Time to Interactive 🟥 17.7 s 🟥 18.3 s ↑ +3 %
Lighthouse Avoids enormous network payloads 🟩 Total size was 1,821 KiB 🟩 Total size was 1,817 KiB ↓ −0.2 %
Lighthouse Total Blocking Time 🟥 8,530 ms 🟥 11,020 ms ↑ +29.2 %
Lighthouse Max Potential First Input Delay 🟥 3,200 ms 🟥 2,370 ms ↓ −26 %
Lighthouse Eliminate render-blocking resources 🟥 Potential savings of 970 ms 🟥 Potential savings of 200 ms ↓ −79.4 %
Lighthouse Metrics 🟩 100% 🟩 100% ↑ +3 %
Lighthouse JavaScript execution time 🟥 11.4 s 🟥 11.9 s ↑ +4.3 %
Lighthouse Uses efficient cache policy on static assets 🟨 28 resources found 🟨 28 resources found ↑ +0.1 %
Lighthouse Reduce unused CSS 🟥 Potential savings of 82 KiB 🟥 Potential savings of 82 KiB ↓ −100 %
Lighthouse Minimizes main-thread work 🟥 21.9 s 🟥 22.1 s ↑ +0.7 %
Lighthouse Server Backend Latencies 🟩 80 ms 🟩 220 ms ↑ +171.8 %
Lighthouse Initial server response time was short 🟩 Root document took 550 ms 🟩 Root document took 510 ms ↓ −7 %
Lighthouse Network Round Trip Times 🟩 20 ms 🟩 30 ms ↑ +41.1 %
Lighthouse Avoids an excessive DOM size 🟥 2,250 elements 🟥 2,248 elements ↓ −0.1 %
Code coverage Line coverage 🟩 90.4 % 🟩 90.4 % ↑ +0.1 %

495 other audits are unchanged.

@matejchalk
Copy link
Collaborator

Did I miss something, or are there no e2e tests for the js-packages-plugin? Where could I write a test to show that the fix is working?

True, we don't have E2E tests for this plugin at present. We did attempt it, but making such tests stable was injustifiably complex (results change all the time, 4 package managers with different installations). In practice it's a lot simpler to fix post-release.

@matejchalk matejchalk changed the title fix: add ignoreExitCode option for yarn v2 package manager fix(plugin-js-packages): add ignoreExitCode option for yarn v2 package manager Nov 20, 2024
@matejchalk matejchalk merged commit dee46b3 into main Nov 20, 2024
18 checks passed
@matejchalk matejchalk deleted the fix-ignore-yarn-modern-audit-exit-code branch November 20, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧩 js-packages-plugin Plugin for audit and outdated dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(js-packages): missing ignoreExitCode option for yarn v2 package manager
2 participants