This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Move snapshot related traits to their proper place #11012
Merged
dvdplm
merged 24 commits into
master
from
dp/chore/extract-snapshot-with-traits-in-the-right-place
Sep 10, 2019
Merged
Move snapshot related traits to their proper place #11012
dvdplm
merged 24 commits into
master
from
dp/chore/extract-snapshot-with-traits-in-the-right-place
Sep 10, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sort out imports
Sort out tests
Sort out the circular dependency between snapshot and ethcore by moving all snapshot tests to own crate, snapshot-tests
dvdplm
added
A3-inprogress ⏳
Pull request is in progress. No review needed at this stage.
M4-core ⛓
Core client code / Rust.
labels
Aug 30, 2019
…he-right-place * master: Extract snapshot to own crate (#11010) Edit publish-onchain.sh to use https (#11016) EIP 1108: Reduce alt_bn128 precompile gas costs (#11008) Fix deadlock in `network-devp2p` (#11013) Implement EIP-1283 reenable transition, EIP-1706 and EIP-2200 (#10191) EIP 1884 Re-pricing of trie-size dependent operations (#10992)
dvdplm
added
A0-pleasereview 🤓
Pull request needs code review.
and removed
A3-inprogress ⏳
Pull request is in progress. No review needed at this stage.
labels
Sep 3, 2019
ordian
reviewed
Sep 5, 2019
Co-Authored-By: Andronik Ordian <[email protected]>
…e' of github.com:paritytech/parity-ethereum into dp/chore/extract-snapshot-with-traits-in-the-right-place * 'dp/chore/extract-snapshot-with-traits-in-the-right-place' of github.com:paritytech/parity-ethereum: Update ethcore/snapshot/snapshot-tests/Cargo.toml
dvdplm
added
A3-inprogress ⏳
Pull request is in progress. No review needed at this stage.
and removed
A0-pleasereview 🤓
Pull request needs code review.
labels
Sep 5, 2019
dvdplm
added
A0-pleasereview 🤓
Pull request needs code review.
and removed
A3-inprogress ⏳
Pull request is in progress. No review needed at this stage.
labels
Sep 6, 2019
ordian
approved these changes
Sep 6, 2019
@@ -52,3 +52,9 @@ lazy_static = { version = "1.3" } | |||
spec = { path = "../spec" } | |||
tempdir = "0.3" | |||
trie-standardmap = "0.15.0" | |||
# Note[dvdplm]: Ensure the snapshot tests are included in the dependency tree, which in turn means that | |||
# `cargo test --all` runs the tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is unfortunate, but I didn't come up with something better
dvdplm
added
A8-looksgood 🦄
Pull request is reviewed well.
and removed
A0-pleasereview 🤓
Pull request needs code review.
labels
Sep 9, 2019
niklasad1
reviewed
Sep 10, 2019
niklasad1
reviewed
Sep 10, 2019
niklasad1
reviewed
Sep 10, 2019
niklasad1
reviewed
Sep 10, 2019
niklasad1
reviewed
Sep 10, 2019
niklasad1
reviewed
Sep 10, 2019
niklasad1
reviewed
Sep 10, 2019
niklasad1
approved these changes
Sep 10, 2019
…he-right-place * master: cleanup json crate (#11027) [spec] add istanbul test spec (#11033) [json-spec] make blake2 pricing spec more readable (#11034) Add blake2_f precompile (#11017) Add new line after writing block to hex file. (#10984) fix: remove unused error-chain (#11028) fix: remove needless use of itertools (#11029) Convert `std::test` benchmarks to use Criterion (#10999) Fix block detail updating (#11015) [trace] introduce trace failed to Ext (#11019) cli: update usage and version headers (#10924) [private-tx] remove unused rand (#11024)
dvdplm
deleted the
dp/chore/extract-snapshot-with-traits-in-the-right-place
branch
September 10, 2019 20:44
dvdplm
added a commit
that referenced
this pull request
Sep 13, 2019
* master: (70 commits) ethcore: remove `test-helper feat` from build (#11047) Include test-helpers from ethjson (#11045) [ethcore]: cleanup dependencies (#11043) add more tx tests (#11038) Fix parallel transactions race-condition (#10995) [ethcore]: make it compile without `test-helpers` feature (#11036) Benchmarks for block verification (#11035) Move snapshot related traits to their proper place (#11012) cleanup json crate (#11027) [spec] add istanbul test spec (#11033) [json-spec] make blake2 pricing spec more readable (#11034) Add blake2_f precompile (#11017) Add new line after writing block to hex file. (#10984) fix: remove unused error-chain (#11028) fix: remove needless use of itertools (#11029) Convert `std::test` benchmarks to use Criterion (#10999) Fix block detail updating (#11015) [trace] introduce trace failed to Ext (#11019) cli: update usage and version headers (#10924) [private-tx] remove unused rand (#11024) ...
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a continuation of #11010 that puts
SnapshotClient
andSnapshotWriter
back where they belong in thesnapshot
crate.This move creates a tricky situation for tests, where the direct dependency of the tests on
ethcore::Client
(and other stuff fromethcore
) cause the trait impls to be "lost".As a work-around this PR moves all snapshot tests to their own crate,
snapshot-tests
.Salient points:
SnapshotClient
andSnapshotWriter
traits fromclient-traits
to thesnapshot
crate where they belongsnapshot
tosnapshot-tests
snapshot
where types or methods have been madepub
only to accommodate tests (e.g. here); in places where it makes sense to do so, I have used#[cfg(any(test, feature = "test-helpers"))]
(e.g. here). This is unfortunate but I could not think of a better way.cargo test --all
actually work a crate has to be a workspace member or part of the dependency tree; forsnapshot-tests
this means it has to be listed in the[dev-dependencies]
forsnapshot
.Continuation of #11010