Skip to content

Commit 960f66c

Browse files
update CI test log achieve (#577)
Signed-off-by: chensuyue <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7686cfa commit 960f66c

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/_get-test-matrix.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
else
2626
echo "CHECKOUT_REF=${{ github.ref }}" >> $GITHUB_ENV
2727
fi
28-
echo "checkout ref ${{ env.CHECKOUT_REF }}"
2928
3029
- name: Checkout out Repo
3130
uses: actions/checkout@v4
@@ -39,7 +38,7 @@ jobs:
3938
set -xe
4039
if [ "${{ github.event_name }}" == "pull_request" ] || [ "${{ github.event_name }}" == "pull_request_target" ]; then
4140
LATEST_COMMIT_SHA=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
42-
"https://api.github.com/repos/opea-project/GenAIComps/commits?sha=main" | jq -r '.[0].sha')
41+
"https://api.github.com/repos/opea-project/GenAIComps/commits?sha=${{ github.event.pull_request.base.ref }}" | jq -r '.[0].sha')
4342
echo "Latest commit SHA is $LATEST_COMMIT_SHA"
4443
base_commit=$LATEST_COMMIT_SHA
4544
else

.github/workflows/pr-examples-test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,10 @@ jobs:
5252
cat test_chatqna_on_gaudi.sh
5353
5454
echo "Run test..."
55+
echo "LOG_DIR=$(pwd)" >> $GITHUB_ENV
5556
export IMAGE_TAG="comps"
5657
timeout 50m bash test_chatqna_on_gaudi.sh
5758
58-
echo "LOG_PATH=$(pwd)/*.log" >> $GITHUB_ENV
59-
6059
- name: Clean up container
6160
if: cancelled() || failure()
6261
run: |
@@ -69,4 +68,4 @@ jobs:
6968
uses: actions/upload-artifact@v4
7069
with:
7170
name: "Examples-Test-Logs"
72-
path: ${{ env.LOG_PATH }}
71+
path: ${{ env.LOG_DIR }}/*.log

.github/workflows/pr-microservice-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: MicroService-test
55

66
on:
77
pull_request_target:
8-
branches: [main]
8+
branches: ["main", "*rc"]
99
types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped
1010
paths:
1111
- comps/**

0 commit comments

Comments
 (0)