Imported Upstream version 1.33.1
[platform/upstream/grpc.git] / tools / run_tests / sanity / check_bazel_workspace.py
index b784a15..69afd08 100755 (executable)
@@ -35,7 +35,6 @@ git_submodule_hashes = {
 
 _BAZEL_SKYLIB_DEP_NAME = 'bazel_skylib'
 _BAZEL_TOOLCHAINS_DEP_NAME = 'bazel_toolchains'
-_BAZEL_COMPDB_DEP_NAME = 'bazel_compdb'
 _TWISTED_TWISTED_DEP_NAME = 'com_github_twisted_twisted'
 _YAML_PYYAML_DEP_NAME = 'com_github_yaml_pyyaml'
 _TWISTED_INCREMENTAL_DEP_NAME = 'com_github_twisted_incremental'
@@ -57,7 +56,6 @@ _GRPC_DEP_NAMES = [
     'envoy_api',
     _BAZEL_SKYLIB_DEP_NAME,
     _BAZEL_TOOLCHAINS_DEP_NAME,
-    _BAZEL_COMPDB_DEP_NAME,
     _TWISTED_TWISTED_DEP_NAME,
     _YAML_PYYAML_DEP_NAME,
     _TWISTED_INCREMENTAL_DEP_NAME,
@@ -77,7 +75,6 @@ _GRPC_BAZEL_ONLY_DEPS = [
     'io_opencensus_cpp',
     _BAZEL_SKYLIB_DEP_NAME,
     _BAZEL_TOOLCHAINS_DEP_NAME,
-    _BAZEL_COMPDB_DEP_NAME,
     _TWISTED_TWISTED_DEP_NAME,
     _YAML_PYYAML_DEP_NAME,
     _TWISTED_INCREMENTAL_DEP_NAME,
@@ -152,10 +149,7 @@ build_rules = {
 exec(bazel_file) in build_rules
 for name in _GRPC_DEP_NAMES:
     assert name in names_and_urls.keys()
-if len(_GRPC_DEP_NAMES) != len(names_and_urls.keys()):
-    assert False, "Diff: " + (str(set(_GRPC_DEP_NAMES) - set(names_and_urls)) +
-                              "," +
-                              str(set(names_and_urls) - set(_GRPC_DEP_NAMES)))
+assert len(_GRPC_DEP_NAMES) == len(names_and_urls.keys())
 
 # There are some "bazel-only" deps that are exceptions to this sanity check,
 # we don't require that there is a corresponding git module for these.