Skip to content

Commit 991377d

Browse files
author
aehnh
committed
add more randomness to logstream name
1 parent 7db7bf0 commit 991377d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ jobs:
120120
AWS_REGION: ${{ secrets.AWS_REGION }}
121121
run: |
122122
TIMESTAMP=$(date +%s000)
123-
echo "LOG_STREAM_NAME=javascript-$TIMESTAMP" >> $GITHUB_ENV
124-
aws logs create-log-stream --log-group-name "test-results-board" --log-stream-name "javascript-$TIMESTAMP"
123+
RANDOM_SUFFIX=$(head /dev/urandom | tr -dc a-z0-9 | head -c 6)
124+
LOG_STREAM_NAME="javascript-${TIMESTAMP}-${RANDOM_SUFFIX}"
125+
echo "LOG_STREAM_NAME=$LOG_STREAM_NAME" >> $GITHUB_ENV
126+
aws logs create-log-stream --log-group-name "test-results-board" --log-stream-name "$LOG_STREAM_NAME"
125127
126128
- name: Run ${{ matrix.testType }} tests for react
127129
working-directory: packages/tests-e2e

0 commit comments

Comments
 (0)