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(core): Improve cyclic dependency check in the DI container #12600

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

netroy
Copy link
Member

@netroy netroy commented Jan 14, 2025

Summary

The previous cyclic dependency check wasn't working. This PR fixes that, and adds tests to ensure that the check works, and that we log the dependency chain to stdout, when the check fails.

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Jan 14, 2025
@netroy netroy marked this pull request as draft January 14, 2025 13:36
tomi
tomi previously approved these changes Jan 14, 2025
Copy link
Contributor

@tomi tomi left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

@netroy netroy force-pushed the another-di-circular-dependency-check branch from 71885e0 to 1fd26c2 Compare January 14, 2025 14:19
@netroy netroy marked this pull request as ready for review January 14, 2025 14:20
@netroy netroy requested a review from tomi January 14, 2025 14:20
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

Copy link

cypress bot commented Jan 14, 2025

n8n    Run #8762

Run Properties:  status check passed Passed #8762  •  git commit 212b9c1d58: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Project n8n
Branch Review another-di-circular-dependency-check
Run status status check passed Passed #8762
Run duration 04m 51s
Commit git commit 212b9c1d58: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Committer कारतोफ्फेलस्क्रिप्ट™
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 489
View all changes introduced in this branch ↗︎

Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

@netroy netroy marked this pull request as draft January 14, 2025 14:55
@netroy netroy marked this pull request as ready for review January 15, 2025 11:40
@netroy netroy requested a review from tomi January 15, 2025 12:45
Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy netroy merged commit c3c4a20 into master Jan 15, 2025
37 checks passed
@netroy netroy deleted the another-di-circular-dependency-check branch January 15, 2025 13:15
@github-actions github-actions bot mentioned this pull request Jan 15, 2025
@janober
Copy link
Member

janober commented Jan 15, 2025

Got released with n8n@1.75.0

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.

3 participants