-
-
Notifications
You must be signed in to change notification settings - Fork 8
262 Fix improper code dependency #264
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
Conversation
Code Coverage SummaryDiff against mainResults for commit: 02b1b3b Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 14 suites 6s ⏱️ Results for commit 02b1b3b. ♻️ This comment has been updated with latest results. |
gogonzo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a test demonstrating recursive loop (reason for the PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes improper code dependency handling by preventing functions from being positioned on the left-hand side of dependency graphs, which was causing unwanted cyclic dependencies. The solution moves all functions to the right-hand side of the dependency graph, even when they appear on the LHS of assignments.
- Introduces a new function
move_functions_after_arrowto handle function positioning in dependency chains - Modifies the
extract_occurrencefunction to apply the function movement logic
Unit Test Performance DifferenceAdditional test case details
Results for commit f2a1b19 ♻️ This comment has been updated with latest results. |
Co-authored-by: Dawid Kałędkowski <[email protected]> Signed-off-by: Marcin <[email protected]>
Co-authored-by: Dawid Kałędkowski <[email protected]> Signed-off-by: Marcin <[email protected]>
Co-authored-by: Dawid Kałędkowski <[email protected]> Signed-off-by: Marcin <[email protected]>
Co-authored-by: Dawid Kałędkowski <[email protected]> Signed-off-by: Marcin <[email protected]>
Co-authored-by: Dawid Kałędkowski <[email protected]> Signed-off-by: Marcin <[email protected]>
gogonzo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please merge after fixing cicd
Co-authored-by: Dawid Kałędkowski <[email protected]> Signed-off-by: Marcin <[email protected]>
Fixes #262 and insightsengineering/teal.gallery#218
Alternative solution: #263
Functions were kept on the left side of the dependency graph, which lead to cyclic unwanted dependencies.
Now all functions, even when used on the LHS are moved to the RHS of the dependency graph.