-
Notifications
You must be signed in to change notification settings - Fork 326
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
Allowing different chain binaries for integration tests #2909
Allowing different chain binaries for integration tests #2909
Conversation
…length and added test between Gaia6 and Gaia7
…of same length and added test between Gaia6 and Gaia7" This reverts commit be0a746.
…multi version CI integration tests
.github/workflows/integration.yaml
Outdated
fail-fast: false | ||
matrix: | ||
package1: [.#gaia6, .#gaia7, .#gaia8, .#ibc-go-v2-simapp, .#ibc-go-v3-simapp, .#ibc-go-v4-simapp, .#ibc-go-v5-simapp, .#ibc-go-v6-simapp, .#wasmd, .#evmos, .#osmosis] | ||
package2: [.#gaia6, .#gaia7, .#gaia8, .#ibc-go-v2-simapp, .#ibc-go-v3-simapp, .#ibc-go-v4-simapp, .#ibc-go-v5-simapp, .#ibc-go-v6-simapp, .#wasmd, .#evmos, .#osmosis] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could make it a matrix of dictionaries. Something like:
matrix:
first-package:
- package: gaia6
chain_command_path: gaiad
account_prefix: cosmos
Then we don't need the exclude
list below.
Btw I am not quite sure why we need to specify the .#
prefix everywhere here. It might be simpler to write it as nix shell .#${{ matrix.first_package.package }}
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see good idea thank you.
The prefix .#
is from an earlier solution, it is not needed anymore I will remove it
…st. Removed unncessary .# prefix
…thub.com:informalsystems/hermes into luca_joss/different-chains-for-integration-tests
@@ -114,6 +114,123 @@ jobs: | |||
test -p ibc-integration-test --no-fail-fast -- \ | |||
--nocapture --test-threads=2 | |||
|
|||
multi-chains-test: | |||
runs-on: ubuntu-latest | |||
if: github.ref == 'refs/heads/master' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we comment this to test on this branch, and then uncomment it again before merging once this pass?
Closes: #2003
Description
This PR changes the environment variables
CHAIN_COMMAND_PATH
andACCOUNT_PREFIX
toCHAIN_COMMAND_PATHS
andACCOUNT_PREFIXES
which now take a coma separated list of string. This means that the old format still works. e.g.:Which will run all tests with
gaia8
.But a new format is available, e.g.:
Which will run single chain tests with
gaia8
, binary chain tests withgaia8 <-> evmos
and N-ary chain tests will have alternatinggaia8
andevmos
chains.New CI job
The new CI job,
multi-chains-test
, which runs the tests with all combinations of chains can be seen here https://github.com/informalsystems/hermes/actions/runs/3628936071/jobs/6120570278PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.