Skip to content

Commit a2121b0

Browse files
clee2000mori360
authored andcommitted
Binary upload checksum (pytorch#144887)
Equivalent to pytorch/test-infra#6172 but for pytorch Pull Request resolved: pytorch#144887 Approved by: https://github.com/atalman
1 parent bff9921 commit a2121b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.circleci/scripts/binary_upload.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ s3_upload() {
5858
for pkg in ${PKG_DIR}/*.${extension}; do
5959
(
6060
set -x
61-
${AWS_S3_CP} --no-progress --acl public-read "${pkg}" "${s3_upload_dir}"
61+
shm_id=$(sha256sum "${pkg}" | awk '{print $1}')
62+
${AWS_S3_CP} --no-progress --acl public-read "${pkg}" "${s3_upload_dir}" \
63+
--metadata "checksum-sha256=${shm_id}"
6264
)
6365
done
6466
)

0 commit comments

Comments
 (0)