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: cli: Reset miner/ask lists in interactive deal 'miner' step #8155

Merged

Conversation

FlorianRuen
Copy link
Contributor

@FlorianRuen FlorianRuen commented Feb 18, 2022

Related Issues

Fixes #8095

Proposed Changes

Clear the list of miners addresses set on the first attempt, because without clearing the list, on the next attempt, faulty miner is always in the list, so error is throw again.

Also, clear the list of all successfull get-ask before asking new addresses, because :

  • First attempt : first miner in the list is good miner and the second one faulty ;
  • Second attempt : only good miner in the list : summary will show two miner (because the first successfull one isn't removed)

Bug fixed : if hitting return instead of filling with a valid value, the CLI crashed (line 796)
Change return err by continue to ask a valid value again
Bug fixed : if hitting return instead of filling with a valid value, the CLI crashed (line 796)
Change return err by continue to ask a valid value again
Commit to fix lint reported errors during tests on CircleCI
(remove blank lines x2)
Commit to fix lint reported errors during tests on CircleCI
(remove trailling whitespace)
Clear the list of miner addresses and successfull get-asked before asking for new ones
Previous behavior : if get-ask failed for miner(s), the faulty miner will be retried each time,
so you have to stop the command and start again to change this faulty miner (instead of removing from the list on the new attempt)
…king for new ones

Previous behavior : if get-ask failed for miner(s), the faulty miner will be retried each time,
so you have to stop the command and start again to change this faulty miner (instead of removing from the list on the new attempt)
@FlorianRuen FlorianRuen requested a review from a team as a code owner February 18, 2022 16:07
@codecov
Copy link

codecov bot commented Feb 18, 2022

Codecov Report

Merging #8155 (cc25b14) into master (93bc3af) will decrease coverage by 0.03%.
The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8155      +/-   ##
==========================================
- Coverage   39.39%   39.35%   -0.04%     
==========================================
  Files         666      666              
  Lines       72466    72469       +3     
==========================================
- Hits        28546    28522      -24     
- Misses      38995    39014      +19     
- Partials     4925     4933       +8     
Impacted Files Coverage Δ
cli/client.go 22.21% <40.00%> (+0.09%) ⬆️
chain/actors/builtin/miner/diff.go 48.52% <0.00%> (-10.30%) ⬇️
markets/retrievaladapter/client_blockstore.go 62.50% <0.00%> (-6.25%) ⬇️
chain/exchange/peer_tracker.go 66.66% <0.00%> (-4.31%) ⬇️
node/hello/hello.go 63.63% <0.00%> (-3.41%) ⬇️
blockstore/buffered.go 34.44% <0.00%> (-2.23%) ⬇️
extern/sector-storage/sched.go 84.77% <0.00%> (-0.83%) ⬇️
chain/sync_manager.go 66.77% <0.00%> (-0.63%) ⬇️
chain/store/store.go 63.66% <0.00%> (-0.50%) ⬇️
storage/wdpost_changehandler.go 98.11% <0.00%> (-0.48%) ⬇️
... and 5 more

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 93bc3af...cc25b14. Read the comment docs.

@magik6k magik6k changed the title fix:cli:Can't change miners addresses when making deal if get-ask failled without killing CLI fix: cli: Reset miner/ask lists in interactive deal 'miner' step Mar 25, 2022
Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@magik6k magik6k merged commit 196030b into filecoin-project:master Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants