From 885abd179d524f1f2bbe25663a67fc4e2897b514 Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Mon, 15 Jun 2026 11:27:16 +0300 Subject: [PATCH 1/5] chore(ci): Deploy WebTUI to nightlies.a.o --- .github/workflows/web-tui.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/web-tui.yml b/.github/workflows/web-tui.yml index eb58c817c..60be7ef0f 100644 --- a/.github/workflows/web-tui.yml +++ b/.github/workflows/web-tui.yml @@ -68,12 +68,37 @@ jobs: with: tool: trunk@0.21.14 + - name: Install cargo-get + uses: taiki-e/install-action@7a79fe8c3a13344501c80d99cae481c1c9085912 # v2.81.10 + with: + tool: cargo-get@1.4.0 + + - name: Get package.version + id: cargo_metadata + run: | + BALLISTA_VERSION=$(cargo get --entry ballista/core/ package.version) + echo "ballista_version=${BALLISTA_VERSION}" >> "$GITHUB_OUTPUT" + - name: Build working-directory: ballista-cli run: | + echo "==== DEBUG BALLISTA_VERSION: ${{ steps.cargo_metadata.outputs.ballista_version }}" trunk build --cargo-profile release-nonlto --minify --locked \ --no-default-features --features web + - name: Deploy to Nightlies + #if: ${{ github.ref == 'refs/heads/main' }} + uses: burnett01/rsync-deployments@0dc935cdecc5f5e571865e60d2a6cdc673704823 + with: + switches: -rlptDvz + path: target/web-tui/* + remote_path: datafusion/ballista/tui/${{ steps.cargo_metadata.outputs.ballista_version }}/ + remote_host: https://nightlies.apache.org + remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }} + remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }} + remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }} + + - name: Upload WASM32 application uses: actions/upload-artifact@v7 with: From 479c4cbfc89b0ef1a3fcdff43a63ab1ac66f28c4 Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Mon, 15 Jun 2026 11:33:35 +0300 Subject: [PATCH 2/5] Use v8.0.5 of rsync-deployments that is allowed by ASF Infra https://github.com/apache/infrastructure-actions/blob/8d7b86287d0beafc4d68a06fa23e751a04e3976d/actions.yml#L159C3-L160 --- .github/workflows/web-tui.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/web-tui.yml b/.github/workflows/web-tui.yml index 60be7ef0f..082a57e91 100644 --- a/.github/workflows/web-tui.yml +++ b/.github/workflows/web-tui.yml @@ -88,7 +88,7 @@ jobs: - name: Deploy to Nightlies #if: ${{ github.ref == 'refs/heads/main' }} - uses: burnett01/rsync-deployments@0dc935cdecc5f5e571865e60d2a6cdc673704823 + uses: burnett01/rsync-deployments@66257cad6bfeb2171d3b6bfa6c9a22279dd9c3a1 # v8.0.5 with: switches: -rlptDvz path: target/web-tui/* From 4cd5a980fccab40bc50dd6e891d07b63db1ce436 Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Mon, 15 Jun 2026 11:37:21 +0300 Subject: [PATCH 3/5] burnett01/rsync-deployments works only on Linux --- .github/workflows/web-tui.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/web-tui.yml b/.github/workflows/web-tui.yml index 082a57e91..a18695917 100644 --- a/.github/workflows/web-tui.yml +++ b/.github/workflows/web-tui.yml @@ -49,7 +49,7 @@ on: jobs: web-tui: name: Build Web TUI WASM32 application - runs-on: macos-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v6.0.3 with: @@ -82,7 +82,6 @@ jobs: - name: Build working-directory: ballista-cli run: | - echo "==== DEBUG BALLISTA_VERSION: ${{ steps.cargo_metadata.outputs.ballista_version }}" trunk build --cargo-profile release-nonlto --minify --locked \ --no-default-features --features web From 5fa0558111b1e6743c6881ced90d833914d55f2d Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Mon, 15 Jun 2026 11:52:06 +0300 Subject: [PATCH 4/5] Test whether rsync is pre-installed on macos runners --- .github/workflows/web-tui.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/web-tui.yml b/.github/workflows/web-tui.yml index a18695917..6889667e5 100644 --- a/.github/workflows/web-tui.yml +++ b/.github/workflows/web-tui.yml @@ -49,7 +49,7 @@ on: jobs: web-tui: name: Build Web TUI WASM32 application - runs-on: ubuntu-latest + runs-on: macos-latest steps: - uses: actions/checkout@v6.0.3 with: @@ -76,6 +76,8 @@ jobs: - name: Get package.version id: cargo_metadata run: | + set -x + rsync --version BALLISTA_VERSION=$(cargo get --entry ballista/core/ package.version) echo "ballista_version=${BALLISTA_VERSION}" >> "$GITHUB_OUTPUT" From 40f3fad9786d194be722280c2c3fd9638c89bb5c Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Mon, 15 Jun 2026 12:12:37 +0300 Subject: [PATCH 5/5] Use rsync command instead of Github Actions --- .github/workflows/web-tui.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/web-tui.yml b/.github/workflows/web-tui.yml index 6889667e5..9caf571a9 100644 --- a/.github/workflows/web-tui.yml +++ b/.github/workflows/web-tui.yml @@ -89,16 +89,8 @@ jobs: - name: Deploy to Nightlies #if: ${{ github.ref == 'refs/heads/main' }} - uses: burnett01/rsync-deployments@66257cad6bfeb2171d3b6bfa6c9a22279dd9c3a1 # v8.0.5 - with: - switches: -rlptDvz - path: target/web-tui/* - remote_path: datafusion/ballista/tui/${{ steps.cargo_metadata.outputs.ballista_version }}/ - remote_host: https://nightlies.apache.org - remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }} - remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }} - remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }} - + run: | + rsync -rlptDvz -e "ssh -p ${{ secrets.NIGHTLIES_RSYNC_PORT }} -l ${{ secrets.NIGHTLIES_RSYNC_USER }} -i ${{ secrets.NIGHTLIES_RSYNC_KEY }}" target/web-tui/* nightlies.apache.org:/datafusion/ballista/tui/${{ steps.cargo_metadata.outputs.ballista_version }}/ - name: Upload WASM32 application uses: actions/upload-artifact@v7