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: worker: Download proofs if PRU2 is enabled #8552

Closed
wants to merge 9 commits into from
Closed

fix: worker: Download proofs if PRU2 is enabled #8552

wants to merge 9 commits into from

Conversation

rjan90
Copy link
Contributor

@rjan90 rjan90 commented Apr 25, 2022

Currently the lotus-worker does not check or download the params if Prove Replica Update tasks are enabled, meaning that you get an param-error if you for example a run a new 'PC1 / RU / PRU2' worker and a SnapDeal gets assigned to it. Reported in #8549.

Checklist

Before you mark the PR ready for review, please make sure that:

  • All commits have a clear commit message.
  • The PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, INTERFACE BREAKING CHANGE, CONSENSUS BREAKING, build, chore, ci, docs,perf, refactor, revert, style, test
    • area: api, chain, state, vm, data transfer, market, mempool, message, block production, multisig, networking, paychan, proving, sealing, wallet, deps
  • This PR has tests for new functionality or change in behaviour
  • If new user-facing features are introduced, clear usage guidelines and / or documentation updates should be included in https://lotus.filecoin.io or Discussion Tutorials.
  • CI is green

rjan90 added 2 commits April 21, 2022 14:21
Update the `lotus-wallet run` to include that a `FULLNODE_API_INFO` env variable needs to be set before running
Currently the lotus-worker does not check or download the params if SnapDeal tasks are enabled, meaning that you get an param-error if you for example a run a new 'PC1 / RU / PRU2' worker and a SnapDeal gets assigned to it. Reported in #8549.
@rjan90 rjan90 requested a review from a team as a code owner April 25, 2022 06:44
@codecov
Copy link

codecov bot commented Apr 25, 2022

Codecov Report

Merging #8552 (0a5152d) into master (caeeb6a) will decrease coverage by 0.06%.
The diff coverage is 0.00%.

❗ Current head 0a5152d differs from pull request most recent head 3459100. Consider uploading reports for the commit 3459100 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8552      +/-   ##
==========================================
- Coverage   40.26%   40.19%   -0.07%     
==========================================
  Files         683      683              
  Lines       74480    74483       +3     
==========================================
- Hits        29989    29939      -50     
- Misses      39263    39304      +41     
- Partials     5228     5240      +12     
Impacted Files Coverage Δ
cmd/lotus-seal-worker/main.go 0.00% <0.00%> (ø)
chain/actors/builtin/miner/diff.go 48.52% <0.00%> (-10.30%) ⬇️
chain/events/observer.go 71.64% <0.00%> (-6.72%) ⬇️
extern/storage-sealing/currentdealinfo.go 72.97% <0.00%> (-3.61%) ⬇️
chain/stmgr/call.go 65.94% <0.00%> (-3.25%) ⬇️
miner/miner.go 57.04% <0.00%> (-2.96%) ⬇️
chain/exchange/client.go 52.96% <0.00%> (-1.70%) ⬇️
chain/stmgr/searchwait.go 67.30% <0.00%> (-1.29%) ⬇️
chain/vm/vm.go 61.63% <0.00%> (-1.07%) ⬇️
chain/sync.go 70.52% <0.00%> (-0.69%) ⬇️
... and 11 more

Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
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.

I would just do

if cctx.Bool("commit") || cctx.Bool("prove-replica-update2") {

above.

Using OR, instead of having a separate if/else
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.

Looks good now, but needs rebasing on master to fix the merge conflict

rjan90 added 5 commits April 25, 2022 15:57
fix: ux: update `lotus-wallet run` description
Currently the lotus-worker does not check or download the params if SnapDeal tasks are enabled, meaning that you get an param-error if you for example a run a new 'PC1 / RU / PRU2' worker and a SnapDeal gets assigned to it. Reported in #8549.
Using OR, instead of having a separate if/else
Rebasing on master
@rjan90 rjan90 closed this Apr 26, 2022
@rjan90 rjan90 deleted the fix/worker-params-snap-deals branch April 26, 2022 06:53
@rjan90
Copy link
Contributor Author

rjan90 commented Apr 26, 2022

I will have to read up a bit on git rebasing - had some issues getting it correctly here. Created a new PR for it #8555

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.

2 participants