Revert "[exception-db] Generate empty dict for empty exception records."

This reverts commit 4bfafa96691b30395e3a67ac624bf4d2b46827df.

Reason for revert: The RPC expects the json to have "@type" key. So uploading an empty json leads to an error like:
```
prpc: responding with InvalidArgument error (HTTP 400): bad request: invocation: extended_properties: ["exception_occurrences"]: must have a field "@type"
```
Will move the size checking on the test runner side

Original change's description:
> [exception-db] Generate empty dict for empty exception records.
>
> Right now, when there is no exception records, the exception_recorder
> generates a dict contains only a key "@type", and upload to Invocation.
>
> We will generate an empty dict in this case to avoid wasting space.
>
> Bug: 343242386
> Change-Id: Ib548b6655b8e51fbdca06d1fbf3d83245014e176
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5647191
> Reviewed-by: Renuga Nanjappan <rnanjappan@chromium.org>
> Commit-Queue: Haiyang Pan <hypan@google.com>
> Cr-Commit-Position: refs/heads/main@{#1318102}

Bug: 343242386
Change-Id: I0cefa2454ba4ea6cc4e7c41c81abc282e2eabe6b
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5648893
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Renuga Nanjappan <rnanjappan@chromium.org>
Commit-Queue: Haiyang Pan <hypan@google.com>
Cr-Commit-Position: refs/heads/main@{#1318139}
NOKEYCHECK=True
GitOrigin-RevId: 38d542c087ecfc586a25c618863df50c7ef0500c
2 files changed
tree: 1dfd646bfb7610a7028b6853cc98fb19692b830a
  1. 3pp_common/
  2. android/
  3. apple/
  4. args/
  5. chromeos/
  6. cipd/
  7. config/
  8. docs/
  9. fuchsia/
  10. gn_ast/
  11. internal/
  12. ios/
  13. lacros/
  14. linux/
  15. mac/
  16. private_code_test/
  17. rust/
  18. sanitizers/
  19. skia_gold_common/
  20. toolchain/
  21. util/
  22. win/
  23. .clang-tidy
  24. .clangd
  25. .gitignore
  26. .style.yapf
  27. action_helpers.py
  28. action_helpers_unittest.py
  29. build-ctags.sh
  30. BUILD.gn
  31. build_config.h
  32. buildflag.h
  33. buildflag_header.gni
  34. check_gn_headers.py
  35. check_gn_headers_unittest.py
  36. check_gn_headers_whitelist.txt
  37. check_return_value.py
  38. ciopfs.sha1
  39. clobber.py
  40. clobber_unittest.py
  41. compiled_action.gni
  42. compute_build_timestamp.py
  43. copy_test_data_ios.py
  44. cp.py
  45. del_ninja_deps_cache.py
  46. DEPS
  47. detect_host_arch.py
  48. dir_exists.py
  49. DIR_METADATA
  50. dotfile_settings.gni
  51. download_nacl_toolchains.py
  52. env_dump.py
  53. extract_from_cab.py
  54. extract_partition.py
  55. find_depot_tools.py
  56. fix_gn_headers.py
  57. gdb-add-index
  58. get_landmines.py
  59. get_symlink_targets.py
  60. gn_editor
  61. gn_helpers.py
  62. gn_helpers_unittest.py
  63. gn_logs.gni
  64. gn_run_binary.py
  65. install-build-deps.py
  66. install-build-deps.sh
  67. install-chroot.sh
  68. landmine_utils.py
  69. landmines.py
  70. locale_tool.py
  71. mac_toolchain.py
  72. metadata.json.in
  73. nocompile.gni
  74. noop.py
  75. OWNERS
  76. OWNERS.setnoparent
  77. OWNERS.status
  78. partitioned_shared_library.gni
  79. precompile.cc
  80. precompile.h
  81. PRESUBMIT.py
  82. PRESUBMIT_test.py
  83. print_python_deps.py
  84. protoc_java.py
  85. protoc_java.pydeps
  86. README.md
  87. redirect_stdout.py
  88. rm.py
  89. sample_arg_file.gn
  90. sanitize-mac-build-log.sed
  91. sanitize-mac-build-log.sh
  92. sanitize-win-build-log.sed
  93. sanitize-win-build-log.sh
  94. shim_headers.gni
  95. symlink.gni
  96. symlink.py
  97. timestamp.gni
  98. tree_truth.sh
  99. update-linux-sandbox.sh
  100. vs_toolchain.py
  101. whitespace_file.txt
  102. write_buildflag_header.py
  103. xcode_binaries.yaml
  104. zip_helpers.py
  105. zip_helpers_unittest.py
README.md

About

//build contains:

  • Core GN templates and configuration
  • Core Python build scripts

Since this directory is DEPS'ed in by some other repositories (webrtc, pdfium, v8, etc), it should be kept as self-contained as possible by not referring to files outside of it. Some exceptions exist (//testing, select //third_party subdirectories), but new dependencies tend to break these other projects, and so should be avoided.

Changes to //build should be landed in the Chromium repo. They will then be replicated to the stand-alone build repo by the gsubtreed tool. Note: You can find all directories already available through gsubtreed in the list of all chromium repos.

Contents

  • //build/config - Common templates via .gni files.
  • //build/toolchain - GN toolchain definitions.
  • Other .py files - Some are used by GN/Ninja. Some by gclient hooks, some are just random utilities.

Files referenced by //.gn:

  • //build/BUILDCONFIG.gn - Included by all BUILD.gn files.
  • //build/secondary - An overlay for BUILD.gn files. Enables adding BUILD.gn to directories that live in sub-repositories.
  • //build_overrides - Refer to //build_overrides/README.md.

Docs