From 5667845c7fd5ede20ac8cd0865d93499a6d5a572 Mon Sep 17 00:00:00 2001 From: bhargavi-ct Date: Wed, 13 May 2026 12:29:32 +0530 Subject: [PATCH 1/3] Update Manual Reports to S3 workflow inorder to work with large files Signed-off-by: bhargavi-ct --- .github/workflows/manual_reports_to_s3.yml | 28 +++++++++++++++++----- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/manual_reports_to_s3.yml b/.github/workflows/manual_reports_to_s3.yml index 41480d063a..196e4c3b2a 100644 --- a/.github/workflows/manual_reports_to_s3.yml +++ b/.github/workflows/manual_reports_to_s3.yml @@ -70,38 +70,54 @@ jobs: - name: Download report run: | + pip install gdown + # Handle Google Drive links if [[ "${{ inputs.drive_link }}" == *"drive.google.com"* ]]; then - FILE_ID=$(echo "${{ inputs.drive_link }}" | sed -n -e 's/^.*d\/\([^\/]*\)\/.*$/\1/p') - curl -L -o allure-report.zip "https://drive.google.com/uc?export=download&id=${FILE_ID}" || { + + FILE_ID=$(echo "${{ inputs.drive_link }}" | sed -n 's#.*\/d\/\([^/]*\)\/.*#\1#p') + + echo "Downloading Google Drive file: $FILE_ID" + + gdown --id "$FILE_ID" -O allure-report.zip || { echo "::error::Failed to download from Google Drive" exit 1 } + # Handle OneDrive/SharePoint links elif [[ "${{ inputs.drive_link }}" == *"onedrive.live.com"* ]] || [[ "${{ inputs.drive_link }}" == *"sharepoint.com"* ]]; then - curl -L -o allure-report.zip "${{ inputs.drive_link }}" | sed 's/.*\(https:\/\/[^"]*\).*/\1/' | head -1 | xargs curl -L -o allure-report.zip || { + + curl -L -o allure-report.zip "${{ inputs.drive_link }}" || { echo "::error::Failed to download from OneDrive/SharePoint" exit 1 } + # Handle Dropbox links elif [[ "${{ inputs.drive_link }}" == *"dropbox.com"* ]]; then - curl -L -o allure-report.zip "${url%?dl=0}?dl=1" || { + + curl -L -o allure-report.zip "${{ inputs.drive_link/\?dl=0/?dl=1 }}" || { echo "::error::Failed to download from Dropbox" exit 1 } - # Handle other direct download links + + # Handle direct links else + curl -L -o allure-report.zip "${{ inputs.drive_link }}" || { echo "::error::Failed to download from provided URL" exit 1 } + fi + echo "Downloaded file details:" + ls -lh allure-report.zip + file allure-report.zip + unzip -t allure-report.zip || { echo "::error::Invalid ZIP file" exit 1 } - - name: Extract report run: | unzip -q allure-report.zip -d temp From 06e493efdaeca8b0dbe650a253505b7720cea83c Mon Sep 17 00:00:00 2001 From: bhargavi-ct Date: Wed, 13 May 2026 12:46:32 +0530 Subject: [PATCH 2/3] Update Manual Reports to S3 workflow Signed-off-by: bhargavi-ct --- .github/workflows/manual_reports_to_s3.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual_reports_to_s3.yml b/.github/workflows/manual_reports_to_s3.yml index 196e4c3b2a..ff0318a1d8 100644 --- a/.github/workflows/manual_reports_to_s3.yml +++ b/.github/workflows/manual_reports_to_s3.yml @@ -94,8 +94,10 @@ jobs: # Handle Dropbox links elif [[ "${{ inputs.drive_link }}" == *"dropbox.com"* ]]; then - - curl -L -o allure-report.zip "${{ inputs.drive_link/\?dl=0/?dl=1 }}" || { + + DROPBOX_URL=$(echo "${{ inputs.drive_link }}" | sed 's/dl=0/dl=1/') + + curl -L -o allure-report.zip "$DROPBOX_URL" || { echo "::error::Failed to download from Dropbox" exit 1 } From 3692e5739e6253c804e533a6fc5c1686a1ac8c4c Mon Sep 17 00:00:00 2001 From: bhargavi-ct Date: Wed, 13 May 2026 12:58:48 +0530 Subject: [PATCH 3/3] Fix Google Drive large file download handling in manual reports to S3 workflow Signed-off-by: bhargavi-ct --- .github/workflows/manual_reports_to_s3.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual_reports_to_s3.yml b/.github/workflows/manual_reports_to_s3.yml index ff0318a1d8..49553495f6 100644 --- a/.github/workflows/manual_reports_to_s3.yml +++ b/.github/workflows/manual_reports_to_s3.yml @@ -79,7 +79,7 @@ jobs: echo "Downloading Google Drive file: $FILE_ID" - gdown --id "$FILE_ID" -O allure-report.zip || { + gdown "https://drive.google.com/uc?id=${FILE_ID}" -O allure-report.zip || { echo "::error::Failed to download from Google Drive" exit 1 }