-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix & update rust tester #727
Conversation
rust/psibase/src/block.rs
Outdated
#[to_key(psibase_mod = "crate")] | ||
#[graphql(input_name = "BlockInfoInput")] | ||
// #[to_key(psibase_mod = "crate")] | ||
// #[graphql(input_name = "BlockInfoInput")] |
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.
Why eliminate these derives and attributes? Anyway I think you should just delete all these things instead of leaving them as comments.
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.
Because the graphql didnt accept the new Consensus variant if the block is a Graphql InputObject for a query...I will remove the comments and create an issue to track it back.
We must have had a reason to have these blocks as input objects but honestly I didnt find these "BlockInfoInput" anywhere in the codebase... Thats why I removed for now
1f42257
to
b67403e
Compare
When I try to run
|
Did you determine that 1.78 is now too old of a rust version?
|
It's because we need to merge #726 first -- working on that |
02a3100
to
32fcc63
Compare
As we talked about, no, the version 1.78 is good enough! |
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.
I think there's some cleanup to the tester output that would be nice, but I documented it in a separate issue instead of holding up this PR.
@@ -294,16 +273,27 @@ impl<T: fracpack::UnpackOwned> ChainResult<T> { | |||
let ret = transact | |||
.inner_traces | |||
.iter() | |||
// TODO: improve this filter.. we need to return whatever is the name of the action somehow if possible... |
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.
I think this comment is outdated. The output already does get the name of the action. Sample output:
>>> ChainResult::get - Inner action trace: setcpulimit (raw_retval=)
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.
Problem is that we dont know which action name we should filter by...
Depends on #725 and #726