This repository was archived by the owner on Nov 6, 2020. It is now read-only.
Move snapshot related traits to their proper place#11012
Merged
dvdplm merged 24 commits intoSep 10, 2019
Conversation
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
…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)
ordian
reviewed
Sep 5, 2019
Co-Authored-By: Andronik Ordian <write@reusable.software>
…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
ordian
approved these changes
Sep 6, 2019
| 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. |
Member
There was a problem hiding this comment.
this is unfortunate, but I didn't come up with something better
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
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) ...
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
SnapshotClientandSnapshotWriterback where they belong in thesnapshotcrate.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:
SnapshotClientandSnapshotWritertraits fromclient-traitsto thesnapshotcrate where they belongsnapshottosnapshot-testssnapshotwhere types or methods have been madepubonly 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 --allactually work a crate has to be a workspace member or part of the dependency tree; forsnapshot-teststhis means it has to be listed in the[dev-dependencies]forsnapshot.Continuation of #11010