From 4fda40b709a2aafc3e4501e71420451f32007682 Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Wed, 29 Oct 2025 08:49:05 +0700 Subject: [PATCH] test: add S3 upload to overlayfs delta test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Upload delta tarball to S3 bucket - Test file: hello-world-first-test.tar.gz - Uses new secret names: XAHAUD_GITHUB_ACTIONS_CACHE_NIQ_KEY_ID/ACCESS_KEY - Verifies upload with aws s3 ls - Complete end-to-end test: OverlayFS → tarball → S3 --- .github/workflows/test-overlayfs-delta.yml | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/test-overlayfs-delta.yml b/.github/workflows/test-overlayfs-delta.yml index 2d6f6206e..10fc43609 100644 --- a/.github/workflows/test-overlayfs-delta.yml +++ b/.github/workflows/test-overlayfs-delta.yml @@ -147,6 +147,34 @@ jobs: echo "Only ~few KB instead of entire cache!" echo "========================================" + - name: Upload delta to S3 (actual test!) + env: + AWS_ACCESS_KEY_ID: ${{ secrets.XAHAUD_GITHUB_ACTIONS_CACHE_NIQ_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.XAHAUD_GITHUB_ACTIONS_CACHE_NIQ_ACCESS_KEY }} + run: | + echo "========================================" + echo "UPLOADING TO S3" + echo "========================================" + + # Upload the delta tarball + aws s3 cp /tmp/delta.tar.gz \ + s3://xahaud-github-actions-cache-niq/hello-world-first-test.tar.gz \ + --region us-east-1 + + echo "" + echo "✅ Successfully uploaded to S3!" + echo "File: s3://xahaud-github-actions-cache-niq/hello-world-first-test.tar.gz" + echo "" + + # Verify it exists + echo "Verifying upload..." + aws s3 ls s3://xahaud-github-actions-cache-niq/hello-world-first-test.tar.gz --region us-east-1 + + echo "" + echo "========================================" + echo "S3 upload test complete! 🚀" + echo "========================================" + - name: Cleanup if: always() run: |