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

Specify topology for n-ary chain tests #4039

Merged
merged 15 commits into from
Jun 14, 2024

Conversation

ljoss17
Copy link
Contributor

@ljoss17 ljoss17 commented Jun 12, 2024

Closes: #4038

Description

This PR refactors the bootstrapping of n-ary chain tests in order to use the specified topology. Only linear and fully connected are currently supported, and if the topology is not specified the linear one is used.

This also facilitates the implementation of new topologies if required.


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).
  • Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

Copy link
Member

@romac romac left a comment

Choose a reason for hiding this comment

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

Amazing! Left some nitpicks inline already, feel free to disregard if you had other plans in mind.

@ljoss17 ljoss17 marked this pull request as ready for review June 13, 2024 12:25
@romac
Copy link
Member

romac commented Jun 14, 2024

Excellent work! Any insights on how much time this buys us on CI?

@ljoss17
Copy link
Contributor Author

ljoss17 commented Jun 14, 2024

The test which received the most impact is the packet forward test:

  • Gaia went from 1h30 to 1h11
  • Juno went from 1h31 to 1h06
  • Injective went from 1h18 to 58min

The other chains went down a few minutes only as the other main test impacted is the ternary_transfer

The remaining very long job is for simapp v8, as it runs the highest number of tests, 86 tests but does not run forward tests. So it went down only from 1h31 to 1h25.

@ljoss17 ljoss17 added this pull request to the merge queue Jun 14, 2024
Merged via the queue into master with commit 8da7082 Jun 14, 2024
25 checks passed
@ljoss17 ljoss17 deleted the luca_joss/test-framework-add-topology branch June 14, 2024 12:52
@romac
Copy link
Member

romac commented Jun 14, 2024

Very nice, thanks for the report :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow specifying the topology used for Hermes tests
2 participants