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

Snapdeals unsealing fixes #11011

Merged
merged 13 commits into from
Sep 5, 2023
Merged

Snapdeals unsealing fixes #11011

merged 13 commits into from
Sep 5, 2023

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Jun 28, 2023

Related Issues

Depends on filecoin-project/go-state-types#191
Depends on filecoin-project/filecoin-ffi#402

(todo link relevant issues)

Proposed Changes

Additional Info

Testing:

  • ITests
    • Existing itests pass
    • Test unseal on a worker with no long-term-storage, verify files cleaned up correctly
  • Manual testing

Checklist

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

  • Commits have a clear commit message.
  • 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, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

@magik6k
Copy link
Contributor Author

magik6k commented Jun 29, 2023

Blocked on FFI changes landing

Other than that I'm reasonably confident this works, or at least isn't worse than current state.

@rjan90 rjan90 linked an issue Jun 30, 2023 that may be closed by this pull request
@magik6k magik6k changed the title wip: Snapdeals unsealing fixes Snapdeals unsealing fixes Aug 1, 2023
@Reiers
Copy link

Reiers commented Aug 3, 2023

Testing:

  • ITests
    • Existing itests pass
    • Test unseal on a worker with no long-term-storage, verify files cleaned up correctly
  • Manual testing
    • Test normal unseal
      • Works on a worker with only sealing paths
      • Unsealed file is moved to long-term storage after unsealing
      • No files are left in sealing paths after unseal is done
      • Sealed + Unsealed files are in long-term-storage
    • Test snapdeals unseal
      • Without sector-key in storage
        • Works on a worker with only sealing paths
        • Unsealed file is moved to long-term storage after unsealing
        • No files are left in sealing paths after unseal is done
        • Update + Unsealed files are in long-term-storage
      • With sector-key in storage already
        • Works on a worker with only sealing paths
        • Unsealed file is moved to long-term storage after unsealing
        • No files are left in sealing paths after unseal is done
        • Update + Unsealed files are in long-term-storage

Unsealing on a worker works flawlessly - it moves the unsealed sectors to the long term storage, deletes the leftover files on the worker. Great job !

Tested for 2 days on Snap and Regular sectors.

Only one request, is that lotus-miner sectors unseal <sector> doesn't hang.

@magik6k
Copy link
Contributor Author

magik6k commented Aug 3, 2023

Hanging unseal command is a separate thing related to how this command works - #11133

@magik6k
Copy link
Contributor Author

magik6k commented Aug 4, 2023

The go-state-types PR we depend on here got merged after nv21 changes, which break some integration tests without synth-porep ffi changes

Marking as blocked for now, those failing tests should resolve themselves after rebasing on synth-porep code.

@rjan90
Copy link
Contributor

rjan90 commented Aug 25, 2023

@magik6k Can we turn this back to unblocked now that nv21 skeleton has been merged into master?

@jennijuju jennijuju marked this pull request as ready for review August 30, 2023 16:28
@jennijuju jennijuju requested a review from a team as a code owner August 30, 2023 16:28
@snadrus snadrus merged commit 70895af into master Sep 5, 2023
@snadrus snadrus deleted the fix/snap-unseal branch September 5, 2023 15:25
@rjan90 rjan90 mentioned this pull request Sep 5, 2023
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.

Implement new SnapDeals decodes API for unsealing
6 participants