Skip to content

Commit

Permalink
chore: ci fix cd_dev and cd_release (#3687)
Browse files Browse the repository at this point in the history
  • Loading branch information
digikata committed Nov 11, 2023
1 parent d25fd1b commit 0830f25
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/cd_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: CD_Dev
permissions:
contents: read

concurrency:
concurrency:
group: cd_dev
cancel-in-progress: true

Expand All @@ -31,7 +31,7 @@ env:
jobs:
# Perform E2E sanity checks
verify_latest_releases:
name: Verify latest run ${{ matrix.run }} (${{ matrix.cluster_type }}) on (${{ matrix.os }}),
name: Verify latest run ${{ matrix.run }} (${{ matrix.cluster_type }}) on (${{ matrix.os }}),
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
kind create cluster --config k8-util/cluster/kind.yaml
- name: Install Fluvio CLI
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | VERSION=latest FLV_VERSION=latest bash
curl -fsS https://hub.infinyon.cloud/install/install.sh | FLUVIO_VERSION=latest bash
echo "$HOME/.fluvio/bin" >> $GITHUB_PATH
- name: Install Local Fluvio cluster
timeout-minutes: 3
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
- name: Setup K3d
run: |
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | TAG=${{ env.K3D_VERSION }} bash
./k8-util/cluster/reset-k3d.sh
./k8-util/cluster/reset-k3d.sh
- name: Run upgrade test
timeout-minutes: 10
env:
Expand Down Expand Up @@ -178,19 +178,18 @@ jobs:
fi
echo "EXPECTED_VERSION: $EXPECTED_VERSION"
- name: Curl Install - latest
- name: Curl Install - latest
if: matrix.version == 'latest'
run: |
echo "VERSION=latest" | tee -a $GITHUB_ENV
echo "FLV_VERSION=latest" | tee -a $GITHUB_ENV
echo "FLUVIO_VERSION=latest" | tee -a $GITHUB_ENV
# Utilizes the env var set in the previous step
# Utilizes the env var set in the previous step
- name: Curl Install
run: curl -fsS https://hub.infinyon.cloud/install/install.sh | bash | tee /tmp/installer.version

- name: Verify installer output
run: |
INSTALLER_VERSION=$(cat /tmp/installer.version | grep "Downloading Fluvio" | grep -v "channel" | awk '{print $5}')
INSTALLER_VERSION=$(cat /tmp/installer.version | grep "fluvio@" | awk '{print $4}' | cut -b 8-)
if [ "$INSTALLER_VERSION" = "$EXPECTED_VERSION" ]; then
echo "✅ Installer version check passed: $EXPECTED_VERSION";
else
Expand All @@ -201,7 +200,7 @@ jobs:
fi
cli-platform-cross-version-test:
name: CLI (${{ matrix.cli_version }}) x Platform (${{ matrix.cluster_version }}) version test
name: CLI (${{ matrix.cli_version }}) x Platform (${{ matrix.cluster_version }}) version test
#if: false
runs-on: ${{ matrix.os }}
env:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/cd_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Get status of latest RELEASE_CHECK run
id: release_check
run: |
gh api /repos/{owner}/{repo}/actions/workflows/release.yml/runs | jq .workflow_runs[0] > /tmp/release_latest.txt
gh api /repos/{owner}/{repo}/actions/workflows/release.yml/runs | jq .workflow_runs[0] > /tmp/release_latest.txt
echo "Latest Release run: $(cat /tmp/release_latest.txt | jq .html_url | tr -d '"')"
RELEASE_CHECK=$(cat /tmp/release_latest.txt | jq .conclusion | tr -d '"')
if [[ "$RELEASE_CHECK" = "success" ]]
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:

- name: Verify installer output
run: |
INSTALLER_VERSION=$(cat /tmp/installer.version | grep "Downloading Fluvio" | grep -v "channel" | awk '{print $5}')
INSTALLER_VERSION=$(cat /tmp/installer.version | grep "fluvio@" | awk '{print $4}' | cut -b 8-)
if [ "$INSTALLER_VERSION" = "$EXPECTED_VERSION" ]; then
echo "✅ Installer version check passed: $EXPECTED_VERSION";
else
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
echo "EXPECTED_VERSION=${{ github.event.inputs.alt_version }}" | tee -a $GITHUB_ENV
fi
echo "EXPECTED_VERSION: $EXPECTED_VERSION"
- run: echo "VERSION=$EXPECTED_VERSION" | tee -a $GITHUB_ENV
- name: Install Fluvio
run: |
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
- name: Install last stable Fluvio CLI and start cluster
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | VERSION=$PREV_STABLE_VERSION bash
curl -fsS https://hub.infinyon.cloud/install/install.sh | FLUVIO_VERSION=$PREV_STABLE_VERSION bash
~/.fluvio/bin/fluvio cluster start
~/.fluvio/bin/fluvio version
Expand All @@ -186,8 +186,8 @@ jobs:
- run: echo "VERSION=$EXPECTED_VERSION" | tee -a $GITHUB_ENV
- name: Install current stable Fluvio CLI and upgrade cluster
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
~/.fluvio/bin/fluvio cluster upgrade
~/.fvm/bin/fvm install stable
~/.fluvio/bin/fluvio cluster upgrade
~/.fluvio/bin/fluvio version
# TODO: Verify platform version
Expand Down

0 comments on commit 0830f25

Please sign in to comment.