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

[Merged by Bors] - Clean up all files upon stop smeshing #4732

Closed
wants to merge 3 commits into from

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Jul 20, 2023

Motivation

To avoid publishing incorrect proofs after a user re-initializes cleanup all local state when deleteFiles is set to true.

Changes

Delete all state not just post upon StopSmeshing { deleteFiles: true }.

Test Plan

n/a

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed

DevOps Notes

  • This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
  • This PR does not affect public APIs
  • This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
  • This PR does not make changes to log messages (which monitoring infrastructure may rely on)

@fasmat fasmat self-assigned this Jul 20, 2023
@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #4732 (d7be99d) into develop (e91d735) will decrease coverage by 0.1%.
The diff coverage is 50.0%.

@@            Coverage Diff            @@
##           develop   #4732     +/-   ##
=========================================
- Coverage     77.2%   77.1%   -0.1%     
=========================================
  Files          255     255             
  Lines        28855   28879     +24     
=========================================
+ Hits         22279   22293     +14     
- Misses        5190    5197      +7     
- Partials      1386    1389      +3     
Impacted Files Coverage Δ
activation/activation.go 75.8% <0.0%> (-1.6%) ⬇️
activation/nipost_state.go 62.6% <100.0%> (+3.9%) ⬆️

... and 2 files with indirect coverage changes

@fasmat
Copy link
Member Author

fasmat commented Jul 21, 2023

bors merge

bors bot pushed a commit that referenced this pull request Jul 21, 2023
## Motivation
To avoid publishing incorrect proofs after a user re-initializes cleanup all local state when `deleteFiles` is set to `true`.

## Changes
Delete all state not just post upon StopSmeshing { deleteFiles: true }.

## Test Plan
n/a

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed

## DevOps Notes
<!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases -->
- [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
- [x] This PR does not affect public APIs
- [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
- [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
@bors
Copy link

bors bot commented Jul 21, 2023

Pull request successfully merged into develop.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title Clean up all files upon stop smeshing [Merged by Bors] - Clean up all files upon stop smeshing Jul 21, 2023
@bors bors bot closed this Jul 21, 2023
@bors bors bot deleted the properly-cleanup-local-state branch July 21, 2023 17:38
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.

None yet

2 participants