Skip to content

refactor(nx-plugin): add env vars to executor - #1161

Merged
BioPhoton merged 37 commits into
mainfrom
fix/nx-plugin/add-env-vars-to-executor
Dec 11, 2025
Merged

refactor(nx-plugin): add env vars to executor#1161
BioPhoton merged 37 commits into
mainfrom
fix/nx-plugin/add-env-vars-to-executor

Conversation

@BioPhoton

@BioPhotonBioPhoton commented Dec 2, 2025

Copy link
Copy Markdown
Collaborator

This PR enables the plugin to use our local TS code instead of a installed NPM package.
I also renamed AutorunExecutor to CliExecutor

depends on #1159

Followup PR will cover testing the logic in runCliExecutor.

@nx-cloud

nx-cloudBot commented Dec 2, 2025

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 5c02a21

CommandStatusDurationResult
nx run-many --targets=code-pushup --parallel=fa...❌ Failed13m 46sView ↗
nx run-many -t unit-test,int-test✅ Succeeded2sView ↗

☁️ Nx Cloud last updated this comment at 2025-12-11 17:16:39 UTC

@pkg-pr-new

pkg-pr-newBot commented Dec 2, 2025

Copy link
Copy Markdown

Open in StackBlitz

@code-pushup/ci

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/ci@1161

@code-pushup/cli

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/cli@1161

@code-pushup/core

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/core@1161

@code-pushup/create-cli

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/create-cli@1161

@code-pushup/models

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/models@1161

@code-pushup/nx-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/nx-plugin@1161

@code-pushup/axe-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/axe-plugin@1161

@code-pushup/coverage-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/coverage-plugin@1161

@code-pushup/eslint-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/eslint-plugin@1161

@code-pushup/js-packages-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/js-packages-plugin@1161

@code-pushup/jsdocs-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/jsdocs-plugin@1161

@code-pushup/lighthouse-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/lighthouse-plugin@1161

@code-pushup/typescript-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/typescript-plugin@1161

@code-pushup/utils

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/utils@1161

commit: 5c02a21

@github-actions

github-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit 3a909e2 with previous commit f74d2dd.

💼 Project plugin-axe

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 95🟢 93↓ −1.7
Documentation🟡 68🟡 68↓ −0.7

4 other categories are unchanged.

👎 2 groups regressed, 👍 1 audit improved, 👎 2 audits regressed, 2 audits changed without impacting score

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 95🟢 93↓ −1.7
JSDoc coverageDocumentation coverage🟡 68🟡 68↓ −0.7

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageBranch coverage🟩 93.6 %🟨 86.4 %↓ −7.7 %
Code coverageLine coverage🟨 67.7 %🟨 72.3 %↑ +6.8 %
JSDoc coverageFunctions coverage🟥 14 undocumented functions🟥 21 undocumented functions↑ +50 %
JSDoc coverageVariables coverage🟥 11 undocumented variables🟥 16 undocumented variables↑ +45.5 %
JSDoc coverageTypes coverage🟥 2 undocumented types🟥 6 undocumented types↑ +200 %

437 other audits are unchanged.

💼 Project cli

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 92🟢 92↑ +0.8
Documentation🟡 65🟡 65↑ +0.1

4 other categories are unchanged.

👍 2 groups improved, 👍 3 audits improved, 👎 1 audit regressed

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 92🟢 92↑ +0.8
JSDoc coverageDocumentation coverage🟡 65🟡 65↑ +0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageFunction coverage🟩 95.9 %🟩 97.3 %↑ +1.5 %
Code coverageLine coverage🟨 88 %🟨 88.5 %↑ +0.6 %
JSDoc coverageFunctions coverage🟥 17 undocumented functions🟥 16 undocumented functions↓ −5.9 %
Code coverageBranch coverage🟨 84.5 %🟨 84.2 %↓ −0.4 %

439 other audits are unchanged.

💼 Project plugin-lighthouse

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Documentation🔴 47🔴 48↑ +0.4
Code coverage🟢 99🟢 99↓ −0.1

4 other categories are unchanged.

👍 1 group improved, 👎 1 group regressed, 👍 1 audit improved, 👎 2 audits regressed

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
JSDoc coverageDocumentation coverage🔴 47🔴 48↑ +0.4
Code coverageCode coverage metrics🟢 99🟢 99↓ −0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
JSDoc coverageVariables coverage🟥 20 undocumented variables🟥 20 undocumented variables +0 %
Code coverageLine coverage🟩 97.2 %🟩 97 %↓ −0.2 %
Code coverageBranch coverage🟩 96.1 %🟩 96.1 %↓ −0.1 %

440 other audits are unchanged.

💼 Project core

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟡 89🟡 90↑ +0.3
Documentation🟡 74🟡 74↓ −0.1

4 other categories are unchanged.

