Skip to content

e2e: Add multi-version support to generator (backport #9933) - #220

Merged
jmalicevic merged 6 commits into
v0.37.xfrom
mergify/bp/v0.37.x/pr-9933
Jan 27, 2023
Merged

jmalicevic merged 6 commits into
v0.37.xfrom
mergify/bp/v0.37.x/pr-9933

Conversation

@jmalicevic

Copy link
Copy Markdown
Collaborator

This is a backport of tendermint/tendermint#9933.

thanethomson and others added 4 commits December 21, 2022 22:06
* ci: Add missing group to manual E2E workflow

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Improve help for multi-version CLI param

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Rename multiversion to multiVersion

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Extract generator params into struct

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Add support for more than 2 versions in multi-version tests

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Add generator logic to extract latest release tag from Git repo

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Cater for "dev-" prefixes in tags

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Add sophisticated weighted version parsing to generator

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Add note to E2E readme about multi-version testing

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Expand on Docker image comment in readme

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Print node version weights when generating testnets

Signed-off-by: Thane Thomson <[email protected]>

* ci: Add manual E2E workflow to run multi-version tests

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Replace "HEAD" keyword with "local"

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Update readme to reflect "HEAD" -> "local" keyword change and expand on examples

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Clarify comment relating to Docker image versions

Signed-off-by: Thane Thomson <[email protected]>

* Apply suggestions from code review

Co-authored-by: Sergio Mena <[email protected]>

* e2e: Skip invalid tags instead of erroring in generator

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Add comment in version selection code

Signed-off-by: Thane Thomson <[email protected]>

* ci: Replace "HEAD" with "local" keyword in multiversion workflow

Signed-off-by: Thane Thomson <[email protected]>

* e2e: Use error format specifier when returning wrapped error

Signed-off-by: Thane Thomson <[email protected]>

Signed-off-by: Thane Thomson <[email protected]>
Co-authored-by: Sergio Mena <[email protected]>
(cherry picked from commit 188069b)

# Conflicts:
#	go.mod
#	go.sum
Signed-off-by: Thane Thomson <[email protected]>
@jmalicevic
jmalicevic requested a review from a team as a code owner January 27, 2023 08:23

@thanethomson thanethomson 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.

Just some suggestions relating to renaming to CometBFT. Thanks for backporting this!

Comment thread test/e2e/README.md Resolved
Comment thread test/e2e/generator/generate.go Resolved
Comment thread test/e2e/generator/generate.go Resolved
@jmalicevic jmalicevic self-assigned this Jan 27, 2023
@jmalicevic
jmalicevic merged commit fcf33b8 into v0.37.x Jan 27, 2023
@jmalicevic
jmalicevic deleted the mergify/bp/v0.37.x/pr-9933 branch January 27, 2023 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants