Skip to content

Commit

Permalink
tests: tag e2e test data with commit hash (#4481)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiqizng authored Aug 29, 2022
1 parent 675604a commit 9e4e84c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/scripts/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ if [ -z "$E2E_TEST_FILTER" ] || [ "$E2E_TEST_FILTER" == "SCRIPTS" ]; then
RSTAMP=$(TZ=UTC python -c 'import time; print("{:08x}".format(0xffffffff - int(time.time() - time.mktime((2020,1,1,0,0,0,-1,-1,-1)))))')
echo aws s3 cp --acl public-read "${TEMPDIR}/${CI_E2E_FILENAME}.tar.bz2" "s3://algorand-testdata/indexer/e2e4/${RSTAMP}/${CI_E2E_FILENAME}.tar.bz2"
aws s3 cp --acl public-read "${TEMPDIR}/${CI_E2E_FILENAME}.tar.bz2" "s3://algorand-testdata/indexer/e2e4/${RSTAMP}/${CI_E2E_FILENAME}.tar.bz2"
# get git commit hash
COMMIT_HASH=$(git rev-parse --short HEAD)
echo aws s3 cp --acl public-read "${TEMPDIR}/${CI_E2E_FILENAME}.tar.bz2" "s3://algorand-testdata/indexer/e2e4/${COMMIT_HASH}/${CI_E2E_FILENAME}.tar.bz2"
aws s3 cp --acl public-read "${TEMPDIR}/${CI_E2E_FILENAME}.tar.bz2" "s3://algorand-testdata/indexer/e2e4/${COMMIT_HASH}/${CI_E2E_FILENAME}/.tar.bz2"
popd
fi

Expand Down

0 comments on commit 9e4e84c

Please sign in to comment.