Skip to content

Commit

Permalink
set caller input
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarbu15 committed Jan 18, 2024
1 parent 55ade33 commit 6fbc2ba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 19 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/go_waku_daily.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go Waku Nightly Interop Tests
name: Go Waku Interop Tests

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -16,6 +16,4 @@ jobs:
with:
node1: "harbor.status.im/wakuorg/go-waku:latest"
node2: "harbor.status.im/wakuorg/go-waku:latest"



caller: "go"
3 changes: 0 additions & 3 deletions .github/workflows/interop_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,3 @@ jobs:
node1: ${{ inputs.node1 }}
node2: ${{ inputs.node2 }}
additional_nodes: ${{ inputs.additional_nodes }}



6 changes: 2 additions & 4 deletions .github/workflows/nim_waku_daily.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Nim Waku Nightly Interop Tests
name: Nim Waku Interop Tests

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -16,6 +16,4 @@ jobs:
with:
node1: "harbor.status.im/wakuorg/nwaku:latest"
node2: "harbor.status.im/wakuorg/nwaku:latest"



caller: "nim"
14 changes: 6 additions & 8 deletions .github/workflows/test_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ on:
description: "Additional optional nodes used in e2e tests, separated by ,"
type: string
default: "harbor.status.im/wakuorg/nwaku:latest,harbor.status.im/wakuorg/go-waku:latest,harbor.status.im/wakuorg/nwaku:latest"

caller:
required: false
description: "Workflow caller. Used in reporting"
type: string

env:
FORCE_COLOR: "1"
NODE_1: ${{ inputs.node1 }}
NODE_2: ${{ inputs.node2 }}
ADDITIONAL_NODES: ${{ inputs.additional_nodes }}
CALLER: ${{ inputs.caller || 'manual' }}

jobs:

Expand All @@ -43,12 +47,6 @@ jobs:

- run: pip install -r requirements.txt

- name: Echo names
run: |
echo "Job name is $GITHUB_JOB"
echo "How about1 ${{ github.jobs[github.job].name }}"
echo "How about2 ${{ github.job }}"
- name: Run tests
run: pytest -n 4 --reruns 1 --alluredir=allure-results

Expand Down Expand Up @@ -96,7 +94,7 @@ jobs:
- name: Send report to Discord
uses: rjstone/discord-webhook-notify@v1
if: always()
if: always() && env.CALLER != 'manual'
with:
severity: ${{ job.status == 'success' && 'info' || 'error' }}
username: ${{ github.workflow }}
Expand Down

0 comments on commit 6fbc2ba

Please sign in to comment.