Skip to content

Commit

Permalink
Merge branch 'main' into 783-add-debug_traceTransaction-with-opcode-l…
Browse files Browse the repository at this point in the history
…ogger-tests

# Conflicts:
#	package.json
  • Loading branch information
natanasow committed Jul 12, 2024
2 parents 5ddb967 + 8865452 commit f5e3a1b
Show file tree
Hide file tree
Showing 124 changed files with 2,814 additions and 255 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/migration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ on:

jobs:
check:
name: Migration testing (${{ inputs.preMigrationTestTags }}/${{ inputs.postMigrationTestTags }}) with initial N:${{ inputs.initialNetworkNodeTag }}, M:${{ inputs.initialMirrorNodeTag }}, R:${{ inputs.initialRelayTag }} and
name:
Migration testing (${{ inputs.preMigrationTestTags }}/${{ inputs.postMigrationTestTags }}) with initial N:${{ inputs.initialNetworkNodeTag }}, M:${{ inputs.initialMirrorNodeTag }}, R:${{ inputs.initialRelayTag }} and
target N:${{ inputs.targetNetworkNodeTag }}, M:${{ inputs.targetMirrorNodeTag }}, R:${{ inputs.targetRelayTag }}
runs-on: [self-hosted, Linux, large, ephemeral]
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/solidity-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
runs-on: [self-hosted, Linux, large, ephemeral]
steps:
- name: Download Test Reports
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: Test Results

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
runs-on: [self-hosted, Linux, large, ephemeral]
steps:
- name: Download Test Reports
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: Test Results

Expand Down
50 changes: 26 additions & 24 deletions .github/README.md → .github/workflows_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ When there is a new version released, no matter if it is network-node, mirror-no
Another concern with switching the network node's versions is "the migration" that is running under the hood. It occurs every time a node has been started and detects if there is data for migration. The migration testing workflow offers this type of testing where we can choose versions for pre/post image tags.

Available workflow inputs are:

- **initialNetworkNodeTag** - Specify the initial Network Node image tag
- **initialMirrorNodeTag** - Specify the initial Mirror Node image tag
- **initialRelayTag** - Specify the initial Relay image tag
Expand All @@ -21,33 +22,34 @@ Available workflow inputs are:
- **postMigrationTestTags** - Specify the post-migration test tags. Default: @post-migration. It could be every tag we want (e.g. **@OZERC20**)

Examples:

- if we want to test possible state corruption between mono and mod versions, we could use a setup like this:
- initialNetworkNodeTag: 0.48.1 # last tag for mono module
- initialMirrorNodeTag: 0.103.0
- initialRelayTag: 0.47.0
- targetNetworkNodeTag: 0.49.7 # first stable tag for modular module
- targetMirrorNodeTag: 0.103.0
- targetRelayTag: 0.47.0
- preMigrationTestTags: @pre-migration
- postMigrationTestTags: @post-migration
- initialNetworkNodeTag: 0.48.1 # last tag for mono module
- initialMirrorNodeTag: 0.103.0
- initialRelayTag: 0.47.0
- targetNetworkNodeTag: 0.49.7 # first stable tag for modular module
- targetMirrorNodeTag: 0.103.0
- targetRelayTag: 0.47.0
- preMigrationTestTags: @pre-migration
- postMigrationTestTags: @post-migration
- if we want to check for regressions on @OZERC20 suite after the relay's version update, we could use a setup like this:
- initialNetworkNodeTag: 0.49.7
- initialMirrorNodeTag: 0.104.0
- initialRelayTag: 0.47.0
- targetNetworkNodeTag: 0.49.7
- targetMirrorNodeTag: 0.104.0
- targetRelayTag: 0.48.0
- preMigrationTestTags: @OZERC20
- postMigrationTestTags: @OZERC20
- initialNetworkNodeTag: 0.49.7
- initialMirrorNodeTag: 0.104.0
- initialRelayTag: 0.47.0
- targetNetworkNodeTag: 0.49.7
- targetMirrorNodeTag: 0.104.0
- targetRelayTag: 0.48.0
- preMigrationTestTags: @OZERC20
- postMigrationTestTags: @OZERC20
- if we want to simulate the mirror node's version update, we could use a setup like this:
- initialNetworkNodeTag: 0.49.7
- initialMirrorNodeTag: 0.103.0
- initialRelayTag: 0.47.0
- targetNetworkNodeTag: 0.49.7
- targetMirrorNodeTag: 0.104.0
- targetRelayTag: 0.47.0
- preMigrationTestTags: @pre-migration
- postMigrationTestTags: @post-migration
- initialNetworkNodeTag: 0.49.7
- initialMirrorNodeTag: 0.103.0
- initialRelayTag: 0.47.0
- targetNetworkNodeTag: 0.49.7
- targetMirrorNodeTag: 0.104.0
- targetRelayTag: 0.47.0
- preMigrationTestTags: @pre-migration
- postMigrationTestTags: @post-migration

The testing matrix offers pretty big coverage as we can see. All options and combinations rely on us, and what's our end goal.

Expand Down
23 changes: 10 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,14 @@ artifacts/build-info
artifacts/@openzeppelin
artifacts/contracts/**/**/*.dbg.json

!artifacts/contracts/precompile
artifacts/contracts/precompile/*
!artifacts/contracts/precompile/exchange-rate
!artifacts/contracts/precompile/pseudo-random-number-generator
!artifacts/contracts/precompile/hedera-token-service
artifacts/contracts/precompile/hedera-token-service/*
!artifacts/contracts/precompile/hedera-token-service/examples
!artifacts/contracts/precompile/hedera-token-service/IHRC719.sol

# !artifacts/contracts/hts-precompile
# artifacts/contracts/hts-precompile/*
# !artifacts/contracts/hts-precompile/examples
# !artifacts/contracts/hts-precompile/IHRC719.sol
!artifacts/contracts/system-contracts
artifacts/contracts/system-contracts/*
!artifacts/contracts/system-contracts/exchange-rate
!artifacts/contracts/system-contracts/pseudo-random-number-generator
!artifacts/contracts/system-contracts/hedera-token-service
artifacts/contracts/system-contracts/hedera-token-service/*
!artifacts/contracts/system-contracts/hedera-token-service/examples
!artifacts/contracts/system-contracts/hedera-token-service/IHRC719.sol

!artifacts/contracts/exchange-rate-precompile
artifacts/contracts/exchange-rate-precompile/*
Expand Down Expand Up @@ -61,3 +56,5 @@ coverage/
## --- Hardhat Gitignore for Foundry artifacts ---
artifacts/forge-std
artifacts/ds-test
test/state-registry/states.json
test/state-registry/ercStates.json
Loading

0 comments on commit f5e3a1b

Please sign in to comment.