ADFA-2499 Correctly compress release assets#796
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughRelease Notes - ADFA-2499: Correctly compress release assetsChanges
Risks & Best Practice Violations
WalkthroughThe workflow replaces MD5 generation and direct asset uploading with a new compression-based pipeline. It now validates SCP configuration, creates a flattened temporary release structure, compresses selected assets using Brotli, generates accompanying MD5 checksums, and uploads the prepared structure via SCP before cleanup. Changes
Sequence DiagramsequenceDiagram
actor GHA as GitHub Actions
participant FS as Filesystem
participant ENC as Compression<br/>(Brotli)
participant CHK as MD5 Checksum
participant SCP as SCP Server
GHA->>GHA: Validate SCP_HOST configured
alt SCP_HOST not set
GHA->>GHA: Log warning, skip preparation
else SCP_HOST set
GHA->>FS: Create TEMP_DIR/release/{v7,v8}
GHA->>FS: Identify v7 assets
loop For each v7 asset
GHA->>ENC: Compress asset → .br
ENC->>FS: Write compressed file
GHA->>CHK: Generate MD5 checksum
CHK->>FS: Write .md5 alongside .br
end
GHA->>FS: Identify v8 assets
loop For each v8 asset
GHA->>ENC: Compress asset → .br
ENC->>FS: Write compressed file
GHA->>CHK: Generate MD5 checksum
CHK->>FS: Write .md5 alongside .br
end
GHA->>FS: Check for plugin-artifacts.zip.br
alt Plugin artifacts exist
GHA->>FS: Copy plugin-artifacts.zip.br
GHA->>CHK: Generate/copy MD5
CHK->>FS: Write plugin-artifacts.zip.br.md5
end
GHA->>GHA: Log "preparing release assets"
GHA->>SCP: Upload TEMP_DIR/release via scp
SCP->>SCP: Receive release structure
GHA->>FS: Cleanup TEMP_DIR
GHA->>GHA: Log completion
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
No description provided.