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

fix tests that were failing via RPC #437

Merged
merged 7 commits into from
May 23, 2018
Merged

fix tests that were failing via RPC #437

merged 7 commits into from
May 23, 2018

Conversation

winsvega
Copy link
Collaborator

Here is the first test filled with retesteth via RPC and custom cpp client version.
this test should be compatible with existing cpp-develop.

@winsvega winsvega requested a review from pirapira March 22, 2018 16:23
@@ -2,10 +2,11 @@
"createNameRegistratorPerTxsNotEnoughGas" : {
"_info" : {
"comment" : "",
"filledwith" : "cpp-1.3.0+commit.619a6438.Linux.g++",
"filledwith" : "cpp-1.3.0+commit.84983edf.Linux.g++",
"retesteth" : "cpp-0.0.1+commit.b346d8e6.Linux.g++",
Copy link
Member

Choose a reason for hiding this comment

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

What?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

retesteth commit hash

Copy link
Member

Choose a reason for hiding this comment

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

I see. But can you rename it to something more generic. E.g. "client_version" and "tool_version". And why retesteth is called "cpp"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

tool_version does not look more generic then retesteth
cpp states for cpp implementation

Copy link
Member

@pirapira pirapira Mar 23, 2018

Choose a reason for hiding this comment

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

@winsvega can you make it, something like

"filling-rpc-host-version" : "cpp-1.3.0+commit.84983edf.Linux.g++",
"filling-runner-version" : "retesteth-0.0.1+commit.abdcda.Linux.g++"

Copy link
Member

Choose a reason for hiding this comment

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

@winsvega let's prepare for alternative implementations of retesteth and let's assume not all of them are called retesteth.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

filling-rpc-client
filling-tool-version

Copy link
Member

Choose a reason for hiding this comment

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

@winsvega For consistency, you either add -version suffix or not.

Copy link
Member

Choose a reason for hiding this comment

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

@winsvega cpp-ethereum is the RPC server, not the client. retesteth sends requests (client) and cpp-ethereum answers (server).

@pirapira
Copy link
Member

@winsvega please file a PR to testeth repository with a new submodule pointing to this branch. This is for running Travis.

Copy link
Member

@pirapira pirapira left a comment

Choose a reason for hiding this comment

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

waiting for a successful Travis run with testeth somewhere.

@holiman
Copy link
Contributor

holiman commented Mar 23, 2018

Here is the first test filled with retesteth via RPC and custom cpp client version.
this test should be compatible with existing cpp-develop.

How was it filled, exactly? What was used for input, and what API was used?

@winsvega
Copy link
Collaborator Author

the input is createNameRegistratorPerTxsNotEnoughGasFiller.json
it was filled with this RPC methods:
ethereum/retesteth#5

(which are not final and it's format will probably be changed)

@winsvega winsvega changed the title fix oog transaction execution fix tests that were failin via RPC Mar 23, 2018
@winsvega winsvega changed the title fix tests that were failin via RPC fix tests that were failing via RPC Mar 23, 2018
@pirapira
Copy link
Member

pirapira commented Apr 5, 2018

@winsvega should this be ready for merge?

@winsvega
Copy link
Collaborator Author

winsvega commented Apr 5, 2018

cpp-ethereum testeth would fail to pass this.
because 0 reward is considered to be a touch in this tests

@pirapira
Copy link
Member

pirapira commented Apr 5, 2018

@winsvega are you going to fix cpp-ethereum?

@winsvega
Copy link
Collaborator Author

winsvega commented Apr 9, 2018

the tests itself might be incorrect. now moving from test_addTransaction to eth_sendRawTransaction
seems like some of this tests are invalid again. eth client reject the transaction I guess

@winsvega
Copy link
Collaborator Author

@pirapira a PR passing this branch has just been merged to cpp.
ethereum/aleth#5024

@winsvega winsvega merged commit 0eef2f3 into develop May 23, 2018
@axic axic deleted the retesteth branch May 31, 2018 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants