-
Notifications
You must be signed in to change notification settings - Fork 734
evm tracing #2716
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
Merged
Merged
evm tracing #2716
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4b4e65b
evm tracing
ermalkaleci 83a3489
Merge branch 'master' of github.com:AcalaNetwork/Acala into evm-tracing
ermalkaleci 81f728c
fix after merge
ermalkaleci 2894845
featured api
ermalkaleci f32b749
update trace event order
ermalkaleci 2fc9f3c
update tarpaulin
ermalkaleci a57de4f
single thread test
ermalkaleci b6435ee
Revert "single thread test"
ermalkaleci c669c1e
Merge branch 'master' of github.com:AcalaNetwork/Acala into evm-tracing
ermalkaleci 4942ab0
gh action to build tracing runtime
ermalkaleci e29df41
deps cleanup
ermalkaleci 595b931
update gh action
ermalkaleci c0fbdc7
use single tracer
ermalkaleci 04d23ce
tracer test
ermalkaleci File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: Build and publish evm tracing runtime | ||
| on: | ||
| release: | ||
| types: [published] | ||
| # Allow manual trigger for old releases | ||
| workflow_dispatch: | ||
| inputs: | ||
| # Branch with old release + tracing feature | ||
| branch: | ||
| description: Branch to build tracing runtime | ||
| required: true | ||
| type: string | ||
| # Set the tag to publish the tracing runtime | ||
| tag: | ||
| description: Existing tag to publish tracing runtime. i.e. 1.0.0 | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| build-runtime: | ||
| name: "Build evm tracing runtime ${{ matrix.network }}" | ||
| permissions: | ||
| contents: write | ||
| runs-on: [self-hosted, linux] | ||
| strategy: | ||
| matrix: | ||
| network: [karura, acala] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.event.inputs.branch || github.ref }} | ||
| submodules: recursive | ||
| - name: Install toolchain | ||
| uses: dtolnay/rust-toolchain@nightly | ||
| - name: Setup cmake | ||
| uses: jwlawson/actions-setup-cmake@v1.13 | ||
| - name: Install subwasm ${{ env.SUBWASM_VERSION }} | ||
| run: | | ||
| wget https://github.com/chevdor/subwasm/releases/download/v${{ env.SUBWASM_VERSION }}/subwasm_linux_amd64_v${{ env.SUBWASM_VERSION }}.deb | ||
| sudo dpkg -i subwasm_linux_amd64_v${{ env.SUBWASM_VERSION }}.deb | ||
| subwasm --version | ||
| - name: Build | ||
| run: make build-wasm-${{ matrix.network }}-tracing | ||
| - name: Find spec version | ||
| run: | | ||
| SPEC_VERSION=`subwasm version -j target/production/wbuild/${{ matrix.network }}-runtime/${{ matrix.network }}_runtime.compact.compressed.wasm | jq .specVersion` | ||
| cp target/production/wbuild/${{ matrix.network }}-runtime/${{ matrix.network }}_runtime.compact.compressed.wasm > ${{ matrix.network }}_runtime_tracing_$SPEC_VERSION.compact.compressed.wasm | ||
| echo "SPEC_VERSION=$SPEC_VERSION" >> $GITHUB_ENV | ||
| - name: Upload tracing runtime | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| tag_name: ${{ github.event.inputs.tag }} | ||
| files: ${{ matrix.network }}_runtime_tracing_${{ env.SPEC_VERSION }}.compact.compressed.wasm | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,3 +20,4 @@ std = [ | |
| "sp-core/std", | ||
| "primitives/std", | ||
| ] | ||
| tracing = ["primitives/tracing"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.