@@ -52,12 +52,18 @@ inputs:
5252 # See https://github.com/stackabletech/stackable-cockpit/releases for latest version
5353 default : 1.1.0
5454outputs :
55- start-time :
55+ test- start-time :
5656 description : The date and time this integration test was started.
57- value : ${{ steps.start-time.outputs.START_TIME }}
58- end-time :
57+ value : ${{ steps.test- start-time.outputs.TEST_START_TIME }}
58+ test- end-time :
5959 description : The date and time this integration test finished.
60- value : ${{ steps.end-time.outputs.END_TIME }}
60+ value : ${{ steps.test-end-time.outputs.TEST_END_TIME }}
61+ cluster-start-time :
62+ description : The date and time this cluster was started.
63+ value : ${{ steps.cluster-start-time.outputs.CLUSTER_START_TIME }}
64+ cluster-end-time :
65+ description : The date and time this cluster was shut down.
66+ value : ${{ steps.cluster-end-time.outputs.CLUSTER_END_TIME }}
6167 health :
6268 description : The health of this integration test over the last few tries.
6369 value : ${{ steps.health.outputs.HEALTH }}
@@ -181,6 +187,12 @@ runs:
181187 mkdir ~/.kube
182188 echo "$KUBECONFIG" > ~/.kube/config
183189
190+ - name : Record Cluster Start Time
191+ id : cluster-start-time
192+ shell : bash
193+ run : |
194+ echo "CLUSTER_START_TIME=$(date +'%Y-%m-%dT%H:%M:%S')" | tee -a "$GITHUB_OUTPUT"
195+
184196 - name : Extract Operator Name
185197 id : extract_operator_name
186198 env :
@@ -267,10 +279,10 @@ runs:
267279 echo "::endgroup::"
268280
269281 - name : Record Test Start Time
270- id : start-time
282+ id : test- start-time
271283 shell : bash
272284 run : |
273- echo "START_TIME =$(date +'%Y-%m-%dT%H:%M:%S')" | tee -a "$GITHUB_OUTPUT"
285+ echo "TEST_START_TIME =$(date +'%Y-%m-%dT%H:%M:%S')" | tee -a "$GITHUB_OUTPUT"
274286
275287 - name : Run Integration Test
276288 id : integration-test
@@ -294,11 +306,11 @@ runs:
294306 python ./scripts/run-tests --skip-release --log-level debug --parallel "$BEKU_TEST_PARALLELISM" ${ARGS:-} | tee -a test-output.log
295307
296308 - name : Record Test End Time
297- id : end-time
309+ id : test- end-time
298310 if : always()
299311 shell : bash
300312 run : |
301- echo "END_TIME =$(date +'%Y-%m-%dT%H:%M:%S')" | tee -a "$GITHUB_OUTPUT"
313+ echo "TEST_END_TIME =$(date +'%Y-%m-%dT%H:%M:%S')" | tee -a "$GITHUB_OUTPUT"
302314
303315 - name : Destroy Replicated Cluster
304316 if : always()
@@ -310,6 +322,13 @@ runs:
310322 api-token : ${{ inputs.replicated-api-token }}
311323 cluster-id : ${{ steps.prepare-replicated-cluster.outputs.cluster-id }}
312324
325+ - name : Record Cluster End Time
326+ id : cluster-end-time
327+ if : always()
328+ shell : bash
329+ run : |
330+ echo "CLUSTER_END_TIME=$(date +'%Y-%m-%dT%H:%M:%S')" | tee -a "$GITHUB_OUTPUT"
331+
313332 - name : Extract Failed Tests
314333 id : failed-tests
315334 # The success() function is automatically used if no other status function is used.
0 commit comments