Skip to content

Commit

Permalink
Merge branch 'apache:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
tieredblocks authored May 13, 2022
2 parents 6e4cbbd + 465b0cf commit 4c66adc
Show file tree
Hide file tree
Showing 3,979 changed files with 494,438 additions and 139,091 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 11 additions & 1 deletion .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,14 @@ github:
- nosql
- big-data
- java
- tsdb
- tsdb
features:
wiki: true
issues: true
enabled_merge_buttons:
# enable squash button:
squash: true
# enable merge button:
merge: false
# disable rebase button:
rebase: true
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
97 changes: 97 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
#
# 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: 2

updates:
- package-ecosystem: maven
directory: "/"
schedule:
interval: monthly
target-branch: "master"
ignore:
- dependency-name: "*"
update-types: [ "version-update:semver-major", "version-update:semver-minor" ]
labels:
- "master"
- "dependencies"
- "java"

- package-ecosystem: maven
directory: "/"
schedule:
interval: monthly
target-branch: "rel/0.13"
ignore:
- dependency-name: "*"
update-types: [ "version-update:semver-major", "version-update:semver-minor" ]
labels:
- "0.13"
- "dependencies"
- "java"

- package-ecosystem: maven
directory: "/"
schedule:
interval: monthly
target-branch: "rel/0.12"
ignore:
- dependency-name: "*"
update-types: [ "version-update:semver-major", "version-update:semver-minor" ]
labels:
- "0.12"
- "dependencies"
- "java"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
target-branch: "master"
ignore:
- dependency-name: "*"
update-types: [ "version-update:semver-major", "version-update:semver-minor" ]
labels:
- "master"
- "dependencies"
- "github_actions"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
target-branch: "rel/0.13"
ignore:
- dependency-name: "*"
update-types: [ "version-update:semver-major", "version-update:semver-minor" ]
labels:
- "0.13"
- "dependencies"
- "github_actions"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
target-branch: "rel/0.12"
ignore:
- dependency-name: "*"
update-types: [ "version-update:semver-major", "version-update:semver-minor" ]
labels:
- "0.12"
- "dependencies"
- "github_actions"
103 changes: 103 additions & 0 deletions .github/workflows/client-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

# CPP compiling is too slow, so let's do it in parallel with testing other modules.
# As there is no Java client, we just use one JDK.
name: C++ Client

on:
push:
branches:
- master
- "rel/*"
- "new_*"
pull_request:
branches:
- master
- "rel/*"
- "new_*"
# allow manually run the action:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3

jobs:
build:
strategy:
fail-fast: false
max-parallel: 20
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os}}

steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: 11
- name: Install CPP Dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
shell: bash
run: sudo apt-get update && sudo apt-get install libboost-all-dev
- name: Install CPP Dependencies (Mac)`
if: matrix.os == 'macos-latest'
shell: bash
run: |
brew install boost
brew install bison
echo 'export PATH=/usr/local/opt/bison/bin:$PATH' >> ~/.bash_profile
source ~/.bash_profile && export LDFLAGS="-L/usr/local/opt/bison/lib"
brew install openssl
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: client-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
- name: Test with Maven
run: mvn -B clean integration-test -P compile-cpp -Dtsfile.test.skip=true -Djdbc.test.skip=true -Diotdb.test.skip=true -Dcommons.test.skip=true -Dtest.port.closed=true -pl server,client-cpp,example/client-cpp-example -am

build-win:
strategy:
fail-fast: false
max-parallel: 20
matrix:
os: [windows-latest]
runs-on: ${{ matrix.os}}

steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: client-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
- name: Install Win_Flex_Bison
run: mkdir D:\a\cpp ; `
Invoke-WebRequest https://github.com/lexxmark/winflexbison/releases/download/v2.5.24/win_flex_bison-2.5.24.zip -OutFile D:\a\cpp\win_flex_bison.zip ; `
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";D:\a\cpp", "User") ; `
- name: Download Boost
run: choco install boost-msvc-14.3 --version=1.78.0
- name: Install Boost
run: cd C:\local\boost_1_78_0 ; `
.\bootstrap.bat ; `
.\b2.exe
- name: Install OpenSSL
run: choco install openssl
- name: Add Flex and Bison Path and OpenSSL
shell: bash
run: cd /d/a/cpp && unzip win_flex_bison.zip && mv win_flex.exe flex.exe && mv win_bison.exe bison.exe && echo 'export PATH=/d/a/cpp:$PATH' >> ~/.bash_profile && source ~/.bash_profile
- name: Test with Maven
shell: bash
run: source ~/.bash_profile && mvn -B clean integration-test -P compile-cpp -Dboost.include.dir=/c/local/boost_1_78_0 -Dboost.library.dir=/c/local/boost_1_78_0/stage/lib -Dtsfile.test.skip=true -Djdbc.test.skip=true -Diotdb.test.skip=true -Dcommons.test.skip=true -Dtest.port.closed=true -Denforcer.skip=true -pl server,client-cpp,example/client-cpp-example -am -Dcmake.url="https://github.com/Kitware/CMake/releases/download/v3.21.6/cmake-3.21.6-windows-x86_64.zip" -Dcmake.root.dir=/D/a/iotdb/iotdb/compile-tools/thrift/target/cmake-3.21.6-windows-x86_64/ -Dcmake.generator="Visual Studio 17 2022"
9 changes: 9 additions & 0 deletions .github/workflows/client-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,26 @@ on:
branches:
- master
- 'rel/*'
- "new_*"
paths-ignore:
- 'docs/**'
pull_request:
branches:
- master
- 'rel/*'
- "new_*"
paths-ignore:
- 'docs/**'
# allow manually run the action:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3

jobs:
unix:
strategy:
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/client-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This workflow is just for checking whether modifications works for the Python client.

name: Python Client

on:
push:
branches:
- master
- 'rel/*'
- "new_*"
paths-ignore:
- 'docs/**'
pull_request:
branches:
- master
- 'rel/*'
- "new_*"
paths-ignore:
- 'docs/**'
# allow manually run the action:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3

jobs:
unix:
strategy:
fail-fast: false
max-parallel: 20
matrix:
java: [ 11 ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os}}

steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
- name: Build IoTDB server distribution zip and python client
run: mvn -B clean install -pl distribution,client-py -am -DskipTests
- name: Build IoTDB server docker image
run: |
docker build . -f docker/src/main/Dockerfile-single -t "iotdb:dev"
docker images
- name: Install IoTDB python client requirements
run: pip3 install -r client-py/requirements_dev.txt
- name: Integration test
shell: bash
run: |
cd client-py && pytest .
Loading

0 comments on commit 4c66adc

Please sign in to comment.