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] - Avoid races in postVerifier #4965

Closed
wants to merge 7 commits into from

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Sep 5, 2023

Motivation

Closes #4910, merge after spacemeshos/post#232.

Changes

  • Removed Start method, a verifier returned from NewOffloadingPostVerifier is ready to be used
  • Close cancels ongoing verifications and avoids new ones being started
  • Updated node.go to use the new API

Test Plan

  • existing tests pass

TODO

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

@fasmat fasmat self-assigned this Sep 5, 2023
@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Merging #4965 (cc8c7fc) into develop (6433610) will decrease coverage by 0.1%.
The diff coverage is 100.0%.

@@            Coverage Diff            @@
##           develop   #4965     +/-   ##
=========================================
- Coverage     77.2%   77.2%   -0.1%     
=========================================
  Files          254     254             
  Lines        30081   30092     +11     
=========================================
+ Hits         23232   23235      +3     
- Misses        5349    5357      +8     
  Partials      1500    1500             
Files Changed Coverage Δ
activation/post_verifier.go 87.9% <100.0%> (-0.3%) ⬇️
node/node.go 63.0% <100.0%> (-0.2%) ⬇️

... and 4 files with indirect coverage changes

@fasmat fasmat force-pushed the 4910-avoid-races-in-postverifier branch 2 times, most recently from 4baf2d2 to 096916b Compare September 7, 2023 07:55
CHANGELOG.md Outdated Show resolved Hide resolved
@fasmat fasmat force-pushed the 4910-avoid-races-in-postverifier branch from 8ceaa93 to 5a22887 Compare September 7, 2023 13:03
@fasmat
Copy link
Member Author

fasmat commented Sep 7, 2023

bors merge

bors bot pushed a commit that referenced this pull request Sep 7, 2023
## Motivation
Closes #4910, merge after spacemeshos/post#232.

## Changes
- Removed `Start` method, a verifier returned from `NewOffloadingPostVerifier` is ready to be used
- `Close` cancels ongoing verifications and avoids new ones being started
- Updated `node.go` to use the new API

## Test Plan
- existing tests pass

## 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
- [x] Update [changelog](../CHANGELOG.md) as needed
@fasmat fasmat force-pushed the 4910-avoid-races-in-postverifier branch from 5a22887 to cc8c7fc Compare September 7, 2023 14:02
@bors
Copy link

bors bot commented Sep 7, 2023

Canceled.

@fasmat
Copy link
Member Author

fasmat commented Sep 7, 2023

bors merge

bors bot pushed a commit that referenced this pull request Sep 7, 2023
## Motivation
Closes #4910, merge after spacemeshos/post#232.

## Changes
- Removed `Start` method, a verifier returned from `NewOffloadingPostVerifier` is ready to be used
- `Close` cancels ongoing verifications and avoids new ones being started
- Updated `node.go` to use the new API

## Test Plan
- existing tests pass

## 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
- [x] Update [changelog](../CHANGELOG.md) as needed
@bors
Copy link

bors bot commented Sep 7, 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 Avoid races in postVerifier [Merged by Bors] - Avoid races in postVerifier Sep 7, 2023
@bors bors bot closed this Sep 7, 2023
@bors bors bot deleted the 4910-avoid-races-in-postverifier branch September 7, 2023 14:53
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.

Segmentation fault in TestSpacemeshApp_NodeService
2 participants