File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed
actions/run-monitored-tmpnet-cmd Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,15 @@ description: 'Run the provided command in an environment configured to monitor t
3
3
4
4
inputs :
5
5
run :
6
- description : " the bash command to run"
6
+ description : " the bash script to run e.g. ./scripts/my-script.sh "
7
7
required : true
8
+ run_env :
9
+ description : ' a string containing env vars for the command e.g. "MY_VAR1=foo MY_VAR2=bar"'
10
+ default : ' '
8
11
filter_by_owner :
9
12
default : ' '
10
- artifact_name :
11
- default : ' tmpnet-data '
13
+ artifact_prefix :
14
+ default : ' '
12
15
prometheus_username :
13
16
required : true
14
17
prometheus_password :
65
68
FILTER_BY_OWNER : ${{ inputs.filter_by_owner }}
66
69
- name : Run command
67
70
shell : bash
68
- run : ${{ inputs.run }}
71
+ run : ${{ inputs.run_env }} ${{ inputs. run }}
69
72
env :
70
73
TMPNET_DELAY_NETWORK_SHUTDOWN : true # Ensure shutdown waits for a final metrics scrape
71
74
GH_REPO : ${{ inputs.repository_owner }}/${{ inputs.repository_name }}
78
81
uses : ./.github/actions/upload-tmpnet-artifact
79
82
if : always()
80
83
with :
81
- name : ${{ inputs.artifact_name }}
84
+ name : ${{ inputs.artifact_prefix }}-tmpnet-data
Original file line number Diff line number Diff line change 62
62
- name : Run e2e tests
63
63
uses : ./.github/actions/run-monitored-tmpnet-cmd
64
64
with :
65
- run : E2E_SERIAL=1 ./scripts/tests.e2e.sh
66
- artifact_name : e2e-tmpnet-data
65
+ run : ./scripts/tests.e2e.sh
66
+ run_env : E2E_SERIAL=1
67
+ artifact_prefix : e2e
67
68
filter_by_owner : avalanchego-e2e
68
69
prometheus_username : ${{ secrets.PROMETHEUS_ID || '' }}
69
70
prometheus_password : ${{ secrets.PROMETHEUS_PASSWORD || '' }}
84
85
- name : Run e2e tests with existing network
85
86
uses : ./.github/actions/run-monitored-tmpnet-cmd
86
87
with :
87
- run : E2E_SERIAL=1 ./scripts/tests.e2e.existing.sh
88
- artifact_name : e2e-existing-network-tmpnet-data
88
+ run : ./scripts/tests.e2e.existing.sh
89
+ run_env : E2E_SERIAL=1
90
+ artifact_prefix : e2e-existing-network
89
91
prometheus_username : ${{ secrets.PROMETHEUS_ID || '' }}
90
92
prometheus_password : ${{ secrets.PROMETHEUS_PASSWORD || '' }}
91
93
loki_username : ${{ secrets.LOKI_ID || '' }}
@@ -106,7 +108,7 @@ jobs:
106
108
uses : ./.github/actions/run-monitored-tmpnet-cmd
107
109
with :
108
110
run : ./scripts/tests.upgrade.sh
109
- artifact_name : upgrade-tmpnet-data
111
+ artifact_prefix : upgrade
110
112
prometheus_username : ${{ secrets.PROMETHEUS_ID || '' }}
111
113
prometheus_password : ${{ secrets.PROMETHEUS_PASSWORD || '' }}
112
114
loki_username : ${{ secrets.LOKI_ID || '' }}
You can’t perform that action at this time.
0 commit comments