Skip to content

feat: gcs insert object support cache control (#2974) #417

feat: gcs insert object support cache control (#2974)

feat: gcs insert object support cache control (#2974) #417

# 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 TiKV
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- "core/src/**"
- "core/tests/**"
- "!core/src/docs/**"
- "!core/src/services/**"
- "core/src/services/tikv/**"
- ".github/workflows/service_test_tikv.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
tikv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install tiup
run: curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
- name: start tiup playground
run: |
# use latest stable version
~/.tiup/bin/tiup install tikv pd
~/.tiup/bin/tiup playground --mode tikv-slim --kv 3 --without-monitor --kv.config tikv.toml --pd.config pd.toml &
while :; do
echo "waiting cluster to be ready"
[[ "$(curl -I http://127.0.0.1:2379/pd/api/v1/regions 2>/dev/null | head -n 1 | cut -d$' ' -f2)" -ne "405" ]] || break
sleep 1
done
working-directory: core/src/services/tikv/fixtures/
- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
need-protoc: true
need-nextest: true
- name: Test
shell: bash
working-directory: core
run: cargo nextest run tikv --features services-tikv
env:
RUST_BACKTRACE: full
RUST_LOG: debug
OPENDAL_TIKV_TEST: on
OPENDAL_TIKV_ENDPOINTS: "127.0.0.1:2379"
OPENDAL_TIKV_INSECURE: true