Skip to content

Commit

Permalink
chore: add local_upgrade_test ci again
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev committed Sep 2, 2024
1 parent c29b008 commit 50cea01
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 50 deletions.
99 changes: 49 additions & 50 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -945,56 +945,55 @@ jobs:
path: diagnostics*.gz
retention-days: 1

# FIXME: This is disabled until we fix the problem with the test when creating a new topic
# local_upgrade_test:
# name: Upgrade local cluster test on (${{ matrix.run }})
# needs: build_primary_binaries
# runs-on: ${{ matrix.os }}
# strategy:
# # fail-fast: false
# matrix:
# os: [ubuntu-latest]
# rust-target: [x86_64-unknown-linux-musl]
# run: [r1]
# steps:
# - uses: actions/checkout@v4
# # Download artifacts
# - name: Download artifact - fluvio
# uses: actions/download-artifact@v4
# with:
# name: fluvio-${{ matrix.rust-target }}
# path: ~/bin
# - name: Download artifact - fluvio-run
# uses: actions/download-artifact@v4
# with:
# name: fluvio-run-${{ matrix.rust-target }}
# path: ~/bin
# - name: Mark executable
# run: |
# chmod +x ~/bin/fluvio-run
# chmod +x ~/bin/fluvio && ~/bin/fluvio version
# echo "${HOME}/bin" >> $GITHUB_PATH
#
# - name: Run upgrade test with CI artifacts
# timeout-minutes: 10
# env:
# TEST_DATA_BYTES: 10000
# run: |
# date
# make FLUVIO_MODE=local FLUVIO_BIN=~/bin/fluvio upgrade-test
#
# - name: Run diagnostics
# if: ${{ !success() }}
# timeout-minutes: 5
# run: fluvio cluster diagnostics
# - name: Upload logs
# timeout-minutes: 5
# if: ${{ !success() }}
# uses: actions/upload-artifact@v4
# with:
# name: local_upgrade_${{ matrix.run }}_log
# path: diagnostics*.gz
# retention-days: 1
local_upgrade_test:
name: Upgrade local cluster test on (${{ matrix.run }})
needs: build_primary_binaries
runs-on: ${{ matrix.os }}
strategy:
# fail-fast: false
matrix:
os: [ubuntu-latest]
rust-target: [x86_64-unknown-linux-musl]
run: [r1]
steps:
- uses: actions/checkout@v4
# Download artifacts
- name: Download artifact - fluvio
uses: actions/download-artifact@v4
with:
name: fluvio-${{ matrix.rust-target }}
path: ~/bin
- name: Download artifact - fluvio-run
uses: actions/download-artifact@v4
with:
name: fluvio-run-${{ matrix.rust-target }}
path: ~/bin
- name: Mark executable
run: |
chmod +x ~/bin/fluvio-run
chmod +x ~/bin/fluvio && ~/bin/fluvio version
echo "${HOME}/bin" >> $GITHUB_PATH
- name: Run upgrade test with CI artifacts
timeout-minutes: 10
env:
TEST_DATA_BYTES: 10000
run: |
date
make FLUVIO_MODE=local FLUVIO_BIN=~/bin/fluvio upgrade-test
- name: Run diagnostics
if: ${{ !success() }}
timeout-minutes: 5
run: fluvio cluster diagnostics
- name: Upload logs
timeout-minutes: 5
if: ${{ !success() }}
uses: actions/upload-artifact@v4
with:
name: local_upgrade_${{ matrix.run }}_log
path: diagnostics*.gz
retention-days: 1

# Smoke test across different version of fluvio
cli_smoke:
Expand Down
1 change: 1 addition & 0 deletions tests/upgrade-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ function validate_upgrade_cluster_to_prerelease() {
fi
if [[ "$FLUVIO_MODE" == "local" ]]; then
echo "Resuming local cluster"
sleep 30
$FLUVIO_BIN_ABS_PATH cluster resume
fi
popd
Expand Down

0 comments on commit 50cea01

Please sign in to comment.