Skip to content

Commit

Permalink
fix(ci): specify explicit aws cli version on "release-artifacts" job (#…
Browse files Browse the repository at this point in the history
…5141)

* fix(ci): specify explicit aws cli version on "release-artifacts" job

* fix(ci): specify explicit aws cli version 1.36.40 on "release-artifacts" job

* chore: inline action

* ci: activate venv in AWS uploads

* ci: activate venv in AWS upload script

---------

Co-authored-by: jkomyno <[email protected]>
Co-authored-by: Jacek Malec <[email protected]>
  • Loading branch information
3 people authored Jan 28, 2025
1 parent bb2e767 commit 27445f5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/utils/uploadAndVerify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -eux;

AWS_CLI_VERSION=1.36.40

python -m venv .venv
source .venv/bin/activate
pip install awscli==$AWS_CLI_VERSION

# engines-artifacts-for-r2
# engines-artifacts-for-s3
LOCAL_DIR_PATH=$1
Expand Down Expand Up @@ -48,17 +54,17 @@ if [ "$FILECOUNT_FOR_SIG" -eq 0 ]; then
fi

# Manual check
#
#
# Set PROD env vars
# mkdir engines-artifacts-from-prod
# Download the artifacts from the S3 bucket
# aws s3 sync s3://prisma-builds/all_commits/6f3b8db04fa234ab2812fdd27456e9d9590eedb1 engines-artifacts-from-prod/
# Print the files and save the output to a file
# cd engines-artifacts-from-prod
# find . | sort > ../expectedFiles.txt
#
#
# cd ..
#
#
# Set DEV env vars
# mkdir engines-artifacts-from-dev
# Download the artifacts from the S3 bucket
Expand Down Expand Up @@ -107,11 +113,11 @@ fi
FILES_TO_VALIDATE_WITH_LDD=$(find . -type f | grep -E "./(rhel|debian)-openssl-(3.0|1.1).*(query-engine|schema-engine|libquery_engine.so.node)$")
echo "FILES_TO_VALIDATE_WITH_LDD: $FILES_TO_VALIDATE_WITH_LDD"

for filename in $FILES_TO_VALIDATE_WITH_LDD
do
for filename in $FILES_TO_VALIDATE_WITH_LDD
do
echo "Validating libssl linking for $filename."
GREP_OUTPUT=$(ldd "$filename" | grep "libssl")
OUTPUT=$(echo "$GREP_OUTPUT" | cut -f2 | cut -d'.' -f1)
OUTPUT=$(echo "$GREP_OUTPUT" | cut -f2 | cut -d'.' -f1)

if [[ "$OUTPUT" == "libssl" ]]; then
echo "Linux build linked correctly to libssl."
Expand Down

0 comments on commit 27445f5

Please sign in to comment.