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

refact(GenerateDAG): split the algorithm in two parts #599

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

antoinegelloz
Copy link
Contributor

refact(GenerateDAG): split the algorithm in two parts, buildGraph and computeHashes.

The first part buildGraph needs to be unit tested, because we found some issues with its logic.

@antoinegelloz antoinegelloz requested review from julienvey, graillus and a team as code owners October 7, 2024 12:29
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 58.94%. Comparing base (f2669ab) to head (0e6bb2b).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
pkg/dib/generate_dag.go 75.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #599      +/-   ##
==========================================
+ Coverage   58.80%   58.94%   +0.13%     
==========================================
  Files          51       51              
  Lines        2350     2353       +3     
==========================================
+ Hits         1382     1387       +5     
+ Misses        861      860       -1     
+ Partials      107      106       -1     

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

@antoinegelloz antoinegelloz requested review from Thibaut-gauvin, gminh474 and joulaud and removed request for a team, julienvey and graillus October 7, 2024 12:32
… computeHashes.

The first buildGraph needs to be unit tested, because we found some issues with its logic.
@antoinegelloz antoinegelloz force-pushed the refact/GenerateDAG-split branch from 47afcce to 0e6bb2b Compare October 8, 2024 09:04
@joulaud
Copy link
Member

joulaud commented Oct 8, 2024

LGTM, seems trivial, the separation between graph construction and hash generation seems a good idea.

The tests are empty at the moment but I suppose they will be completed in following changes.

@antoinegelloz
Copy link
Contributor Author

LGTM, seems trivial, the separation between graph construction and hash generation seems a good idea.

The tests are empty at the moment but I suppose they will be completed in following changes.

Exactly :)

@antoinegelloz antoinegelloz merged commit 618b899 into main Oct 9, 2024
5 checks passed
@antoinegelloz antoinegelloz deleted the refact/GenerateDAG-split branch October 9, 2024 15:15
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