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(nx-plugin): adjust upload config handling #937

Merged
merged 33 commits into from
Mar 11, 2025

Conversation

BioPhoton
Copy link
Collaborator

@BioPhoton BioPhoton commented Feb 17, 2025

This PR includes:

  • a fix to only use upload data id the API key is set
  • updated unit tests
  • updated e2e tests

Copy link

github-actions bot commented Feb 17, 2025

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit 478eb6d with previous commit c677fa2.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Categories

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Performance 🟡 53 🟡 53 ↓ −0.2
Code coverage 🟢 91 🟢 90 ↓ −0.2
Documentation 🔴 23 🔴 23 ↓ −0.1
Security 🟡 75 🟡 75
Updates 🟡 77 🟡 77
Accessibility 🟢 92 🟢 92
Best Practices 🟢 100 🟢 100
SEO 🟡 61 🟡 61
Bug prevention 🟢 100 🟢 100
Code style 🟢 100 🟢 100
👎 3 groups regressed, 👍 2 audits improved, 👎 7 audits regressed, 12 audits changed without impacting score

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
Lighthouse Performance 🟡 53 🟡 53 ↓ −0.2
Code coverage Code coverage metrics 🟢 91 🟢 90 ↓ −0.2
JSDoc coverage Documentation coverage 🔴 23 🔴 23 ↓ −0.1

15 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
Lighthouse First Contentful Paint 🟨 2.7 s 🟨 2.8 s ↑ +4.1 %
Lighthouse Largest Contentful Paint 🟨 3.5 s 🟨 3.4 s ↓ −3 %
Lighthouse Total Blocking Time 🟥 2,970 ms 🟥 4,670 ms ↑ +57.6 %
Lighthouse Time to Interactive 🟥 12.9 s 🟥 13.9 s ↑ +7.2 %
Lighthouse Speed Index 🟨 5.5 s 🟨 5.3 s ↓ −3.6 %
Code coverage Function coverage 🟩 93 % 🟩 92.8 % ↓ −0.3 %
Code coverage Line coverage 🟨 90 % 🟨 89.8 % ↓ −0.2 %
JSDoc coverage Types coverage 🟥 210 undocumented types 🟥 212 undocumented types ↑ +1 %
JSDoc coverage Functions coverage 🟥 451 undocumented functions 🟥 452 undocumented functions ↑ +0.2 %
Lighthouse Avoids enormous network payloads 🟩 Total size was 1,829 KiB 🟩 Total size was 1,833 KiB ↑ +0.2 %
Lighthouse Minimizes main-thread work 🟥 13.0 s 🟥 16.1 s ↑ +24 %
Lighthouse Metrics 🟩 100% 🟩 100% ↑ +7.2 %
Lighthouse JavaScript execution time 🟥 6.2 s 🟥 6.8 s ↑ +10.3 %
Lighthouse Uses efficient cache policy on static assets 🟨 27 resources found 🟨 27 resources found ↑ +0.1 %
Lighthouse Max Potential First Input Delay 🟥 1,540 ms 🟥 1,760 ms ↑ +14.7 %
Lighthouse Reduce unused CSS 🟥 Potential savings of 67 KiB 🟥 Potential savings of 57 KiB ↓ −50 %
Lighthouse Initial server response time was short 🟩 Root document took 340 ms 🟩 Root document took 470 ms ↑ +40.1 %
Lighthouse Server Backend Latencies 🟩 100 ms 🟩 160 ms ↑ +67.1 %
Lighthouse Eliminate render-blocking resources 🟥 Potential savings of 870 ms 🟥 Potential savings of 840 ms ↓ −4.1 %
Lighthouse Network Round Trip Times 🟩 10 ms 🟩 20 ms ↑ +106.4 %
Code coverage Branch coverage 🟨 85.9 % 🟨 85.9 % ↑ +0.1 %

575 other audits are unchanged.

@BioPhoton BioPhoton marked this pull request as ready for review March 5, 2025 11:35
@BioPhoton BioPhoton requested a review from matejchalk March 8, 2025 15:15
@matejchalk
Copy link
Collaborator

@BioPhoton The PR description only mentions a small adjustment to upload config, but most of the changed files are removing extensions from imports. Could you please remove those changes, or explain why they are needed?

I remember you mentioned something about import extensions before, but it's never made sense to me why that would solve anything. Unlike imports without extensions (which are CJS-only), explicit extensions work for both CJS and ESM. For my own sanity, I tried reverting the imports in ba91850 and all nx-plugin tests still pass locally and in CI (see #972). So what is the reason for changing the imports?

@github-actions github-actions bot added 📖 Project documentation improvements or additions to the project documentation 🧩 utils 🧩 js-packages-plugin Plugin for audit and outdated dependencies labels Mar 10, 2025
@BioPhoton BioPhoton requested a review from matejchalk March 10, 2025 16:20
@github-actions github-actions bot removed 📖 Project documentation improvements or additions to the project documentation 🧩 utils 🧩 js-packages-plugin Plugin for audit and outdated dependencies labels Mar 10, 2025
@BioPhoton BioPhoton merged commit 45e2757 into main Mar 11, 2025
16 checks passed
@BioPhoton BioPhoton deleted the nx-plugin/fix-upload-config branch March 11, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants