From dc08c88c13269dd83af4d9e003bd7c7fea8d56d4 Mon Sep 17 00:00:00 2001 From: G-XD Date: Thu, 26 Oct 2023 23:48:34 +0800 Subject: [PATCH] refactor(services/dashmap): migrate to test planner (#3396) * refactor(services/dashmap): migrate to test planner * chore(services/memcached): update docker services name --- .github/services/dashmap/dashmap/action.yml | 27 +++++++++ .github/workflows/service_test_dashmap.yml | 57 ------------------- .../memcached/docker-compose-memcached.yml | 2 +- 3 files changed, 28 insertions(+), 58 deletions(-) create mode 100644 .github/services/dashmap/dashmap/action.yml delete mode 100644 .github/workflows/service_test_dashmap.yml diff --git a/.github/services/dashmap/dashmap/action.yml b/.github/services/dashmap/dashmap/action.yml new file mode 100644 index 000000000000..bb4378dbb0b2 --- /dev/null +++ b/.github/services/dashmap/dashmap/action.yml @@ -0,0 +1,27 @@ +# 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: dashmap +description: 'Behavior test for Dashmap' + +runs: + using: "composite" + steps: + - name: Setup + shell: bash + run: | + echo "OPENDAL_DASHMAP_ROOT=${{ runner.temp }}/" >> $GITHUB_ENV diff --git a/.github/workflows/service_test_dashmap.yml b/.github/workflows/service_test_dashmap.yml deleted file mode 100644 index 4c4afca982fa..000000000000 --- a/.github/workflows/service_test_dashmap.yml +++ /dev/null @@ -1,57 +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 Dashmap - -on: - push: - branches: - - main - pull_request: - branches: - - main - paths: - - "core/src/**" - - "core/tests/**" - - "!core/src/docs/**" - - "!core/src/services/**" - - "core/src/services/dashmap/**" - - ".github/workflows/service_test_dashmap.yml" - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} - cancel-in-progress: true - -jobs: - dashmap: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: - - 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 --features services-dashmap - env: - OPENDAL_TEST: dashmap diff --git a/fixtures/memcached/docker-compose-memcached.yml b/fixtures/memcached/docker-compose-memcached.yml index d365499d587a..64d729c1ff63 100644 --- a/fixtures/memcached/docker-compose-memcached.yml +++ b/fixtures/memcached/docker-compose-memcached.yml @@ -18,7 +18,7 @@ version: '3.8' services: - redis: + memcached: image: bitnami/memcached environment: # memcache's max item size is 1MiB, But opendal's behavior tests