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

QGB CLI takes time to execute #526

Merged
merged 8 commits into from
Jul 13, 2022

Conversation

rach-id
Copy link
Member

@rach-id rach-id commented Jul 6, 2022

The CLI commands were taking time to execute because a testing helper file was initializing a lot of resources for the tests, and the file wasn't suffixed with _test. Thus, it was initializing those resources on every command run.

Closes #451

@rach-id rach-id added the C: QGB label Jul 6, 2022
@rach-id rach-id self-assigned this Jul 6, 2022
@rach-id rach-id marked this pull request as draft July 6, 2022 15:00
@rach-id rach-id marked this pull request as ready for review July 6, 2022 15:01
@rach-id rach-id marked this pull request as draft July 6, 2022 15:03
@rach-id
Copy link
Member Author

rach-id commented Jul 6, 2022

depends on #524

@codecov-commenter
Copy link

codecov-commenter commented Jul 6, 2022

Codecov Report

Merging #526 (6c52bab) into qgb-integration (0ed87bb) will decrease coverage by 2.82%.
The diff coverage is 0.00%.

@@                Coverage Diff                 @@
##           qgb-integration    #526      +/-   ##
==================================================
- Coverage            12.51%   9.68%   -2.83%     
==================================================
  Files                   56      55       -1     
  Lines                 9679    9368     -311     
==================================================
- Hits                  1211     907     -304     
+ Misses                8385    8379       -6     
+ Partials                83      82       -1     
Impacted Files Coverage Δ
x/qgb/keeper/keeper_attestation.go 24.52% <0.00%> (ø)
testutil/common.go
x/qgb/module.go 3.50% <0.00%> (+3.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ed87bb...6c52bab. Read the comment docs.

@evan-forbes
Copy link
Member

great find!!

@rach-id rach-id marked this pull request as ready for review July 12, 2022 16:24
@rach-id rach-id requested a review from evan-forbes July 12, 2022 16:25
Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

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

👍

testutil/common.go Show resolved Hide resolved
x/qgb/orchestrator/orchestrator.go Show resolved Hide resolved
@rach-id rach-id merged commit 7be1c7f into celestiaorg:qgb-integration Jul 13, 2022
@rach-id rach-id deleted the cli_timeout branch July 13, 2022 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants