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

go/genesis: Fix genesis tests and registry sanity checks #2612

Merged
merged 3 commits into from
Jan 29, 2020

Conversation

kostko
Copy link
Member

@kostko kostko commented Jan 29, 2020

Fixes #2589

@kostko kostko force-pushed the kostko/fix/genesis-tests branch from 1e38ba9 to 26edaf3 Compare January 29, 2020 10:30
@kostko kostko force-pushed the kostko/fix/genesis-tests branch from 26edaf3 to 8617ded Compare January 29, 2020 11:05
Previously the underlying access policies map was passed directly, which led to
corruption as the map is mutable. We now create a snapshot of the map before
emitting it to the policy watcher.
@codecov
Copy link

codecov bot commented Jan 29, 2020

Codecov Report

Merging #2612 into master will increase coverage by 0.01%.
The diff coverage is 36.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2612      +/-   ##
==========================================
+ Coverage   63.34%   63.35%   +0.01%     
==========================================
  Files         359      359              
  Lines       33841    33863      +22     
==========================================
+ Hits        21435    21453      +18     
- Misses       9761     9764       +3     
- Partials     2645     2646       +1
Impacted Files Coverage Δ
go/genesis/tests/helpers.go 100% <ø> (ø)
go/consensus/tendermint/tests/evidence.go 95.55% <ø> (ø) ⬆️
go/storage/tests/tester.go 99.17% <ø> (ø) ⬆️
.../storage/mkvs/urkel/interop/cmd/protocol_server.go 13.2% <ø> (ø) ⬆️
go/oasis-node/cmd/node/node.go 57.42% <ø> (ø) ⬆️
go/consensus/tendermint/tests/genesis/genesis.go 96.96% <ø> (ø) ⬆️
go/oasis-test-runner/oasis/oasis.go 0% <ø> (ø) ⬆️
go/registry/api/api.go 37.91% <0%> (-0.26%) ⬇️
go/keymanager/api/api.go 66.66% <0%> (-2.3%) ⬇️
go/common/grpc/policy/policy.go 72.85% <100%> (+1.21%) ⬆️
... and 14 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 a48cd81...77c0536. Read the comment docs.

@kostko kostko merged commit 9e89921 into master Jan 29, 2020
@kostko kostko deleted the kostko/fix/genesis-tests branch January 29, 2020 12:16
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.

go/genesis: The tests aren't actually being ran at all
3 participants