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

ci: Improve the performance of the import/no-cycle linting rule (no-changelog) #6985

Merged
merged 1 commit into from Aug 22, 2023

Conversation

netroy
Copy link
Member

@netroy netroy commented Aug 21, 2023

No description provided.

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Aug 21, 2023
@github-actions
Copy link
Contributor

Great PR! Please pay attention to the following items before merging:

Files matching packages/**:

  • If fixing bug, added test to cover scenario.
  • If addressing forum or Github issue, added link to description.

Make sure to check off this list before asking for review.

@netroy netroy requested a review from ivov August 22, 2023 09:50
@codecov
Copy link

codecov bot commented Aug 22, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01% ⚠️

Comparison is base (9e3e298) 25.12% compared to head (b6baf03) 25.12%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6985      +/-   ##
==========================================
- Coverage   25.12%   25.12%   -0.01%     
==========================================
  Files        3150     3150              
  Lines      192169   192169              
  Branches    21175    21172       -3     
==========================================
- Hits        48287    48284       -3     
- Misses     142900   142903       +3     
  Partials      982      982              

see 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -324,7 +324,7 @@ const config = (module.exports = {
/**
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-cycle.md
*/
'import/no-cycle': 'error',
'import/no-cycle': ['error', { ignoreExternal: false, maxDepth: 3 }],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false is the default, did you mean to set it to true?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's inverted for some unclear reasons.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by this? I'd expect we want to ignore cycles in externals to speed up the lint right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd expect the same, but this seems to be an issue in eslint-plugin-import

@cypress
Copy link

cypress bot commented Aug 22, 2023

Passing run #1961 ↗︎

0 228 0 0 Flakiness 0

Details:

🌳 faster-no-cycle-linting 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/...
Project: n8n Commit: b6baf03a69
Status: Passed Duration: 08:57 💡
Started: Aug 22, 2023 11:20 AM Ended: Aug 22, 2023 11:29 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy netroy merged commit c188b0e into master Aug 22, 2023
58 checks passed
@netroy netroy deleted the faster-no-cycle-linting branch August 22, 2023 11:44
@janober
Copy link
Member

janober commented Aug 30, 2023

Got released with n8n@1.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants