You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by su...@apache.org on 2023/10/25 16:38:11 UTC

[incubator-opendal] branch service-cache-test-planner updated (acf245480 -> 58e031a2a)

This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a change to branch service-cache-test-planner
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


    omit acf245480 refactor(services/memcached): migrate to test planner
     add c5333ea3e feat(binding/java): add list & remove_all support (#3333)
     new 58e031a2a refactor(services/memcached): migrate to test planner

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (acf245480)
            \
             N -- N -- N   refs/heads/service-cache-test-planner (58e031a2a)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/bindings_java.yml                |  12 --
 bindings/java/src/blocking_operator.rs             |  58 ++++++
 bindings/java/src/lib.rs                           |  84 ++++++--
 .../java/org/apache/opendal/BlockingOperator.java  |  14 ++
 .../opendal/{package-info.java => Entry.java}      |  17 +-
 .../src/main/java/org/apache/opendal/Metadata.java |  58 +++++-
 .../src/main/java/org/apache/opendal/Operator.java |  18 ++
 bindings/java/src/operator.rs                      |  84 ++++++++
 .../opendal/test/behavior/AsyncListTest.java       | 212 +++++++++++++++++++++
 .../opendal/test/behavior/BlockingCopyTest.java    |   8 +-
 .../opendal/test/behavior/BlockingListTest.java    | 106 +++++++++++
 .../opendal/test/behavior/BlockingRenameTest.java  |  14 +-
 12 files changed, 638 insertions(+), 47 deletions(-)
 copy bindings/java/src/main/java/org/apache/opendal/{package-info.java => Entry.java} (78%)
 create mode 100644 bindings/java/src/test/java/org/apache/opendal/test/behavior/AsyncListTest.java
 create mode 100644 bindings/java/src/test/java/org/apache/opendal/test/behavior/BlockingListTest.java


[incubator-opendal] 01/01: refactor(services/memcached): migrate to test planner

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a commit to branch service-cache-test-planner
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 58e031a2a3d5bd09f8e252e3ddf076b61b72438c
Author: suyanhanx <su...@gmail.com>
AuthorDate: Wed Oct 25 22:11:04 2023 +0800

    refactor(services/memcached): migrate to test planner
    
    Signed-off-by: suyanhanx <su...@gmail.com>
---
 .github/services/memcached/memcached/action.yml | 34 ++++++++++++
 .github/workflows/service_test_memcached.yml    | 69 -------------------------
 fixtures/memcached/docker-compose-memcached.yml | 30 +++++++++++
 3 files changed, 64 insertions(+), 69 deletions(-)

diff --git a/.github/services/memcached/memcached/action.yml b/.github/services/memcached/memcached/action.yml
new file mode 100644
index 000000000..360de1d79
--- /dev/null
+++ b/.github/services/memcached/memcached/action.yml
@@ -0,0 +1,34 @@
+# 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: memcached
+description: 'Behavior test for memcached'
+
+runs:
+  using: "composite"
+  steps:
+    - name: Setup memcached server
+      shell: bash
+      working-directory: fixtures/memcached
+      run: docker-compose -f docker-compose-memcached.yml up -d
+    - name: Setup
+      shell: bash
+      run: |
+        cat << EOF >> $GITHUB_ENV
+        OPENDAL_MEMCACHED_ENDPOINT=tcp://127.0.0.1:11211
+        OPENDAL_MEMCACHED_ROOT=/
+        EOF
diff --git a/.github/workflows/service_test_memcached.yml b/.github/workflows/service_test_memcached.yml
deleted file mode 100644
index 785265059..000000000
--- a/.github/workflows/service_test_memcached.yml
+++ /dev/null
@@ -1,69 +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 Memcached
-
-on:
-  push:
-    branches:
-      - main
-  pull_request:
-    branches:
-      - main
-    paths:
-      - "core/src/**"
-      - "core/tests/**"
-      - "!core/src/docs/**"
-      - "!core/src/services/**"
-      - "core/src/services/memcached/**"
-      - ".github/workflows/service_test_memcached.yml"
-
-concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
-  cancel-in-progress: true
-
-jobs:
-  memcached:
-    runs-on: ubuntu-latest
-
-    # Setup memcached server
-    services:
-      memcached:
-        image: bitnami/memcached
-        env:
-          # memcache's max item size is 1MiB, But opendal's behavior tests
-          # will produce larger file.
-          #
-          # Specify the setting here to make our test happy.
-          MEMCACHED_MAX_ITEM_SIZE: 16777216
-        ports:
-          - 11211:11211
-
-    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-memcached
-        env:
-          OPENDAL_TEST: memcached
-          OPENDAL_MEMCACHED_ENDPOINT: tcp://127.0.0.1:11211
-          OPENDAL_MEMCACHED_ROOT: /
diff --git a/fixtures/memcached/docker-compose-memcached.yml b/fixtures/memcached/docker-compose-memcached.yml
new file mode 100644
index 000000000..d365499d5
--- /dev/null
+++ b/fixtures/memcached/docker-compose-memcached.yml
@@ -0,0 +1,30 @@
+# 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.
+
+version: '3.8'
+
+services:
+  redis:
+    image: bitnami/memcached
+    environment:
+      # memcache's max item size is 1MiB, But opendal's behavior tests
+      # will produce larger file.
+      #
+      # Specify the setting here to make our test happy.
+      MEMCACHED_MAX_ITEM_SIZE: 16777216
+    ports:
+      - '11211:11211'