Skip to content

Commit

Permalink
Native source sync at revision @
Browse files Browse the repository at this point in the history
  • Loading branch information
HannahShiSFB authored Feb 12, 2023
1 parent 883dc1f commit d2e085f
Show file tree
Hide file tree
Showing 4,626 changed files with 528,917 additions and 114,752 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
21 changes: 13 additions & 8 deletions native/.clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,26 @@
# - bugprone-reserved-identifier
# Some macros need to be defined for portability purpose; e.g. _BSD_SOURCE.
#
# - google-upgrade-googletest-case
# This requires googletest 1.10 which is higher than ones installed on many linux distributions.
#
# - modernize-redundant-void-arg
# Some source should be strictly C99 and func(void) should be used.
#
# Note on checks which will be enabled in future. These are good to have but
# it's not activated yet due to the existing issues with the checks.
# Once those issues are clear, these checks can be enabled later.
#
# - bugprone-assignment-in-if-condition
# - bugprone-branch-clone
# - bugprone-easily-swappable-parameters,
# - bugprone-easily-swappable-parameters
# - bugprone-implicit-widening-of-multiplication-result
# - bugprone-infinite-loop
# - bugprone-narrowing-conversions
# - bugprone-not-null-terminated-result
# - bugprone-signed-char-misuse
# - bugprone-sizeof-expression
# - bugprone-too-small-loop-variable
# - bugprone-unchecked-optional-access
# - clang-diagnostic-deprecated-declarations
# - clang-diagnostic-unused-function
# - google-readability-avoid-underscore-in-googletest-name
# - google-runtime-int
# - google-runtime-references
# - modernize-avoid-bind
Expand All @@ -55,6 +53,7 @@ Checks: '-*,
abseil-*,
-abseil-no-namespace,
bugprone-*,
-bugprone-assignment-in-if-condition,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-implicit-widening-of-multiplication-result,
Expand All @@ -65,11 +64,10 @@ Checks: '-*,
-bugprone-signed-char-misuse,
-bugprone-sizeof-expression,
-bugprone-too-small-loop-variable,
-bugprone-unchecked-optional-access,
google-*,
-google-readability-avoid-underscore-in-googletest-name,
-google-runtime-int,
-google-runtime-references,
-google-upgrade-googletest-case,
performance-*,
-performance-no-automatic-move,
-performance-no-int-to-ptr,
Expand Down Expand Up @@ -108,17 +106,22 @@ Checks: '-*,
modernize-use-nullptr,
modernize-use-override,
modernize-use-transparent-functors,
readability-braces-around-statements,
readability-const-return-type,
readability-container-size-empty,
readability-delete-null-pointer,
readability-deleted-default,
readability-duplicate-include,
readability-function-size,
readability-inconsistent-declaration-parameter-name,
readability-misleading-indentation,
readability-misplaced-array-index,
readability-redundant-access-specifiers,
readability-redundant-control-flow,
readability-redundant-function-ptr-dereference,
readability-redundant-smartptr-get,
readability-redundant-string-cstr,
readability-redundant-string-init,
readability-simplify-boolean-expr,
readability-static-definition-in-anonymous-namespace,
readability-string-compare,
Expand All @@ -131,5 +134,7 @@ CheckOptions:
value: 'absl::make_unique'
- key: modernize-make-unique.MakeSmartPtrFunctionHeader
value: 'absl/memory/memory.h'
- key: google-readability-braces-around-statements.ShortStatementLines
- key: readability-braces-around-statements.ShortStatementLines
value: 1
- key: readability-simplify-boolean-expr.SimplifyDeMorgan
value: false
7 changes: 5 additions & 2 deletions native/.gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@ tools/run_tests/tests.json linguist-generated=true
tools/run_tests/generated/tests.json linguist-generated=true
tools/run_tests/generated/sources_and_headers.json linguist-generated=true
src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h linguist-generated=true
src/core/lib/transport/static_metadata.h linguist-generated=true
src/core/lib/transport/static_metadata.cc linguist-generated=true
src/core/debug/stats_data.h linguist-generated=true
src/core/debug/stats_data.cc linguist-generated=true
src/core/experiments/experiments.h linguist-generated=true
src/core/experiments/experiments.cc linguist-generated=true
bazel/experiments.bzl linguist-generated=true
4 changes: 3 additions & 1 deletion native/.github/ISSUE_TEMPLATE/bug_report_python.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
name: Report a gRPC Python bug
about: Create a report to help us improve
labels: kind/bug, priority/P2, lang/Python
assignees: gnossen
assignees:
- gnossen
- XuanWang-Amos

---

Expand Down
4 changes: 3 additions & 1 deletion native/.github/ISSUE_TEMPLATE/feature_request_python.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
name: Request a gRPC Python feature
about: Suggest an idea for this project
labels: kind/enhancement, priority/P2, lang/Python
assignees: gnossen
assignees:
- gnossen
- XuanWang-Amos

---

Expand Down
8 changes: 8 additions & 0 deletions native/.github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,31 @@ area/infra:

lang/node:
- examples/node/**
- src/compiler/node*

lang/ObjC:
- examples/objective-c/**
- src/compiler/objective_c*
- src/objective-c/**

lang/php:
- examples/php/**
- src/compiler/php*
- src/php/**

lang/python:
- bazel/python_rules.bzl
- examples/python/**
- requirements.bazel.txt
- src/compiler/python*
- src/python/**

lang/ruby:
- examples/ruby/**
- src/compiler/ruby*
- src/ruby/**

"lang/C#":
- src/compiler/csharp*
- src/csharp/**

10 changes: 8 additions & 2 deletions native/.github/workflows/pr-auto-fix.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: PR AutoFix
on: [push]
permissions: {}
jobs:
PRAutoFix:
permissions:
actions: write # to cancel/stop running workflows (styfle/cancel-workflow-action)
contents: write # to create branch (peter-evans/create-pull-request)
pull-requests: write # to create a PR (peter-evans/create-pull-request)

runs-on: ubuntu-latest
steps:
# Cache bazel build
Expand Down Expand Up @@ -78,9 +84,9 @@ jobs:
git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 upstream master
# Run the things!
- name: clang-tidy fixes
run: ${{ github.workspace }}/tools/distrib/clang_tidy_code.sh --fix --only-changed || true
run: ANDROID_NDK_HOME= ${{ github.workspace }}/tools/distrib/clang_tidy_code.sh --fix --only-changed || true
- name: Run sanitize
run: ${{ github.workspace }}/tools/distrib/sanitize.sh
run: ANDROID_NDK_HOME= ${{ github.workspace }}/tools/distrib/sanitize.sh
# Report back with a PR if things are broken
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down
7 changes: 7 additions & 0 deletions native/.github/workflows/pr-auto-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ name: PR AutoTag
on:
pull_request_target:
types: [opened, reopened, synchronized, edited]
permissions:
contents: read # to determine modified files (actions/labeler)

jobs:
triage:
permissions:
contents: read # to determine modified files (actions/labeler)
pull-requests: write # to add labels to PRs (actions/labeler)

runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v3
Expand Down
1 change: 1 addition & 0 deletions native/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# C/C++ build outputs
.build/
build/
bins
gens
libs
Expand Down
Loading

0 comments on commit d2e085f

Please sign in to comment.