Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

dfuse Deep Mind changes - #8788

Merged
arhag merged 19 commits into
EOSIO:developfrom
dfuse-io:feature/deep-mind
Apr 10, 2020
Merged

arhag merged 19 commits into
EOSIO:developfrom
dfuse-io:feature/deep-mind

Conversation

@maoueh

@maoueh maoueh commented Mar 9, 2020

Copy link
Copy Markdown
Contributor

Change Description

Discussed last week, here the dfuse Deep Mind patchset rebased on develop.

It contains low-level dfuse instrumentation of the nodeos binary for post-consumption through a console reader.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@maoueh

maoueh commented Mar 9, 2020

Copy link
Copy Markdown
Contributor Author

I'll rebase all this after the first wave of comments.

@abourget

abourget commented Mar 9, 2020

Copy link
Copy Markdown
Contributor

Things I'm thinking we might want to look:

  • the action_id, and its alignment (or mis-alignment) with the action ordinals.

@nksanthosh
nksanthosh requested a review from arhag March 9, 2020 21:20
Comment thread libraries/chain/apply_context.cpp Resolved
Comment thread libraries/chain/apply_context.cpp Resolved
Comment thread libraries/chain/apply_context.cpp Resolved

@arhag arhag left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

More left to review.

Comment thread plugins/chain_plugin/chain_plugin.cpp Resolved
Comment thread plugins/chain_plugin/chain_plugin.cpp Resolved
Comment thread plugins/chain_plugin/chain_plugin.cpp Resolved
Comment thread libraries/chain/wasm_interface.cpp Resolved
Comment thread libraries/chain/apply_context.cpp Resolved
@maoueh
maoueh force-pushed the feature/deep-mind branch from 255f179 to 40c8bb5 Compare March 11, 2020 03:17
Comment thread programs/nodeos/main.cpp Resolved
@maoueh

maoueh commented Mar 11, 2020

Copy link
Copy Markdown
Contributor Author

This is ready for a new round of review.

Comment thread libraries/dm/log_appender.cpp Resolved
Comment thread programs/nodeos/main.cpp Resolved
Comment thread programs/nodeos/main.cpp Resolved
Comment thread unittests/resource_limits_test.cpp Resolved
Comment thread libraries/chain/apply_context.cpp Resolved
maoueh pushed a commit to dfuse-io/fc that referenced this pull request Mar 13, 2020
maoueh pushed a commit to dfuse-io/fc that referenced this pull request Mar 16, 2020
@maoueh
maoueh force-pushed the feature/deep-mind branch from b064e8d to 2c44f80 Compare March 16, 2020 02:12
@maoueh

maoueh commented Mar 16, 2020

Copy link
Copy Markdown
Contributor Author

This is ready for another review round.

maoueh pushed a commit to dfuse-io/fc that referenced this pull request Mar 17, 2020
Matthieu Vachon and others added 8 commits March 17, 2020 10:38
…ature_manager

- Those two managers now receives a getter that is able to retrieve a dm_logger instance,
  if enabled.
- Now using a constant for the abi serializer used in deep mind logging statements.
The `generic_ram_trace()` constructor can be used when new RAM calls are being implemented.
By using such constructor, it's easy to grep in the source code for all usage of it and
properly change the call site to a proper `ram_trace` object.
- Removal of dmlog macro, now using `fc_dlog` directly
- Put back deep mind logger in `initialize_logging`
- Unbuffered stdout is now performed only when initializing deep mind
@maoueh
maoueh force-pushed the feature/deep-mind branch from d146271 to f72589f Compare March 17, 2020 14:39
@maoueh

maoueh commented Mar 17, 2020

Copy link
Copy Markdown
Contributor Author

Pushed with latest changes @arhag @heifner

@maoueh

maoueh commented Mar 19, 2020

Copy link
Copy Markdown
Contributor Author

Updated to now merged deep mind branch on fc.

Comment thread libraries/chain/apply_context.cpp Resolved
Comment thread libraries/chain/controller.cpp Resolved
Comment thread programs/nodeos/main.cpp Resolved
@maoueh

maoueh commented Mar 20, 2020

Copy link
Copy Markdown
Contributor Author

@heifner @arhag New comments addressed.

@maoueh

maoueh commented Mar 25, 2020

Copy link
Copy Markdown
Contributor Author

Anything left to be done/changed here. Would like to get that out in the wild.

Comment thread libraries/chain/CMakeLists.txt Resolved
Comment thread unittests/resource_limits_test.cpp Resolved
Comment thread libraries/chain/controller.cpp Resolved

@arhag arhag left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@maoueh:

Please don't force push to the branch. It prevents doing incremental reviews to check if the requested changes were implemented correctly and forces a re-review of the whole PR at each iteration to ensure nothing was missed.

And along those same lines, please allow the reviewer to resolve the conversations they started (feel free to reply "Done" or something similar though) because it makes it easier for the reviewer to keep track of which of their requested changes they had already confirmed were properly addressed.

Comment thread libraries/chain/resource_limits.cpp Resolved
Comment thread libraries/chain/resource_limits.cpp Resolved
Comment thread libraries/chain/apply_context.cpp Resolved
Comment thread libraries/chain/apply_context.cpp Resolved
Comment thread libraries/chain/apply_context.cpp Resolved
Comment thread libraries/chain/apply_context.cpp Resolved
Comment thread libraries/chain/apply_context.cpp Resolved
@maoueh

maoueh commented Mar 27, 2020

Copy link
Copy Markdown
Contributor Author

@arhag Yeah indeed, I'm used to rebase my own branches, never realized it breaks this review flow. Will follow that as well as the Resolve Conversation comment. I'm sorry to give you more work.

Those are good comments.

@arhag

arhag commented Mar 27, 2020

Copy link
Copy Markdown
Contributor

@maoueh: No worries. Also, I forgot to mention: make sure to bring in the latest changes from the develop branch and resolve the existing merge conflicts.

@maoueh

maoueh commented Mar 27, 2020

Copy link
Copy Markdown
Contributor Author

@arhag Updated PR against your latest comments.

Comment thread plugins/chain_plugin/chain_plugin.cpp Resolved

@arhag arhag left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I also left a suggestion regarding ram_trace here: #8788 (comment).

And don't forget to address the option description as discussed here: #8788 (comment)

Comment thread libraries/chain/CMakeLists.txt Resolved
Matthieu Vachon added 2 commits March 27, 2020 18:16
- ram_trace change
- fixed deep-mind option description
- removed ABI serializer for block
- moved EOSIO_DEVELOPER to right location(s)
Comment thread plugins/chain_plugin/chain_plugin.cpp Resolved
Comment thread plugins/chain_plugin/chain_plugin.cpp Resolved
Comment thread libraries/chain/transaction_context.cpp Resolved
Comment thread libraries/chain/controller.cpp Resolved
Comment thread libraries/chain/apply_context.cpp Resolved
Comment thread libraries/chain/apply_context.cpp Resolved
Comment thread libraries/chain/apply_context.cpp Resolved
Comment thread libraries/chain/controller.cpp Resolved
Comment thread plugins/chain_plugin/chain_plugin.cpp Resolved
Matthieu Vachon added 3 commits April 8, 2020 22:36
- Added `maybe_to_variant_with_abi` so that ABI serialization for deep mind purposes is
  never failing, will now log as a warning the error exception and return the object
  untransformed.
- Fix some comments in the code.
We now use `abi_serializer_max_time_us` directly instead.
@arhag
arhag merged commit c271dd0 into EOSIO:develop Apr 10, 2020
@maoueh
maoueh deleted the feature/deep-mind branch April 10, 2020 15:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants