Skip to content

Commit

Permalink
Don't run nightly e2e job (cosmos#4546)
Browse files Browse the repository at this point in the history
* Fix nightly e2e run failure.

* use empty default for image.

* Don't run nightly.

* Dont use input/output vars if defaults are to be used.

---------

Co-authored-by: srdtrk <59252793+srdtrk@users.noreply.github.com>
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 11, 2023
1 parent 23eabb5 commit ec3166d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/e2e-test-workflow-call.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ on:
description: 'The upgrade plan name'
required: false
type: string
relayer-image:
description: 'The image to use for the relayer'
required: false
default: '' # the tests themselves will choose a sensible default when unset.
type: string
relayer-type:
description: 'The type of relayer to use'
required: false
Expand Down Expand Up @@ -84,6 +89,7 @@ jobs:
echo "Chain B Tag: ${{ inputs.chain-b-tag }}"
echo "Chain Upgrade Tag: ${{ inputs.chain-upgrade-tag }}"
echo "Upgrade Plan Name: ${{ inputs.upgrade-plan-name }}"
echo "Relayer Image:" ${{ inputs.relayer-image }}
echo "Relayer Type: ${{ inputs.relayer-type }}"
echo "Relayer Tag: ${{ inputs.relayer-tag }}"
echo "Test Entry Point: ${{ inputs.test-entry-point }}"
Expand Down Expand Up @@ -158,6 +164,7 @@ jobs:
CHAIN_IMAGE: '${{ inputs.chain-image }}'
CHAIN_A_TAG: '${{ inputs.chain-a-tag }}'
CHAIN_B_TAG: '${{ inputs.chain-b-tag }}'
RELAYER_IMAGE: '${{ inputs.relayer-image }}'
RELAYER_TAG: '${{ inputs.relayer-tag }}'
RELAYER_TYPE: '${{ inputs.relayer-type }}'
CHAIN_BINARY: '${{ inputs.chain-binary }}'
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
# The Tests / E2E workflow is used to run end-to-end tests on pull requests originating
# from the ibc-go repository. The workflow is triggered on a PR opening, when new commits
# are pushed to the PR, or when the PR is marked ready for review.
#
# A scheduled job is also set up to run every night. This job is used to run e2e tests
# using the hermes relayer.
name: Tests / E2E
on:
# This schedule is used solely for hermes and is set to run every night.
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
pull_request:
types:
Expand All @@ -31,9 +25,6 @@ jobs:
runs-on: ubuntu-latest
outputs:
simd-tag: ${{ steps.get-tag.outputs.simd-tag }}
# Temporarily, see: https://github.com/cosmos/ibc-go/issues/3981
relayer: ${{ steps.get-relayer.outputs.relayer }}
relayer-tag: ${{ steps.get-relayer.outputs.relayer-tag }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
Expand All @@ -49,18 +40,6 @@ jobs:
echo "Using tag $tag"
echo "simd-tag=$tag" >> $GITHUB_OUTPUT
fi
# get-relayer will return either hermes or rly depending on whether the workflow was triggered
# by a scheduled run or not.
- id: get-relayer
run: |
if [ "${{ github.event_name }}" == "schedule" ]
then
echo "relayer=rly" >> $GITHUB_OUTPUT
echo "relayer-tag=colin-event-fix" >> $GITHUB_OUTPUT
else
echo "relayer=hermes" >> $GITHUB_OUTPUT
echo "relayer-tag=v1.6.0" >> $GITHUB_OUTPUT
fi
# build-e2e ensures that all test code compiles.
build-e2e:
if: ${{ !github.event.pull_request.draft && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
Expand Down Expand Up @@ -105,6 +84,3 @@ jobs:
chain-binary: 'simd'
# on regular PRs we won't run interchain account or upgrade tests.
test-exclusions: 'TestInterTxTestSuite,TestIncentivizedInterTxTestSuite,TestUpgradeTestSuite'
# Temporarily, see: https://github.com/cosmos/ibc-go/issues/3981
relayer-type: '${{ needs.determine-image-tag.outputs.relayer }}'
relayer-tag: '${{ needs.determine-image-tag.outputs.relayer-tag }}'

0 comments on commit ec3166d

Please sign in to comment.