Skip to content

Commit e6c4996

Browse files
authored
Nightly publish fix for non-existent nightly packages (#478)
Fix an error when no nightly packages previously exist. Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
1 parent b350d61 commit e6c4996

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/nightly-publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,16 +253,21 @@ jobs:
253253
set -euo pipefail
254254
CUTOFF=$(date -u -d '30 days ago' '+%Y-%m-%d')
255255
echo "Pruning nightly wheels uploaded before $CUTOFF"
256+
LISTING=$(aws s3 ls "s3://${S3_BUCKET}/${SIMPLE_PREFIX}/${{ steps.proj.outputs.normalized }}/" 2>/dev/null || true)
257+
if [ -z "$LISTING" ]; then
258+
echo "No existing wheels found (first run or empty prefix) -- nothing to prune"
259+
exit 0
260+
fi
256261
DELETED=0
257-
aws s3 ls "s3://${S3_BUCKET}/${SIMPLE_PREFIX}/${{ steps.proj.outputs.normalized }}/" 2>/dev/null | while read -r line; do
262+
while read -r line; do
258263
DATE_PART=$(echo "$line" | awk '{print $1}')
259264
FILE_PART=$(echo "$line" | awk '{print $4}')
260265
if [[ "$FILE_PART" == *.whl ]] && [[ "$DATE_PART" < "$CUTOFF" ]]; then
261266
echo "Removing: $FILE_PART (uploaded $DATE_PART)"
262267
aws s3 rm "s3://${S3_BUCKET}/${SIMPLE_PREFIX}/${{ steps.proj.outputs.normalized }}/$FILE_PART" --only-show-errors
263268
DELETED=$((DELETED + 1))
264269
fi
265-
done
270+
done <<< "$LISTING"
266271
echo "Pruned $DELETED old nightly wheel(s)"
267272
268273
- name: Upload wheels to S3 project directory

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ To install the latest nightly build:
4444
pip install --pre fvdb-core --extra-index-url https://fvdb-packages.s3.us-east-2.amazonaws.com/simple-nightly/
4545
```
4646

47-
Nightly builds use a synthetic version (`0.0.0.devYYYYMMDD`) and require `--pre`.
47+
Nightly builds use a synthetic version (e.g. `0.0.0.dev20260224+pt28.cu128`) and require `--pre`.
48+
The `+pt28.cu128` suffix identifies the PyTorch and CUDA versions the wheel was built against.
4849
Upgrading to a stable release later works naturally with `pip install --upgrade fvdb-core`.
4950

5051
## Building *f*VDB from Source

0 commit comments

Comments
 (0)