Repository navigation
e2e: Add multi-version support to generator - #9933
Conversation
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
| matrix: | ||
| group: ['00', '01', '02', '03', '04'] | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 60 |
There was a problem hiding this comment.
This is the same as in https://github.com/tendermint/tendermint/blob/main/.github/workflows/e2e-manual.yml (from which I derived this new workflow). It's also the same as in the nightlies: https://github.com/tendermint/tendermint/blob/main/.github/workflows/e2e-nightly-main.yml#L21
If we should change it, we should probably change it uniformly across all those workflows.
There was a problem hiding this comment.
This is minor, so if that's the value all over, I'd say let's leave it this way
| # Using "latest" will cause the generator to auto-detect the latest | ||
| # non-pre-release version tag in the current Git repository that is closest to | ||
| # the Tendermint version in this repository (as specified in | ||
| # ../../version/version.go). |
There was a problem hiding this comment.
Would it make sense to only consider the releases of the current git branch going backwards in time? (rather than all branches)
There was a problem hiding this comment.
Forget about this comment. I've been doing some research and some small experiments and what I'm suggesting is probably too complex, along the lines of implementing git describe (example here)
Signed-off-by: Thane Thomson <[email protected]>
…pand on examples Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Co-authored-by: Sergio Mena <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
Signed-off-by: Thane Thomson <[email protected]>
…34) (#9935) * 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: Replace "HEAD" keyword with "local" Also add the version weighting printout when generating a testnet for informational purposes. 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]> * 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]>
* 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
#220) * e2e: Add multi-version support to generator (tendermint#9933) * 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 * Resolve conflicts Signed-off-by: Thane Thomson <[email protected]> * Applied renaming to README * Apply suggestions from code review Co-authored-by: Thane Thomson <[email protected]> --------- Signed-off-by: Thane Thomson <[email protected]> Co-authored-by: Thane Thomson <[email protected]>
Closes #9928
This only adds a CI job for now that we can trigger manually via GitHub Actions. We can automate this once we've proven it works in CI. It seems to work locally.
It does, however, rely on the
tendermint/e2e-nodeDocker images for the relevant versions you want to run being available locally or via Docker Hub.This PR should be able to be automatically backported to v0.37, and #9935 manually backports this to v0.34.
PR checklist
CHANGELOG_PENDING.mdupdated, or no changelog entry neededdocs/) and code comments, or nodocumentation updates needed