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(GenerateDAG): new algorithm #556

Closed
wants to merge 1 commit into from

Conversation

antoinegelloz
Copy link
Contributor

@antoinegelloz antoinegelloz commented Jun 3, 2024

  • Fix the algorithm assigning files to the docker build context of each nodes of the graph
  • Reduce cyclomatic complexities of the GenerateDAG function and its sub-functions

@antoinegelloz antoinegelloz requested review from julienvey, graillus and a team as code owners June 3, 2024 15:20
@antoinegelloz antoinegelloz changed the base branch from main to refact/GenerateDAG-improved-testing June 3, 2024 15:20
@codecov-commenter
Copy link

codecov-commenter commented Jun 3, 2024

Codecov Report

Attention: Patch coverage is 79.45205% with 30 lines in your changes missing coverage. Please review.

Project coverage is 59.44%. Comparing base (dde85cd) to head (b109198).
Report is 30 commits behind head on main.

Files with missing lines Patch % Lines
pkg/dib/generate_dag.go 79.45% 17 Missing and 13 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #556      +/-   ##
==========================================
+ Coverage   58.80%   59.44%   +0.63%     
==========================================
  Files          51       51              
  Lines        2350     2387      +37     
==========================================
+ Hits         1382     1419      +37     
+ Misses        861      860       -1     
- Partials      107      108       +1     

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

@antoinegelloz antoinegelloz force-pushed the fix/GenerateDAG-algorithm branch 3 times, most recently from dcf0fbe to 0b9d64d Compare June 3, 2024 15:30
@antoinegelloz antoinegelloz changed the base branch from refact/GenerateDAG-improved-testing to main June 4, 2024 08:39
@antoinegelloz antoinegelloz force-pushed the fix/GenerateDAG-algorithm branch from 87c21b9 to 4360f47 Compare June 26, 2024 15:03
@antoinegelloz antoinegelloz force-pushed the fix/GenerateDAG-algorithm branch 2 times, most recently from 31b39ed to 2526645 Compare August 23, 2024 09:04
@antoinegelloz antoinegelloz force-pushed the fix/GenerateDAG-algorithm branch from 2526645 to b109198 Compare August 23, 2024 09:17
@joulaud
Copy link
Member

joulaud commented Oct 2, 2024

I see the algorithm was completely rewritten from scratch and thus the diff is not meaningfull.

To ease review, could you outline :

  • the bug you wanted to fix
  • the general working of the new algorithm and some quick justification for choosing it
  • perhaps some comparison with the old one (stating why the old one was beyond repair and, if there is some, the changes in behaviour and results)
    ?

Even best if the meaningful bits are in commit message to be remembered eternally in Git history.

Thank you for your hard work.

@antoinegelloz
Copy link
Contributor Author

I see the algorithm was completely rewritten from scratch and thus the diff is not meaningfull.

To ease review, could you outline :

  • the bug you wanted to fix
  • the general working of the new algorithm and some quick justification for choosing it
  • perhaps some comparison with the old one (stating why the old one was beyond repair and, if there is some, the changes in behaviour and results)
    ?

Even best if the meaningful bits are in commit message to be remembered eternally in Git history.

Thank you for your hard work.

I understand your concern, thank you.
I'm closing this one because we cannot review it for now. I just created this new PR, which is improving the testing of the current algorithm, to show the different problems with it.

@Thibaut-gauvin Thibaut-gauvin deleted the fix/GenerateDAG-algorithm branch October 29, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants