From 5c196c050ead6eb41622edb903d18a8d0c5bbfcd Mon Sep 17 00:00:00 2001 From: "T.J. Telan" Date: Fri, 10 Nov 2023 12:55:02 -0800 Subject: [PATCH] Use abs path to binaries in k8_cluster_test --- .github/workflows/ci.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e5fdd7ed0..542093059e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -774,7 +774,7 @@ jobs: echo "DEFAULT_SPU=${{ matrix.spu }}" | tee -a $GITHUB_ENV echo "REPL=${{ matrix.spu }}" | tee -a $GITHUB_ENV - name: Print version - run: fluvio version && fluvio-test -h + run: ~/bin/fluvio version && ~/bin/fluvio-test -h # Retag image to remove arch from tag - name: Load Fluvio Docker Image run: | @@ -818,18 +818,18 @@ jobs: if: matrix.test == 'smoke-test-k8' || matrix.test == 'stats-test' timeout-minutes: 10 run: | - fluvio cluster start --develop --spu ${{ matrix.spu }} --rust-log ${{ env.SERVER_LOG }} --namespace ${K8_NAMESPACE} + ~/bin/fluvio cluster start --develop --spu ${{ matrix.spu }} --rust-log ${{ env.SERVER_LOG }} --namespace ${K8_NAMESPACE} - name: Start fluvio cluster TLS timeout-minutes: 10 if: matrix.test == 'smoke-test-k8-tls' run: | - fluvio cluster start --develop --spu ${{ matrix.spu }} --rust-log ${{ env.SERVER_LOG }} ${{ env.TLS_ARGS }} --namespace ${K8_NAMESPACE} + ~/bin/fluvio cluster start --develop --spu ${{ matrix.spu }} --rust-log ${{ env.SERVER_LOG }} ${{ env.TLS_ARGS }} --namespace ${K8_NAMESPACE} - name: Start fluvio cluster TLS with root timeout-minutes: 10 if: matrix.test == 'smoke-test-k8-tls-root-unclean' run: | make smoke-test-k8-tls-policy-setup - fluvio cluster start --develop --spu ${{ matrix.spu }} --rust-log ${{ env.SERVER_LOG }} ${{ env.TLS_ARGS }} --namespace ${K8_NAMESPACE} --authorization-config-map authorization + ~/bin/fluvio cluster start --develop --spu ${{ matrix.spu }} --rust-log ${{ env.SERVER_LOG }} ${{ env.TLS_ARGS }} --namespace ${K8_NAMESPACE} --authorization-config-map authorization - name: Run ${{ matrix.test }} timeout-minutes: 10 run: | @@ -857,6 +857,7 @@ jobs: # fail-fast: false matrix: os: [ubuntu-latest] + rust-target: [x86_64-unknown-linux-musl] run: [r1] steps: - uses: actions/checkout@v4 @@ -868,22 +869,22 @@ jobs: - name: Download artifact - fluvio uses: actions/download-artifact@v3 with: - name: fluvio-x86_64-unknown-linux-musl + name: fluvio-${{ matrix.rust-target }} path: ~/bin - name: Download Docker Image as Artifact uses: actions/download-artifact@v3 with: - name: infinyon-fluvio-x86_64-unknown-linux-musl.tar + name: infinyon-fluvio-${{ matrix.rust-target }}.tar path: /tmp - - name: Mark xecutable + - name: Mark executable run: | chmod +x ~/bin/fluvio && ~/bin/fluvio version # Retag image to remove arch from tag - name: Load Fluvio Docker Image run: | ls -la /tmp - docker image load --input /tmp/infinyon-fluvio-x86_64-unknown-linux-musl.tar - docker image tag infinyon/fluvio:${{ github.sha }}-x86_64-unknown-linux-musl infinyon/fluvio:${{ github.sha }} + docker image load --input /tmp/infinyon-fluvio-${{ matrix.rust-target }}.tar + docker image tag infinyon/fluvio:${{ github.sha }}-${{ matrix.rust-target }} infinyon/fluvio:${{ github.sha }} docker image ls -a - name: Export Docker Image to tarball