From 8b18a29bb83de519471cd2801add535dba64bcdb Mon Sep 17 00:00:00 2001 From: chensuyue Date: Wed, 6 Nov 2024 16:30:54 +0800 Subject: [PATCH] for test only Signed-off-by: chensuyue --- .github/workflows/pr-docker-compose-e2e.yml | 2 +- .github/workflows/scripts/get_test_matrix.sh | 1 + ChatQnA/tests/test_compose_on_arc.sh | 4 ++++ ChatQnA/tests/test_compose_on_rocm.sh | 4 ++++ 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 ChatQnA/tests/test_compose_on_arc.sh create mode 100644 ChatQnA/tests/test_compose_on_rocm.sh diff --git a/.github/workflows/pr-docker-compose-e2e.yml b/.github/workflows/pr-docker-compose-e2e.yml index 687ae047a..c52677f31 100644 --- a/.github/workflows/pr-docker-compose-e2e.yml +++ b/.github/workflows/pr-docker-compose-e2e.yml @@ -4,7 +4,7 @@ name: E2E test with docker compose on: - pull_request_target: + pull_request: branches: ["main", "*rc"] types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped paths: diff --git a/.github/workflows/scripts/get_test_matrix.sh b/.github/workflows/scripts/get_test_matrix.sh index 39a9876ae..8306f71fd 100644 --- a/.github/workflows/scripts/get_test_matrix.sh +++ b/.github/workflows/scripts/get_test_matrix.sh @@ -15,6 +15,7 @@ for example in ${examples}; do cd $WORKSPACE/$example if [[ ! $(find . -type f | grep ${test_mode}) ]]; then continue; fi cd tests + ls -l hardware_list=$(find . -type f -name "test_compose_*_on_*.sh" | cut -d/ -f2 | cut -d. -f1 | awk -F'_on_' '{print $2}'| sort -u) echo "Test supported hardware list = ${hardware_list}" diff --git a/ChatQnA/tests/test_compose_on_arc.sh b/ChatQnA/tests/test_compose_on_arc.sh new file mode 100644 index 000000000..df5757b90 --- /dev/null +++ b/ChatQnA/tests/test_compose_on_arc.sh @@ -0,0 +1,4 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +echo "for test" diff --git a/ChatQnA/tests/test_compose_on_rocm.sh b/ChatQnA/tests/test_compose_on_rocm.sh new file mode 100644 index 000000000..df5757b90 --- /dev/null +++ b/ChatQnA/tests/test_compose_on_rocm.sh @@ -0,0 +1,4 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +echo "for test"