Skip to content

Commit

Permalink
enhance e2e test and publish image
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <[email protected]>
  • Loading branch information
shivakunv committed Sep 18, 2024
1 parent 1357106 commit db396ff
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/precompiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ jobs:
echo "KERNEL_VERSION=$KERNEL_VERSION" >> $GITHUB_ENV
echo "DIST=$DIST" >> $GITHUB_ENV
- name: Upload build image as an artifact
uses: actions/upload-artifact@v4
with:
name: driver-images-${{ matrix.driver_branch }}-${{ env.KERNEL_VERSION }}-${{ env.DIST }}
path: ./driver-images-${{ matrix.driver_branch }}-${{ env.KERNEL_VERSION }}-${{ env.DIST }}.tar
retention-days: 1
# - name: Upload build image as an artifact
# uses: actions/upload-artifact@v4
# with:
# name: driver-images-${{ matrix.driver_branch }}-${{ env.KERNEL_VERSION }}-${{ env.DIST }}
# path: ./driver-images-${{ matrix.driver_branch }}-${{ env.KERNEL_VERSION }}-${{ env.DIST }}.tar
# retention-days: 1

determine-e2e-test-matrix:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -165,6 +165,7 @@ jobs:
source ./tests/scripts/ci-precompiled-helpers.sh
KERNEL_VERSIONS=($(get_kernel_versions_to_test $BASE_TARGET KERNEL_FLAVORS[@] DRIVER_BRANCHES[@] $DIST))
echo "SHIVAAAAAAAAAA $KERNEL_VERSIONS[@]"
if [ -z "$KERNEL_VERSIONS" ]; then
# no new kernel release
echo "Skipping e2e tests"
Expand Down Expand Up @@ -223,6 +224,7 @@ jobs:
echo "KERNEL_VERSION=$KERNEL_VERSION" >> $GITHUB_ENV
echo "DIST=ubuntu22.04" >> $GITHUB_ENV
driver_branch_json='${{ needs.set-driver-version-matrix.outputs.driver_branch }}'
echo "SHIVA ======== $driver_branch_json"
DRIVER_BRANCHES=$(echo "$driver_branch_json" | jq -r '.[]') >> $GITHUB_ENV
- name: Install GitHub CLI
Expand Down Expand Up @@ -271,11 +273,11 @@ jobs:
# add escape character for space
TEST_CASE_ARGS=$(printf '%q ' "$TEST_CASE_ARGS")
IMAGE_PATH="./tests/driver-images-${DRIVER_VERSION}-${KERNEL_VERSION}-${DIST}.tar"
# ./tests/ci-run-e2e.sh "${TEST_CASE}" "${TEST_CASE_ARGS}" ${IMAGE_PATH} || status=$?
# if [ $status -eq 1 ]; then
# echo "e2e validation failed for driver version $DRIVER_VERSION with status $status"
# rc=$status
# fi
./tests/ci-run-e2e.sh "${TEST_CASE}" "${TEST_CASE_ARGS}" ${IMAGE_PATH} || status=$?
if [ $status -eq 1 ]; then
echo "e2e validation failed for driver version $DRIVER_VERSION with status $status"
rc=$status
fi
rm -f $IMAGE_PATH
done
echo "SHIVA2=="
Expand Down

0 comments on commit db396ff

Please sign in to comment.