👍 1 group improved, 👎 1 group regressed, 👍 3 audits improved, 👎 1 audit regressed

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟡 89🟡 90↑ +0.3
JSDoc coverageDocumentation coverage🟡 74🟡 74↓ −0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟩 90.5 %🟩 91.2 %↑ +0.8 %
JSDoc coverageFunctions coverage🟥 11 undocumented functions🟥 12 undocumented functions↑ +9.1 %
Code coverageBranch coverage🟨 81.1 %🟨 81.7 %↑ +0.8 %
Code coverageFunction coverage🟩 93.1 %🟩 93.2 %↑ +0.1 %

439 other audits are unchanged.

💼 Project utils

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 94🟢 95↑ +0.1
Documentation🔴 38🔴 38↑ +0.1

4 other categories are unchanged.

👍 2 groups improved, 👍 3 audits improved, 👎 1 audit regressed, 1 audit changed without impacting score

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 94🟢 95↑ +0.1
JSDoc coverageDocumentation coverage🔴 38🔴 38↑ +0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
JSDoc coverageTypes coverage🟥 47 undocumented types🟥 45 undocumented types↓ −4.3 %
Code coverageFunction coverage🟩 95.3 %🟩 95.5 %↑ +0.2 %
JSDoc coverageFunctions coverage🟥 236 undocumented functions🟥 233 undocumented functions↓ −1.3 %
Code coverageLine coverage🟩 97 %🟩 96.9 %↓ −0.1 %
Code coverageBranch coverage🟩 91.9 %🟩 92 %↑ +0.1 %

438 other audits are unchanged.

💼 Project plugin-eslint

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Documentation🟡 66🟡 66↓ −0.1
Code coverage🟢 94🟢 94↑ +0.1

4 other categories are unchanged.

👍 1 group improved, 👎 1 group regressed, 👍 2 audits improved, 👎 3 audits regressed, 1 audit changed without impacting score

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
JSDoc coverageDocumentation coverage🟡 66🟡 66↓ −0.1
Code coverageCode coverage metrics🟢 94🟢 94↑ +0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
JSDoc coverageVariables coverage🟥 13 undocumented variables🟥 15 undocumented variables↑ +15.4 %
Code coverageLine coverage🟩 91.8 %🟩 92.5 %↑ +0.8 %
JSDoc coverageFunctions coverage🟥 46 undocumented functions🟥 48 undocumented functions↑ +4.3 %
Code coverageBranch coverage🟨 85 %🟨 84.7 %↓ −0.4 %
Code coverageFunction coverage🟩 98.2 %🟩 98.2 %↑ +0.1 %
JSDoc coverageTypes coverage🟥 14 undocumented types🟥 15 undocumented types↑ +7.1 %

437 other audits are unchanged.

💼 Project nx-plugin

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟡 85🟡 85↑ +0.1

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟡 85🟡 85↑ +0.1

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟨 79.3 %🟨 79.9 %↑ +0.8 %
Code coverageBranch coverage🟨 76.4 %🟨 76.4 %↑ +0.1 %

445 other audits are unchanged.


7 other projects are unchanged.

@github-actions

github-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit 3a909e2 with previous commit f74d2dd.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Categories

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Performance🔴 44🔴 34↓ −10.2
Best Practices🟢 100🟢 97↓ −3.4
Code style🟢 100🟢 99↓ −0.4
Updates🟡 71🟡 71↓ −0.2
Code coverage🟡 89🟡 89↑ +0.1
Documentation🔴 35🔴 35↑ +0.1
Axe Accessibilityn/a (*)🟡 88n/a (*)
Bug prevention🟡 67🟡 67
Security🔴 43🔴 43
Type Safety🟡 56🟡 56
Miscellaneous🟡 67🟡 67
Accessibility🟢 92🟢 92
SEO🟢 92🟢 92

(*) New category.

