-
Notifications
You must be signed in to change notification settings - Fork 279
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
[feature] #2100: Add query to find all accounts with asset #2197
[feature] #2100: Add query to find all accounts with asset #2197
Conversation
4e2055c
to
d3a4f36
Compare
Codecov Report
@@ Coverage Diff @@
## iroha2-dev #2197 +/- ##
==============================================
- Coverage 76.57% 5.25% -71.33%
==============================================
Files 185 141 -44
Lines 26704 21653 -5051
==============================================
- Hits 20449 1137 -19312
- Misses 6255 20516 +14261
Continue to review full report at Codecov.
|
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
12dc80d
to
e4a2844
Compare
@@ -27,32 +27,28 @@ fn main() { | |||
.expect("Failed to run `rustfmt` on smartcontract"); | |||
assert!(fmt.success(), "Can't format smartcontract"); | |||
|
|||
let instrumenting_coverage = if let Ok(flags) = env::var("RUSTFLAGS") { |
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.
Note from here:
Note that since Rust 1.55, RUSTFLAGS is removed from the environment; scripts should use CARGO_ENCODED_RUSTFLAGS instead.
if let Err(error) = self.wsv.apply(block.clone()).await { | ||
warn!(?error, %block_hash, "Failed to apply block on WSV"); | ||
} | ||
|
||
for event in Vec::<Event>::from(&block) { | ||
trace!(?event); | ||
drop(self.events_sender.send(event)); |
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.
off topic comment. I've wondered before about this drop. No big deal
@@ -746,14 +746,15 @@ impl<G: GenesisNetworkTrait, K: KuraTrait, W: WorldTrait, F: FaultInjection> | |||
let block = block.commit(); | |||
let block_hash = block.hash(); | |||
|
|||
if let Err(error) = self.wsv.apply(block.clone()).await { | |||
warn!(?error, %block_hash, "Failed to apply block on WSV"); | |||
} |
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.
so this change fixed flakiness?
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.
Yes
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
f1dc227
to
a574e4f
Compare
… asset (hyperledger-iroha#2197) Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
… asset (hyperledger-iroha#2197) Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Description of the Change
FindAccountsWithAsset
queryCommitted
event) were sent before actual block applying to WSVcargo flaky
running every test for 100 times for about 4 hoursResults of running
cargo flaky
(edited for readability):The 3'rd case isn't a real problem. This test just depends on a folder it runs from, we should be able to fix it probably.
The 4'th case is a compilation tests (as @mversic suggested). Not sure what does it means here.
Issue
Benefits
Possible Drawbacks
I've enabled
mint_nft_for_every_user_every_1_sec
test back. I haven't runcargo flaky
with it but I've run it mannually (bash script) for about 30 times and it seems to work fine. The only problem is a long execution time (~50 sec on my M1 Mac), so probably I need to ignore this test again.Usage Examples or Tests
cargo test --package iroha_client --test mod -- integration::queries::account::find_accounts_with_asset --exact --nocapture