Skip to content

Commit

Permalink
gha: skip running tests for PULL_TYPE host-share-image-block
Browse files Browse the repository at this point in the history
Skip running the tests for the pull type `host-share-image-block` until
the PR kata-containers#7837 is prepared for testing.

This helps save CI resources.

Signed-off-by: ChengyuZhu6 <chengyu.zhu@intel.com>
  • Loading branch information
ChengyuZhu6 committed Apr 1, 2024
1 parent 2b127cb commit c3de22f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/run-kata-coco-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ jobs:
- name: Run tests
timeout-minutes: 30
run: bash tests/integration/kubernetes/gha-run.sh run-tests
env:
PULL_TYPE: ${{ matrix.pull-type }}

- name: Delete kata-deploy
if: always()
Expand Down
5 changes: 5 additions & 0 deletions tests/integration/kubernetes/gha-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ KUBERNETES="${KUBERNETES:-}"
SNAPSHOTTER="${SNAPSHOTTER:-}"
HTTPS_PROXY="${HTTPS_PROXY:-${https_proxy:-}}"
NO_PROXY="${NO_PROXY:-${no_proxy:-}}"
PULL_TYPE="${PULL_TYPE:-default}"
export AUTO_GENERATE_POLICY="${AUTO_GENERATE_POLICY:-no}"
export TEST_CLUSTER_NAMESPACE="${TEST_CLUSTER_NAMESPACE:-kata-containers-k8s-tests}"

Expand Down Expand Up @@ -246,6 +247,10 @@ function install_kbs_client() {
}

function run_tests() {
# Skip running tests for the pull type `host-share-image-block` until
# the PR https://github.com/kata-containers/kata-containers/pull/7837 is prepared for testing.
echo "PULL_TYPE = ${PULL_TYPE}"
[ "${PULL_TYPE}" = "host-share-image-block" ] && return
platform="${1:-}"

[ "$platform" = "kcli" ] && \
Expand Down

0 comments on commit c3de22f

Please sign in to comment.