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

Construction delegations in test agent #5796

Merged
merged 4 commits into from
Aug 28, 2020
Merged

Conversation

bkase
Copy link
Member

@bkase bkase commented Aug 27, 2020

Test agent runs construction end-to-end with delegations and payments

bkase and others added 2 commits August 28, 2020 02:43
fails during `/payloads` processing with:

```
{"timestamp":"2020-08-27 23:39:23.653830Z","level":"Error","source":{"module":"Agent","location":"File \"src/app/rosetta/test-agent/agent.ml\", line 395, characters 8-20"},"message":"Rosetta test-agent stopping with a failure: { Errors.T.extra_context =\n  (Some \\\"{ Error.code = 11l;\\\\n  message = \\\\\\\"Cannot convert operations to valid transaction\\\\\\\";\\\\n  retriable = false;\\\\n  details =\\\\n  (Some `Assoc ([(\\\\\\\"body\\\\\\\",\\\\n                  `List ([`String (\\\\\\\"Operations_not_valid\\\\\\\");\\\\n                           `List ([`List ([`String (\\\\\\\"Amount_not_some\\\\\\\")])])]));\\\\n                  (\\\\\\\"error\\\\\\\",\\\\n                   `String (\\\\\\\"Cannot recover transaction for the following reasons: (Amount_not_some)\\\\\\\"))\\\\n                  ]))\\\\n  }\\\");\n  kind = `Invariant_violation }","metadata":{"pid":15462}}
```
@psteckler
Copy link
Member

Above bug (and another) fixed by me.

@psteckler
Copy link
Member

New bug exposed:

{"timestamp":"2020-08-28 00:54:24.615482Z","level":"Error","source":{"module":"Agent","location":"File \"src/app/rosetta/test-agent/agent.ml\", line 395, characters 8-20"},"message":"Rosetta test-agent stopping with a failure: { Errors.T\
.extra_context =\n  (Some \\\"Unexpected operations in mempool reasons: (Amount), raw: { Operation.operation_identifier =\\\\n  { Operation_identifier.index = 0L; network_index = None };\\\\n  related_operations = []; _type = \\\\\\\"fee\
_payer_dec\\\\\\\"; status = \\\\\\\"Pending\\\\\\\";\\\\n  account =\\\\n  (Some { Account_identifier.address =\\\\n          \\\\\\\"B62qrPN5Y5yq8kGE3FbVKbGTdTAJNdtNtB5sNVpxyRwWGcDEhpMzc8g\\\\\\\";\\\\n          sub_account = None;\\\\\
n          metadata = (Some `Assoc ([(\\\\\\\"token_id\\\\\\\", `String (\\\\\\\"1\\\\\\\"))])) });\\\\n  amount =\\\\n  (Some { Amount.value = \\\\\\\"-5000000000\\\\\\\";\\\\n          currency =\\\\n          { Currency.symbol = \\\\\\
\\"CODA\\\\\\\"; decimals = 9l; metadata = None };\\\\n          metadata = None });\\\\n  coin_change = None; metadata = None }\\\");\n  kind = `Invariant_violation }","metadata":{"pid":100450}}

@bkase bkase changed the title WIP WIP delegations in test agent Aug 28, 2020
@bkase bkase changed the title WIP delegations in test agent Construction delegations in test agent Aug 28, 2020
@bkase bkase marked this pull request as ready for review August 28, 2020 14:09
@bkase bkase requested a review from a team as a code owner August 28, 2020 14:09
Base automatically changed from rosetta/delegations-of-operations to develop August 28, 2020 15:44
@bkase bkase added ready-to-merge Adding this label will trigger mergify and trigger CI to run and merge the PR ci-build-me Add this label to trigger a circle+buildkite build for this branch labels Aug 28, 2020
@bkase bkase merged commit b10e8a7 into develop Aug 28, 2020
@bkase bkase deleted the rosetta/delegation-in-test-agent branch August 28, 2020 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch ready-to-merge Adding this label will trigger mergify and trigger CI to run and merge the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants