Skip to content

Commit

Permalink
Merge branch 'apache:master' into app_black_list
Browse files Browse the repository at this point in the history
  • Loading branch information
ruojieranyishen authored Nov 9, 2023
2 parents 2d012fb + 85f3e74 commit 278558b
Show file tree
Hide file tree
Showing 119 changed files with 1,435 additions and 631 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/standardization_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,6 @@ jobs:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.13

related_issue:
name: Check issue
runs-on: ubuntu-latest
steps:
- uses: neofinancial/ticket-check-action@v1.3.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
titleFormat: '%title%'
quiet: true
bodyRegex: '#(\d+)'
bodyURLRegex: 'http(s?):\/\/(github.com)(\/apache)(\/incubator-pegasus)(\/issues)\/\d+'

dockerfile_linter:
name: Lint Dockerfile
runs-on: ubuntu-latest
Expand Down
98 changes: 57 additions & 41 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,80 +20,104 @@ header:
copyright-owner: Apache Software Foundation

paths-ignore:
# Configuration files that could not be added with copyright info (otherwise would lead to error).
- '.rat-excludes'
- '**/*.csv'
- '**/*.json'
# All the type of licenses of this project should be added to LICENSE.
- 'DISCLAIMER-WIP'
- 'LICENSE'
- 'NOTICE'
- '.github/pull_request_template.md'
# Template files of issues and pull requests for Github.
- '.github/ISSUE_TEMPLATE/bug_report.md'
- '.github/ISSUE_TEMPLATE/feature-request.md'
- '.github/ISSUE_TEMPLATE/general_question.md'
- '.rat-excludes'
- 'DISCLAIMER-WIP'
- '.github/pull_request_template.md'
# Image files for docs.
- '**/*.jpg'
- '**/*.png'
# Files in pdf format.
- '**/*.pdf'
# Special files for golang.
- '**/go.sum'
# TODO(wangdan): Generated files for go client, could generate dynamically?
- 'go-client/idl/base/GoUnusedProtection__.go'
- 'go-client/idl/base/dsn_err_string.go'
- 'go-client/idl/base/rocskdb_err_string.go'
# Special files for nodejs.
- '**/.npmigonre'
# Special files for python.
- 'python-client/requirement.txt'
- '.devcontainer/devcontainer.json'
# Text files used for tests and could not be added with copyright info (otherwise would lead to error).
- 'src/aio/test/copy_source.txt'
- 'src/runtime/test/command.txt'
- 'src/failure_detector/test/gtest.filter'
- 'src/meta/test/meta_state/gtest.filter'
- 'src/meta/test/suite1'
- 'src/meta/test/suite2'
- 'src/nfs/test/nfs_test_file1'
- 'src/nfs/test/nfs_test_file2'
- 'src/runtime/test/gtest.filter'
# Used for tests and should be empty, or ignore all comment lines (otherwise would lead to error).
- 'src/utils/test/config-empty.ini'
# Binary files used for tests and could not be added with copyright info (otherwise would lead to error).
- 'src/replica/duplication/test/log.1.0.handle_real_private_log'
- 'src/replica/duplication/test/log.1.0.handle_real_private_log2'
- 'src/replica/duplication/test/log.1.0.all_loaded_are_write_empties'
# Used for patches for thirdparties.
- 'thirdparty/fix_fds_for_macos.patch'
- 'thirdparty/fix_jemalloc_for_m1_on_macos.patch'
- 'thirdparty/fix_libevent_for_macos.patch'
- 'thirdparty/fix_prometheus-cpp_limits.patch'
- 'thirdparty/fix_s2_for_aarch64.patch'
- 'thirdparty/fix_thrift_for_cpp11.patch'
- 'thirdparty/rocksdb_fix_atomic_flush_0879c240.patch'
# TODO(yingchun): shell/* files are import from thirdparties, we can move them to thirdparty later.
# Copyright (c) 2016, Adi Shavit
- 'src/shell/argh.h'
# Copyright (c) 2010-2016, Salvatore Sanfilippo, etc.
- 'src/shell/linenoise/linenoise.c'
# Copyright (c) 2010-2014, Salvatore Sanfilippo, etc.
- 'src/shell/linenoise/linenoise.h'
# Copyright (c) 2006-2015, Salvatore Sanfilippo, etc.
- 'src/shell/sds/sds.c'
- 'src/shell/sds/sds.h'
- 'src/shell/sds/sdsalloc.h'
- '**/go.sum'
- '**/*.csv'
- '**/*.json'
- 'go-client/idl/base/dsn_err_string.go'
- 'go-client/idl/base/rocskdb_err_string.go'
- 'go-client/idl/base/GoUnusedProtection__.go'
- '**/.npmigonre'
# Copyright (c) Facebook, Inc
- 'src/utils/TokenBucket.h'
- 'src/utils/test/TokenBucketTest.cpp'
- 'src/utils/test/TokenBucketTest.h'
# https://github.com/preshing/modern-cpp-threading/blob/master/LICENSE
- 'src/utils/hpc_locks/autoreseteventcondvar.h'
# https://github.com/preshing/cpp11-on-multicore/blob/master/LICENSE
- 'src/utils/hpc_locks/autoresetevent.h'
- 'src/utils/hpc_locks/autoreseteventcondvar.h'
- 'src/utils/hpc_locks/benaphore.h'
- 'src/utils/hpc_locks/bitfield.h'
- 'src/utils/hpc_locks/readme.txt'
- 'src/utils/hpc_locks/rwlock.h'
- 'src/utils/hpc_locks/sema.h'
# Copyright (c) xxxx The Chromium Authors
# Copyright (c) 2011 The Chromium Authors
- 'src/utils/safe_strerror_posix.h'
# Copyright (c) 2012 The Chromium Authors
- 'src/runtime/build_config.h'
- 'src/utils/test/autoref_ptr_test.cpp'
# Copyright (c) 2006-2009 The Chromium Authors
- 'src/utils/safe_strerror_posix.cpp'
# Copyright 2017 The Abseil Authors
- 'src/utils/absl/base/internal/invoke.h'
- 'src/utils/absl/utility/utility.h'
- 'src/utils/memutil.h'
- 'src/utils/smart_pointers.h'
- 'src/utils/string_view.cpp'
- 'src/utils/string_view.h'
- 'src/utils/test/memutil_test.cpp'
- 'src/utils/test/string_view_test.cpp'
- 'src/utils/test/smart_pointers_test.cpp'
- 'src/utils/memutil.h'
- 'src/utils/string_view.cpp'
- 'src/utils/test/string_view_test.cpp'
# Copyright (c) 2010-2011, Rob Jansen
- 'cmake_modules/FindRT.cmake'
- 'cmake_modules/FindDL.cmake'
# Copyright (c) 2017 Guillaume Papin
- 'scripts/run-clang-format.py'
# need manual fix
- 'src/failure_detector/test/gtest.filter'
- 'src/meta/test/meta_state/gtest.filter'
- 'src/meta/test/suite1'
- 'src/meta/test/suite2'
- 'src/nfs/test/nfs_test_file1'
- 'src/nfs/test/nfs_test_file2'
- 'src/runtime/test/gtest.filter'
- 'thirdparty/fix_fds_for_macos.patch'
- 'thirdparty/fix_jemalloc_for_m1_on_macos.patch'
- 'thirdparty/fix_libevent_for_macos.patch'
- 'thirdparty/fix_prometheus-cpp_limits.patch'
- 'thirdparty/fix_s2_for_aarch64.patch'
- 'thirdparty/fix_thrift_for_cpp11.patch'
- 'thirdparty/rocksdb_fix_atomic_flush_0879c240.patch'
# should be empty, or ignore all comment lines
- 'src/utils/test/config-empty.ini'
# The MIT License (MIT), Copyright (c) 2015 Microsoft Corporation
- 'cmake_modules/BaseFunctions.cmake'
- 'docs/rdsn-README.md'
Expand All @@ -105,15 +129,13 @@ header:
- 'idl/replica_admin.thrift'
- 'scripts/compile_thrift.py'
- 'scripts/learn_stat.py'
- 'src/common/api_common.h'
- 'src/runtime/api_layer1.h'
- 'src/runtime/api_task.h'
- 'src/utils/api_utilities.h'
- 'src/runtime/app_model.h'
- 'src/common/json_helper.h'
- 'src/runtime/rpc/rpc_stream.h'
- 'src/runtime/rpc/serialization.h'
- 'src/common/serialization_helper/dsn.layer2_types.h'
- 'src/common/serialization_helper/dsn_types.h'
- 'src/common/serialization_helper/thrift_helper.h'
- 'src/runtime/serverlet.h'
Expand All @@ -131,7 +153,6 @@ header:
- 'src/client/partition_resolver.h'
- 'src/replica/replica_base.h'
- 'src/common/replica_envs.h'
- 'src/replica/replica_test_utils.h'
- 'src/common/replication.codes.h'
- 'src/replica/replication_app_base.h'
- 'src/client/replication_ddl_client.h'
Expand Down Expand Up @@ -187,7 +208,6 @@ header:
- 'src/utils/configuration.h'
- 'src/utils/crc.h'
- 'src/utils/customizable_id.h'
- 'src/utils/dlib.h'
- 'src/utils/enum_helper.h'
- 'src/utils/error_code.h'
- 'src/utils/errors.h'
Expand Down Expand Up @@ -220,7 +240,6 @@ header:
- 'src/aio/test/aio.cpp'
- 'src/aio/test/clear.sh'
- 'src/aio/test/config.ini'
- 'src/aio/test/copy_source.txt'
- 'src/aio/test/run.sh'
- 'src/block_service/test/config-test.ini'
- 'src/client/CMakeLists.txt'
Expand Down Expand Up @@ -363,7 +382,6 @@ header:
- 'src/replica/replica_learn.cpp'
- 'src/replica/replica_stub.cpp'
- 'src/replica/replica_stub.h'
- 'src/replica/replica_test_utils.cpp'
- 'src/replica/replication_app_base.cpp'
- 'src/replica/replication_service_app.cpp'
- 'src/replica/split/test/config-test.ini'
Expand Down Expand Up @@ -514,7 +532,6 @@ header:
- 'src/replica/test/run.sh'
- 'src/runtime/CMakeLists.txt'
- 'src/runtime/core_main.cpp'
- 'src/runtime/dsn.layer2_types.cpp'
- 'src/runtime/env.sim.cpp'
- 'src/runtime/env.sim.h'
- 'src/runtime/fault_injector.cpp'
Expand Down Expand Up @@ -569,7 +586,6 @@ header:
- 'src/runtime/test/address_test.cpp'
- 'src/runtime/test/async_call.cpp'
- 'src/runtime/test/clear.sh'
- 'src/runtime/test/command.txt'
- 'src/runtime/test/config-test-corrupt-message.ini'
- 'src/runtime/test/config-test-sim.ini'
- 'src/runtime/test/config-test.ini'
Expand Down
48 changes: 41 additions & 7 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ limitations under the License.

--------------------------------------------------------------------------------

src/shell/linenoise/* - BSD-2-Clause License
src/shell/linenoise/linenoise.h - BSD-2-Clause License
src/shell/linenoise/LICENSE

Copyright (c) 2010-2014, Salvatore Sanfilippo <antirez at gmail dot com>
Copyright (c) 2010-2013, Pieter Noordhuis <pcnoordhuis at gmail dot com>
Expand Down Expand Up @@ -263,6 +264,38 @@ src/shell/linenoise/* - BSD-2-Clause License

--------------------------------------------------------------------------------

src/shell/linenoise/linenoise.c - BSD-2-Clause License

Copyright (c) 2010-2016, Salvatore Sanfilippo <antirez at gmail dot com>
Copyright (c) 2010-2013, Pieter Noordhuis <pcnoordhuis at gmail dot com>

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------------------

src/shell/sds/* - BSD-2-Clause License

Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com>
Expand Down Expand Up @@ -327,12 +360,12 @@ src/shell/argh.h - BSD-3-Clause License

--------------------------------------------------------------------------------

src/utils/smart_pointers.h - Apache 2.0 License
src/utils/string_view.h
src/utils/absl/base/internal/invoke.h
src/utils/absl/base/internal/invoke.h - Apache 2.0 License
src/utils/absl/utility/utility.h
src/utils/memutil.h
src/utils/smart_pointers.h
src/utils/string_view.cpp
src/utils/string_view.h
src/utils/test/memutil_test.cpp
src/utils/test/smart_pointers_test.cpp
src/utils/test/string_view_test.cpp
Expand Down Expand Up @@ -406,11 +439,12 @@ limitations under the License.
--------------------------------------------------------------------------------

src/utils/hpc_locks/autoreseteventcondvar.h - zlib License
src/utils/hpc_locks/rwlock.h
src/utils/hpc_locks/autoresetevent.h
src/utils/hpc_locks/sema.h
src/utils/hpc_locks/bitfield.h
src/utils/hpc_locks/benaphore.h
src/utils/hpc_locks/bitfield.h
src/utils/hpc_locks/readme.txt
src/utils/hpc_locks/rwlock.h
src/utils/hpc_locks/sema.h

Copyright (c) 2015 Jeff Preshing

Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Apache Pegasus
Copyright 2022 The Apache Software Foundation
Copyright 2023 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
2 changes: 1 addition & 1 deletion docker/pegasus-build-env/ubuntu1804/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ RUN add-apt-repository ppa:git-core/ppa -y; \
apt-get install pkg-config -y --no-install-recommends; \
rm -rf /var/lib/apt/lists/*

RUN pip3 install --upgrade pip && pip3 install --no-cache-dir cmake
RUN pip3 install --no-cache-dir --upgrade pip && pip3 install --no-cache-dir cmake

RUN wget --progress=dot:giga https://github.com/apache/thrift/archive/refs/tags/0.11.0.tar.gz -P /opt/thrift && \
cd /opt/thrift && tar xzf 0.11.0.tar.gz && cd thrift-0.11.0 && ./bootstrap.sh && \
Expand Down
2 changes: 1 addition & 1 deletion java-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</parent>
<groupId>org.apache.pegasus</groupId>
<artifactId>pegasus-client</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.5.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Pegasus Java Client</name>

Expand Down
4 changes: 2 additions & 2 deletions java-client/scripts/ci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ cd ../


pushd scripts
echo "bash recompile_thrift.sh"
bash recompile_thrift.sh
echo "run recompile_thrift.sh"
./recompile_thrift.sh
popd
mvn spotless:apply

Expand Down
2 changes: 1 addition & 1 deletion nodejs-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pegasus-nodejs-client",
"version": "1.0.14",
"version": "2.5.0",
"description": "offical pegasus nodejs client",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion python-client/pypegasus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
# specific language governing permissions and limitations
# under the License.

__version__ = '0.0.1.2'
__version__ = '2.5.0'
4 changes: 2 additions & 2 deletions scala-client/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

version := "2.2.0-3-release"
version := "2.5.0-SNAPSHOT"

organization := "org.apache"

Expand Down Expand Up @@ -54,6 +54,6 @@ credentials += Credentials(

libraryDependencies ++= Seq(
"com.google.guava" % "guava" % "21.0",
"org.apache.pegasus" % "pegasus-client" % "2.4-SNAPSHOT",
"org.apache.pegasus" % "pegasus-client" % "2.5.0-SNAPSHOT",
"org.scalatest" %% "scalatest" % "3.0.3" % Test
)
4 changes: 4 additions & 0 deletions scala-client/scripts/ci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck
git clone https://github.com/apache/incubator-pegasus.git
cd incubator-pegasus/java-client
git checkout master
cd scripts
echo "run recompile_thrift.sh"
./recompile_thrift.sh
cd ..
mvn clean package -DskipTests -Dcheckstyle.skip=true
mvn clean install -DskipTests -Dcheckstyle.skip=true
cd ..
Expand Down
Loading

0 comments on commit 278558b

Please sign in to comment.