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/consensus/api/transaction/testvector: Extend TestVector to suport the notion of a (statically) valid transaction #3845

Merged
merged 6 commits into from
Apr 10, 2021

Conversation

tjanez
Copy link
Member

@tjanez tjanez commented Apr 9, 2021

No description provided.

@tjanez tjanez added c:testing Category: testing c:common Category: common libraries c:breaking/consensus Category: breaking consensus changes c:governance Category: governance service labels Apr 9, 2021
@tjanez tjanez force-pushed the tjanez/testvector-valid branch 3 times, most recently from 717f602 to 9485e2b Compare April 9, 2021 10:15
@tjanez tjanez marked this pull request as ready for review April 9, 2021 10:16
@tjanez tjanez force-pushed the tjanez/testvector-valid branch 4 times, most recently from 47a5aa3 to 09415eb Compare April 9, 2021 16:45
tjanez added 2 commits April 9, 2021 18:46
This makes it consistent with how we usually order protocol versions in
output and when initializing the ProtocolVersions struct.
@tjanez tjanez force-pushed the tjanez/testvector-valid branch from 09415eb to a194c3c Compare April 9, 2021 16:46
Copy link
Member

@kostko kostko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the governance workload as it is generating too long names now 😄

@tjanez tjanez force-pushed the tjanez/testvector-valid branch from a194c3c to a4631f5 Compare April 9, 2021 19:46
@tjanez
Copy link
Member Author

tjanez commented Apr 9, 2021

Update the governance workload as it is generating too long names now 😄

He he, I didn't see that one comming 😄. I think it should be fixed now.

@kostko
Copy link
Member

kostko commented Apr 10, 2021

Still failing due to invalid proposal.

tjanez added 2 commits April 10, 2021 21:13
Also drop entity from {min,max}EntityDescriptorVersion constants.

The entity part was redundant.
@tjanez tjanez force-pushed the tjanez/testvector-valid branch from a4631f5 to 1dc7054 Compare April 10, 2021 19:14
Extend meaning of TestVector's Valid field to also indicate that the
given test vector's transaction passes basic static validation (besides
having a valid signature and being correctly serialized).

Update MakeTestVector() and MakeTestVectorWithSigner() functions to take
the valid argument indicating whether the transaction is valid or not.

Update go/registry/gen_vectors, go/staking/gen_vectors and
go/governance/gen_vectors packages.

Expand go/governance/gen_vectors package to cover more (invalid)
transaction cases.
@tjanez tjanez force-pushed the tjanez/testvector-valid branch from 1dc7054 to 3313495 Compare April 10, 2021 19:34
@codecov
Copy link

codecov bot commented Apr 10, 2021

Codecov Report

Merging #3845 (3313495) into master (210751e) will decrease coverage by 0.18%.
The diff coverage is 78.26%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3845      +/-   ##
==========================================
- Coverage   67.14%   66.96%   -0.19%     
==========================================
  Files         404      404              
  Lines       41428    41448      +20     
==========================================
- Hits        27816    27754      -62     
- Misses       9678     9744      +66     
- Partials     3934     3950      +16     
Impacted Files Coverage Δ
go/common/entity/entity.go 65.34% <20.00%> (-0.66%) ⬇️
go/common/version/version.go 75.00% <85.71%> (+1.66%) ⬆️
go/oasis-node/cmd/registry/entity/entity.go 42.27% <100.00%> (ø)
go/registry/tests/tester.go 91.52% <100.00%> (ø)
go/upgrade/api/api.go 84.44% <100.00%> (+8.76%) ⬆️
go/upgrade/migrations/dummy.go 70.00% <100.00%> (ø)
go/worker/compute/executor/committee/batch.go 80.00% <0.00%> (-20.00%) ⬇️
go/worker/common/committee/runtime_host.go 64.28% <0.00%> (-6.25%) ⬇️
go/runtime/tagindexer/tagindexer.go 66.66% <0.00%> (-4.60%) ⬇️
go/storage/api/root_cache.go 75.55% <0.00%> (-4.45%) ⬇️
... and 35 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 210751e...3313495. Read the comment docs.

@tjanez tjanez merged commit 541bad8 into master Apr 10, 2021
@tjanez tjanez deleted the tjanez/testvector-valid branch April 10, 2021 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:breaking/consensus Category: breaking consensus changes c:common Category: common libraries c:governance Category: governance service c:testing Category: testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants