From e6c6a02a0feeb2e6d2a2f08846681f2835e3ff14 Mon Sep 17 00:00:00 2001 From: suyanhanx Date: Thu, 26 Oct 2023 20:15:15 +0800 Subject: [PATCH 1/2] refactor(services/memory): migrate to test planner Signed-off-by: suyanhanx --- .github/services/memory/memory/action.yml | 22 ++++++++++++++++++++++ .github/workflows/service_test_memory.yml | 15 --------------- 2 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 .github/services/memory/memory/action.yml diff --git a/.github/services/memory/memory/action.yml b/.github/services/memory/memory/action.yml new file mode 100644 index 000000000000..ad0f135319e1 --- /dev/null +++ b/.github/services/memory/memory/action.yml @@ -0,0 +1,22 @@ +# 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: memory +description: 'Behavior test for memory' + +runs: + using: "composite" diff --git a/.github/workflows/service_test_memory.yml b/.github/workflows/service_test_memory.yml index f2fa0a11697d..3277a4a67799 100644 --- a/.github/workflows/service_test_memory.yml +++ b/.github/workflows/service_test_memory.yml @@ -37,21 +37,6 @@ concurrency: cancel-in-progress: true jobs: - memory: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup Rust toolchain - uses: ./.github/actions/setup - with: - need-nextest: true - - name: Test - shell: bash - working-directory: core - run: cargo nextest run behavior - env: - OPENDAL_TEST: memory - python: runs-on: ubuntu-latest steps: From f8c608258c54bed662efb0ff7fd5ce5ed273fdfd Mon Sep 17 00:00:00 2001 From: suyanhanx Date: Thu, 26 Oct 2023 20:19:59 +0800 Subject: [PATCH 2/2] add setup step Signed-off-by: suyanhanx --- .github/services/memory/memory/action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/services/memory/memory/action.yml b/.github/services/memory/memory/action.yml index ad0f135319e1..ed8fbe1d7a2b 100644 --- a/.github/services/memory/memory/action.yml +++ b/.github/services/memory/memory/action.yml @@ -20,3 +20,8 @@ description: 'Behavior test for memory' runs: using: "composite" + steps: + - name: Setup + shell: bash + run: | + echo "OPENDAL_MEMORY_ROOT=${{ runner.temp }}/" >> $GITHUB_ENV