Automated fix for refs/heads/master (#33743)

PanCakes to the rescue!

We noticed that our 'sanity' test was going to fail, but we think we can
fix that automatically, so we put together this PR to do just that!

If you'd like to opt-out of these PR's, add yourself to NO_AUTOFIX_USERS
in .github/workflows/pr-auto-fix.yaml

Co-authored-by: Vignesh2208 <Vignesh2208@users.noreply.github.com>
pull/33748/head
github-actions[bot] 2 years ago committed by GitHub
parent 107e4dc0b6
commit 1821eaa2e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/buildgen/extract_metadata_from_bazel_xml.py
  2. 10
      tools/distrib/python/make_grpcio_tools.py

@ -738,9 +738,7 @@ def _exclude_unwanted_cc_tests(tests: List[str]) -> List[str]:
# we have not added otel dependency outside of bazel
tests = [
test
for test in tests
if not test.startswith("test/cpp/ext/otel:")
test for test in tests if not test.startswith("test/cpp/ext/otel:")
]
# missing opencensus/stats/stats.h

@ -238,15 +238,19 @@ def _delete_source_tree(target):
print("Deleting copied folder %s" % (target_abs))
shutil.rmtree(target_abs, ignore_errors=True)
def main():
parser = argparse.ArgumentParser()
# In Step 1 below, the third_party folder is copied to a location required
# by the build scripts. This folder does not need to be committed to the
# repo, so you can pass `--cleanup_third_party` in automated scripts to
# by the build scripts. This folder does not need to be committed to the
# repo, so you can pass `--cleanup_third_party` in automated scripts to
# ensure that the temporary folders are deleted after the script runs.
# See Jan's TODO in _copy_source_tree above.
parser.add_argument(
"--cleanup_third_party", default=False, action="store_true", help="Delete the temporary third_party folder"
"--cleanup_third_party",
default=False,
action="store_true",
help="Delete the temporary third_party folder",
)
args = parser.parse_args()
os.chdir(GRPC_ROOT)

Loading…
Cancel
Save