👍 2 groups improved, 👎 5 groups regressed, 👍 5 audits improved, 👎 9 audits regressed, 28 audits changed without impacting score

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
ESLintStyle guide (import)🟢 100🟡 80↓ −20
LighthousePerformance🔴 44🔴 34↓ −10.2
LighthouseBest Practices🟢 100🟢 97↓ −3.4
ESLintSuggestions🟢 100🟢 99↓ −0.4
JS PackagesNPM outdated dependencies🟡 71🟡 71↓ −0.2
Code coverageCode coverage metrics🟡 89🟡 89↑ +0.1
JSDoc coverageDocumentation coverage🔴 35🔴 35↑ +0.1

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
ESLintForbid unassigned imports🟩 passed🟥 1 warning↑ +∞ %
LighthouseNo browser errors logged to the console🟩 passed🟥 failed↓ −100 %
LighthouseProperly size images🟨 Potential savings of 5 KiB🟩 0 −∞ %
LighthouseFirst Contentful Paint🟥 3.2 s🟥 5.4 s↑ +65.3 %
LighthouseSpeed Index🟥 6.7 s🟥 10.0 s↑ +50.5 %
LighthouseTotal Blocking Time🟥 800 ms🟥 1,120 ms↑ +40.2 %
LighthouseTime to Interactive🟥 13.0 s🟥 14.7 s↑ +12.8 %
JS PackagesOutdated NPM dev dependencies.🟨 59 outdated package versions (34 major, 19 minor, 6 patch)🟨 60 outdated package versions (35 major, 19 minor, 6 patch)↑ +1.7 %
JSDoc coverageVariables coverage🟥 246 undocumented variables🟥 253 undocumented variables↑ +2.8 %
Code coverageFunction coverage🟩 90.3 %🟩 90.6 %↑ +0.3 %
Code coverageLine coverage🟨 84.7 %🟨 84.9 %↑ +0.2 %
Code coverageBranch coverage🟨 87.3 %🟨 87.1 %↓ −0.2 %
JSDoc coverageTypes coverage🟥 241 undocumented types🟥 244 undocumented types↑ +1.2 %
JSDoc coverageFunctions coverage🟥 561 undocumented functions🟥 567 undocumented functions↑ +1.1 %
LighthouseAvoids enormous network payloads🟩 Total size was 2,032 KiB🟩 Total size was 2,068 KiB↑ +1.8 %
LighthouseUses efficient cache policy on static assets🟨 32 resources found🟨 30 resources found↓ −0.7 %
LighthouseMinimizes main-thread work🟥 7.5 s🟥 10.3 s↑ +36.4 %
LighthouseInitial server response time was short🟥 Root document took 790 ms🟥 Root document took 2,690 ms↑ +241.7 %
LighthouseMetrics🟩 100%🟩 100%↑ +12.8 %
LighthouseServer Backend Latencies🟩 1,760 ms🟩 2,360 ms↑ +33.7 %
LighthouseJavaScript execution time🟥 2.9 s🟥 3.5 s↑ +19.7 %
LighthouseReduce unused CSS🟥 Potential savings of 105 KiB🟥 Potential savings of 94 KiB↓ −32.8 %
LighthouseReduce unused JavaScript🟥 Potential savings of 186 KiB🟥 Potential savings of 187 KiB↑ +26.5 %
LighthouseLargest Contentful Paint🟥 11.6 s🟥 11.7 s↑ +1.3 %
LighthouseMax Potential First Input Delay🟥 840 ms🟥 970 ms↑ +14.7 %
LighthouseAvoids an excessive DOM size🟥 2,249 elements🟥 2,353 elements↑ +4.6 %
LighthouseRemove duplicate modules in JavaScript bundles🟥 Potential savings of 104 KiB🟥 Potential savings of 101 KiB↓ −10 %
LighthouseNetwork Round Trip Times🟩 50 ms🟩 70 ms↑ +37.6 %
TypeScriptSemantic errors🟥 2623 errors🟥 2609 errors↓ −0.5 %
Axe AccessibilityIDs used in ARIA and labels must be unique🟩 38 elements🟩 28 elements↓ −26.3 %
Axe AccessibilityARIA hidden element must not be focusable or contain focusable elements🟩 192 elements🟩 200 elements↑ +4.2 %
Axe AccessibilityElements must only use supported ARIA attributes🟩 102 elements🟩 96 elements↓ −5.9 %
Axe AccessibilityARIA attributes must be used as specified for the element's role🟩 102 elements🟩 96 elements↓ −5.9 %
Axe AccessibilityElements must only use permitted ARIA attributes🟩 102 elements🟩 96 elements↓ −5.9 %
Axe AccessibilityARIA attributes must conform to valid names🟩 102 elements🟩 96 elements↓ −5.9 %
Axe AccessibilityInteractive controls must not be nested🟩 63 elements🟩 59 elements↓ −6.3 %
Axe AccessibilityInline text spacing must be adjustable with custom stylesheets🟩 44 elements🟩 41 elements↓ −6.8 %
Axe AccessibilityButtons must have discernible text🟩 15 elements🟩 13 elements↓ −13.3 %
TypeScriptNo implicit any errors🟥 96 errors🟥 95 errors↓ −1 %
Axe AccessibilityARIA attributes must conform to valid values🟥 9 errors🟥 8 errors↓ −11.1 %
Axe AccessibilityElements must have their visible text as part of their accessible name🟥 3 errors🟥 2 errors↓ −33.3 %
LighthouseCumulative Layout Shift🟩 0🟩 0↑ +∞ %

636 other audits are unchanged.

# Conflicts:
#	packages/nx-plugin/src/executors/cli/executor.ts
#	packages/nx-plugin/src/executors/cli/executor.unit.test.ts
@BioPhoton
BioPhoton marked this pull request as ready for review December 4, 2025 17:43
@BioPhoton
BioPhoton enabled auto-merge (squash) December 10, 2025 12:41
Comment threadpackages/nx-plugin/src/executors/cli/executor.ts
@BioPhoton
BioPhoton merged commit 0396b84 into mainDec 11, 2025
22 of 24 checks passed
@BioPhoton
BioPhoton deleted the fix/nx-plugin/add-env-vars-to-executor branch December 11, 2025 17:06
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@BioPhoton@matejchalk