262 Fix improper code dependency#264
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.
Please add a test demonstrating recursive loop (reason for the PR)
There was a problem hiding this comment.
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 <dawid.kaledkowski@gmail.com> Signed-off-by: Marcin <133694481+m7pr@users.noreply.github.com>
Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com> Signed-off-by: Marcin <133694481+m7pr@users.noreply.github.com>
Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com> Signed-off-by: Marcin <133694481+m7pr@users.noreply.github.com>
Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com> Signed-off-by: Marcin <133694481+m7pr@users.noreply.github.com>
Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com> Signed-off-by: Marcin <133694481+m7pr@users.noreply.github.com>
gogonzo
left a comment
There was a problem hiding this comment.
Please merge after fixing cicd
Co-authored-by: Dawid Kałędkowski <dawid.kaledkowski@gmail.com> Signed-off-by: Marcin <133694481+m7pr@users.noreply.github.com>
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.