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 db396ff commit f0f49d5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/precompiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ jobs:
echo "KERNEL_VERSION=$KERNEL_VERSION" >> $GITHUB_ENV
echo "DIST=$DIST" >> $GITHUB_ENV
# SHIVA
# - name: Upload build image as an artifact
# uses: actions/upload-artifact@v4
# with:
Expand Down Expand Up @@ -166,6 +167,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[@]"
echo "SHIVAAAAAAAAAA===== $KERNEL_VERSIONS"
if [ -z "$KERNEL_VERSIONS" ]; then
# no new kernel release
echo "Skipping e2e tests"
Expand Down Expand Up @@ -226,6 +228,7 @@ jobs:
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
echo "SHIVA ======== DRIVER_BRANCHES=$(echo "$driver_branch_json" | jq -r '.[]') "
- name: Install GitHub CLI
run: |
Expand Down Expand Up @@ -263,6 +266,7 @@ jobs:
rc=0
# for precompiled driver we are setting driver branch as driver version
echo "SHIVA1==${DRIVER_BRANCHES[@]}"
echo "SHIVA========${DRIVER_BRANCHES}"
for DRIVER_VERSION in $DRIVER_BRANCHES; do
echo "Running e2e for DRIVER_VERSION=$DRIVER_VERSION"
image="driver-images-${DRIVER_VERSION}-${KERNEL_VERSION}-${DIST}"
Expand All @@ -281,8 +285,9 @@ jobs:
rm -f $IMAGE_PATH
done
echo "SHIVA2=="
./tests/scripts/pull.sh /tmp/logs logs
exit $rc
# SHIVA
# ./tests/scripts/pull.sh /tmp/logs logs
# exit $rc
- name: Archive test logs
if: ${{ failure() }}
Expand Down

0 comments on commit f0f49d5

Please sign in to comment.