Skip to content

Commit

Permalink
chore: solve bin fluvio conflicts in setup_fluvio_cluster (#4260)
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev authored Nov 15, 2024
1 parent 06a543e commit 69d4fb3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/cd_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,21 +241,10 @@ jobs:
- name: Setup BATS
uses: mig4/setup-bats@v1
with:
bats-version: 1.2.1
bats-version: 1.11.0
- name: CLI ${{ matrix.cli_version }} x Cluster ${{ matrix.cluster_version }}
run: |
make CLI_VERSION=${{ matrix.cli_version }} CLUSTER_VERSION=${{ matrix.cluster_version }} cli-platform-cross-version-test
- name: Run diagnostics
if: ${{ !success() }}
timeout-minutes: 5
run: fluvio cluster diagnostics
- name: Upload diagnostics
uses: actions/upload-artifact@v4
timeout-minutes: 5
if: ${{ !success() }}
with:
name: cli-platform-cross-version-test
path: diagnostics*.gz
- name: Slack Notification
uses: 8398a7/action-slack@v3
if: ${{ !success() }}
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/cli-backward-compatibility.bash
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for version in $versions; do
# Install old version of the CLI
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | VERSION=$version bash
# Run the tests
CLI_VERSION=$version SKIP_SETUP=true CI=false make cli-platform-cross-version-test
CLI_VERSION=$version SKIP_SETUP=true make cli-platform-cross-version-test

# Check if we have reached the version we want to stop at
if [[ $version == $BACKWARD_SINCE_VERSION ]]; then
Expand Down
10 changes: 6 additions & 4 deletions tests/cli/test_helper/fluvio_dev.bash
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,17 @@ function random_string() {
# Give version as arg to control what version you download and install
function setup_fluvio_cluster() {
CLUSTER_VERSION=${1:-latest}
# not using $FLUVIO_BIN to not conflict with the env var set in the makefile
NEW_FLUVIO_BIN=$HOME/.fvm/versions/$CLUSTER_VERSION/fluvio

echo "# Installing cluster @ VERSION: $CLUSTER_VERSION" >&3
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | VERSION=$CLUSTER_VERSION bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | VERSION=$CLUSTER_VERSION bash >&3
echo "# Starting cluster @ VERSION: $CLUSTER_VERSION" >&3

if [ "$CLUSTER_VERSION" = "latest" ]; then
$FLUVIO_BIN cluster start --image-version latest
$NEW_FLUVIO_BIN cluster start --image-version latest
else
$FLUVIO_BIN cluster start
$NEW_FLUVIO_BIN cluster start
fi
}

Expand All @@ -72,6 +74,6 @@ function setup_fluvio_cluster() {
function setup_fluvio_cli() {
CLI_VERSION=${1:-latest}
echo "Installing CLI @ VERSION: $CLI_VERSION" >&3
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | VERSION=$CLI_VERSION bash
curl -fsS https://hub.infinyon.cloud/install/install.sh?ctx=ci | VERSION=$CLI_VERSION bash >&3
$HOME/.fvm/versions/$CLI_VERSION/fluvio version >&3
}

0 comments on commit 69d4fb3

Please sign in to comment.