Skip to content

Commit 2e78e01

Browse files
authored
Properly name the regular/remote leg tests (apache#56859)
GitHub action uses name derived from the composit workflow not from running workflow, so we must pass the name of tests down as input parameter to be able to distinguish the two test types by name.
1 parent 1887b04 commit 2e78e01

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/additional-prod-image-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ jobs:
196196
name: "Test e2e integration tests with PROD image"
197197
uses: ./.github/workflows/airflow-e2e-tests.yml
198198
with:
199+
workflow-name: "Regular e2e test"
199200
runners: ${{ inputs.runners }}
200201
platform: ${{ inputs.platform }}
201202
default-python-version: "${{ inputs.default-python-version }}"
@@ -205,6 +206,7 @@ jobs:
205206
name: "Remote logging tests with PROD image"
206207
uses: ./.github/workflows/airflow-e2e-tests.yml
207208
with:
209+
workflow-name: "Remote logging e2e test"
208210
runners: ${{ inputs.runners }}
209211
platform: ${{ inputs.platform }}
210212
default-python-version: "${{ inputs.default-python-version }}"

.github/workflows/airflow-e2e-tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ permissions:
2424
on: # yamllint disable-line rule:truthy
2525
workflow_dispatch:
2626
inputs:
27+
workflow-name:
28+
description: "Name of the test"
29+
type: string
30+
required: true
2731
runners:
2832
description: "The array of labels (in json form) determining runners."
2933
type: string
@@ -51,6 +55,10 @@ on: # yamllint disable-line rule:truthy
5155

5256
workflow_call:
5357
inputs:
58+
workflow-name:
59+
description: "Name of the test"
60+
type: string
61+
required: true
5462
runners:
5563
description: "The array of labels (in json form) determining runners."
5664
required: true
@@ -79,7 +87,7 @@ on: # yamllint disable-line rule:truthy
7987
jobs:
8088
test-e2e-integration-tests:
8189
timeout-minutes: 60
82-
name: "Test e2e integration tests with PROD image"
90+
name: ${{ inputs.name }}
8391
runs-on: ${{ fromJSON(inputs.runners) }}
8492
env:
8593
PYTHON_MAJOR_MINOR_VERSION: "${{ inputs.default-python-version }}"

0 commit comments

Comments
 (0)