Skip to content

Commit e2d13e7

Browse files
committed
Also recorded successes...
1 parent e69b165 commit e2d13e7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
- 2
1414
# - 3 # 3 generally seemed to be a bit slower? Could just be resource constraints though... (should try on k8s? :D)
1515
async:
16+
- 50
1617
- 80
1718
- 110
1819
- 140
@@ -69,10 +70,13 @@ jobs:
6970
echo "Start time: " $(cat start.out)
7071
echo "Stop time: " $(cat stop.out)
7172
let length=$(cat stop.out)-$(cat start.out)
73+
SUCCESSES=$(cat process.out | grep -o success | wc -l)
74+
echo "Successfull calls: " $SUCCESSES
7275
echo "Elapsed time: " $length
7376
echo "::set-output name=elapsed::$(echo ${length})"
77+
echo "::set-output name=successes::$(echo ${SUCCESSES})"
7478
# https://docs.github.com/en/rest/reference/checks#annotations-items
75-
echo "[{\"title\":\"${{ matrix.settings }} ${{ matrix.loads }} Async:${{ matrix.async }} Instances:${{ matrix.instances }}\",\"message\":\"Elapsed time: ${length}\",\"path\":\".github/workflows/test.yml\",\"start_line\":1,\"end_line\":1,\"annotation_level\":\"notice\"}]" > annotations.json
79+
echo "[{\"title\":\"${{ matrix.settings }} ${{ matrix.loads }} Async:${{ matrix.async }} Instances:${{ matrix.instances }}\",\"message\":\"Elapsed time: ${length} Successes: ${SUCCESSES}\",\"path\":\".github/workflows/test.yml\",\"start_line\":1,\"end_line\":1,\"annotation_level\":\"notice\"}]" > annotations.json
7680
- name: Annotate
7781
uses: kibalabs/github-action-create-annotations@main
7882
with:
@@ -85,4 +89,4 @@ jobs:
8589
webhook_key: "${{secrets.IFTTT_WEBHOOK_KEY}}"
8690
value1: ${{ github.ref }} ${{ github.run_id }} ${{ github.run_number }}
8791
value2: ${{ matrix.images }} ${{ matrix.settings }} ${{ matrix.loads }} ${{ matrix.sql }} ${{ matrix.async }} ${{ matrix.instances }}
88-
value3: ${{ steps.output-calc.outputs.elapsed }}
92+
value3: ${{ steps.output-calc.outputs.elapsed }} ${{ steps.output-calc.outputs.successes }}

0 commit comments

Comments
 (0)