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

CI: Tag-based integration test requests #1650

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 51 additions & 4 deletions .github/workflows/applications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -725,16 +725,22 @@ jobs:
# ########################################################################## #
# Trigger Integration Tests Run

# Tag check to see how we run these
integration-tests:
name: Run Integration Tests from remote repo
needs: [ config, docker-image ]
name: Integration test suite
needs: [ config, docker-image ]
runs-on: ubuntu-latest

env:
GIT_SHA_SHORT: ${{ needs.config.outputs.git-sha-short }}

steps:
- name: Start remote integration tests
- uses: mukunku/[email protected]
id: tagcheck-needs-it
with:
tag: 'needs-integration-tests'

- name: Devnet integration test suite
uses: aurelien-baudet/workflow-dispatch@93e95b157d791ae7f42aef8f8a0d3d723eba1c31
with:
workflow: Integration Tests on devnet chain
Expand All @@ -743,5 +749,46 @@ jobs:
ref: refs/heads/master
repo: kadena-io/integration-tests
display-workflow-run-url: true
wait-for-completion: false # here you could make this pipeline wait them out
wait-for-completion: ${{ steps.tagcheck-needs-it.outputs.exists == 'true' }}

mainnet-replay:
name: Mainnet pact history replay
needs: [ config, docker-image ]
runs-on: ubuntu-latest

env:
GIT_SHA_SHORT: ${{ needs.config.outputs.git-sha-short }}

steps:

- uses: mukunku/[email protected]
id: tagcheck-wants-replay
with:
tag: 'wants-replay'
- uses: mukunku/[email protected]
id: tagcheck-needs-replay
with:
tag: 'needs-replay'

- name: Full mainnet replay
if: ${{ steps.tagcheck-wants-replay.outputs.exists == 'true' }}
uses: aurelien-baudet/workflow-dispatch@93e95b157d791ae7f42aef8f8a0d3d723eba1c31
with:
workflow: Mainnet Pact Replay
token: ${{ secrets.GH_WORKFLOW_PAT_FOR_TESTS }}
inputs: '{ "chainweb_node_container_id" : "sha-${{ needs.config.outputs.git-sha-short }}" }'
ref: refs/heads/master
repo: kadena-io/integration-tests
display-workflow-run-url: true
wait-for-completion: ${{ steps.tagcheck-needs-replay.outputs.exists == 'true' }}


#
# integration-tests:
# name: Run devnet integration tests
# needs: [ config, docker-image ]
# uses: kadena-io/integration-tests/.github/workflows/run_all_devnet_integration_tests.yml@master
# with:
# chainweb_node_container_id: '{ "chainweb_node_container_id" : "sha-${{ needs.config.outputs.git-sha-short }}" }'
# secrets: inherit
#