Skip to content

Commit 599d266

Browse files
Update stage_for_s3.bash to include fibers handling
Merged fibers download/packaging from main branch with bug fixes from v22.21.1: - Downloads fibers-5.0.4.pc.tgz from S3 and repackages with unique identifier - Fixed tar command to use -xJf for .tar.xz files (not -xzf) - Fixed glob expansion in mv command - Added set -e for error handling Co-Authored-By: Claude (global.anthropic.claude-opus-4-5-20251101-v1:0) <noreply@anthropic.com>
1 parent 7d62e76 commit 599d266

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

stage_for_s3.bash

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,20 @@ echo "Current timestamp is $TIMESTAMP"
1212
# Download node tarballs from the latest release
1313
gh release download -R Asana/node -p "*.xz"
1414

15+
# Download and prepare fibers package
16+
curl "https://asana-oss-cache.s3.us-east-1.amazonaws.com/node-fibers/fibers-5.0.4.pc.tgz" --output fibers-5.0.4.tar.gz
17+
tar -xzf fibers-5.0.4.tar.gz
18+
rm fibers-5.0.4.tar.gz
19+
1520
# Generate unique identifier from timestamp and hash of downloaded files
1621
SHORT_HASH=$(cat *.xz | sha1sum | cut -c1-4)
1722
echo "HASH: $SHORT_HASH"
1823
UNIQUE="pc-${TIMESTAMP}-${SHORT_HASH}"
1924

25+
# Repackage fibers with unique identifier
26+
tar -czf "fibers-5.0.4-${UNIQUE}.tgz" package/
27+
rm -rf package
28+
2029
for file in *.tar.xz; do
2130
if [[ "$file" == *-LATEST.tar.xz ]]; then
2231
base="${file%-LATEST.tar.xz}"

0 commit comments

Comments
 (0)