From ebb6f303989a2b14152d83232ea5951b1b8f51fb Mon Sep 17 00:00:00 2001 From: G-XD Date: Fri, 3 Nov 2023 21:21:21 +0800 Subject: [PATCH 1/5] refactor(services/persy): migrate tot test planner --- .github/services/persy/persy/action.yml | 33 ++++++++++++++ .github/workflows/service_test_persy.yml | 56 ------------------------ 2 files changed, 33 insertions(+), 56 deletions(-) create mode 100644 .github/services/persy/persy/action.yml delete mode 100644 .github/workflows/service_test_persy.yml diff --git a/.github/services/persy/persy/action.yml b/.github/services/persy/persy/action.yml new file mode 100644 index 000000000000..10cc8e291559 --- /dev/null +++ b/.github/services/persy/persy/action.yml @@ -0,0 +1,33 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: persy +description: 'Behavior test for Persy' + +runs: + using: "composite" + steps: + - name: Setup + shell: bash + run: | + cat << EOF >> $GITHUB_ENV + RUST_BACKTRACE=full + RUST_LOG=debug + OPENDAL_PERSY_DATAFILE=${{ runner.temp }}/test.persy + OPENDAL_PERSY_SEGMENT=data + OPENDAL_PERSY_INDEX=index + EOF diff --git a/.github/workflows/service_test_persy.yml b/.github/workflows/service_test_persy.yml deleted file mode 100644 index 36b5e0ccfbe3..000000000000 --- a/.github/workflows/service_test_persy.yml +++ /dev/null @@ -1,56 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -name: Service Test Persy - -on: - push: - branches: - - main - pull_request: - branches: - - main - paths: - - "core/src/**" - - "core/tests/**" - - "!core/src/docs/**" - - "!core/src/services/**" - - "core/src/services/persy/**" - - ".github/workflows/service_test_persy.yml" - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} - cancel-in-progress: true - -jobs: - persy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup Rust toolchain - uses: ./.github/actions/setup - - name: Test persy - shell: bash - working-directory: core - run: cargo test behavior --features tests,services-persy - env: - RUST_BACKTRACE: full - RUST_LOG: debug - OPENDAL_TEST: persy - OPENDAL_PERSY_DATAFILE: ./test.persy - OPENDAL_PERSY_SEGMENT: data - OPENDAL_PERSY_INDEX: index From 964253e1c0a24d642849dd38a90668c1203ab964 Mon Sep 17 00:00:00 2001 From: G-XD Date: Mon, 6 Nov 2023 23:21:51 +0800 Subject: [PATCH 2/5] refactor(services/persy): update persy datafile path --- .github/services/persy/persy/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/services/persy/persy/action.yml b/.github/services/persy/persy/action.yml index 10cc8e291559..c28a5db906c8 100644 --- a/.github/services/persy/persy/action.yml +++ b/.github/services/persy/persy/action.yml @@ -27,7 +27,7 @@ runs: cat << EOF >> $GITHUB_ENV RUST_BACKTRACE=full RUST_LOG=debug - OPENDAL_PERSY_DATAFILE=${{ runner.temp }}/test.persy + OPENDAL_PERSY_DATAFILE=./test.persy OPENDAL_PERSY_SEGMENT=data OPENDAL_PERSY_INDEX=index EOF From 90dd7c978a6ce57cad625013edda14f100cdf5a2 Mon Sep 17 00:00:00 2001 From: G-XD Date: Tue, 7 Nov 2023 22:32:10 +0800 Subject: [PATCH 3/5] refactor(services/persy): add RUST_TEST_THREADS=1 --- .github/services/persy/persy/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/services/persy/persy/action.yml b/.github/services/persy/persy/action.yml index c28a5db906c8..add1d7cd3af3 100644 --- a/.github/services/persy/persy/action.yml +++ b/.github/services/persy/persy/action.yml @@ -27,6 +27,7 @@ runs: cat << EOF >> $GITHUB_ENV RUST_BACKTRACE=full RUST_LOG=debug + RUST_TEST_THREADS=1 OPENDAL_PERSY_DATAFILE=./test.persy OPENDAL_PERSY_SEGMENT=data OPENDAL_PERSY_INDEX=index From dc8164a16eab3c6bb2c75b8df4dc0fed0130861f Mon Sep 17 00:00:00 2001 From: G-XD Date: Wed, 8 Nov 2023 00:24:12 +0800 Subject: [PATCH 4/5] ci(services/persy): use tmp dir --- .github/services/persy/persy/action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/services/persy/persy/action.yml b/.github/services/persy/persy/action.yml index add1d7cd3af3..984b705a9374 100644 --- a/.github/services/persy/persy/action.yml +++ b/.github/services/persy/persy/action.yml @@ -25,10 +25,8 @@ runs: shell: bash run: | cat << EOF >> $GITHUB_ENV - RUST_BACKTRACE=full - RUST_LOG=debug RUST_TEST_THREADS=1 - OPENDAL_PERSY_DATAFILE=./test.persy + OPENDAL_PERSY_DATAFILE=${{ runner.temp }}/test.persy OPENDAL_PERSY_SEGMENT=data OPENDAL_PERSY_INDEX=index EOF From 54adf3b6cee7b5c14d392eaadeee1950788e43f6 Mon Sep 17 00:00:00 2001 From: G-XD Date: Wed, 8 Nov 2023 00:29:53 +0800 Subject: [PATCH 5/5] ci(services/persy): use tmp dir --- .github/services/persy/persy/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/services/persy/persy/action.yml b/.github/services/persy/persy/action.yml index 984b705a9374..a833f4ecab72 100644 --- a/.github/services/persy/persy/action.yml +++ b/.github/services/persy/persy/action.yml @@ -26,7 +26,7 @@ runs: run: | cat << EOF >> $GITHUB_ENV RUST_TEST_THREADS=1 - OPENDAL_PERSY_DATAFILE=${{ runner.temp }}/test.persy + OPENDAL_PERSY_DATAFILE=/tmp/test.persy OPENDAL_PERSY_SEGMENT=data OPENDAL_PERSY_INDEX=index EOF