Reland #3: "private_code_test: Parse build.ninja to collect linker inputs"

This reverts commit 77442049ed98326bd593e014449553ae4d61df77.

Reason for reland: Adding missing dep

Original change's description:
> Revert "Reland #2: "private_code_test: Parse build.ninja to collect linker inputs""
>
> This reverts commit ad1ae9d3bc165c1fac50d2b54197e3569dd00fc5.
>
> Reason for revert: Speculative revert because the original
> error persists:
> logging.info('Found %d linker inputs', len(object_paths)) 
>                                            ^^^^^^^^^^^^^^^^^ 
> TypeError: object of type 'NoneType' has no len() 
>
> Affected bots:
> arm64-unpublished-builder [58 since first detection]
> x64-builder [44 since first detection]
> Deterministic Android [12 since first detection]
>
> Original change's description:
> > Reland #2: "private_code_test: Parse build.ninja to collect linker inputs"
> >
> > This reverts commit f58220e29690ead1beb940a8824096b8071c7489.
> >
> > Reason for reland: Disabled test for is_component_build=true
> >
> > Also removed the now unnecessary --collect-inputs-only copy of
> > chrome executable.
> >
> > Original change's description:
> > > Revert "Reland "private_code_test: Parse build.ninja to collect linker inputs""
> > >
> > > This reverts commit 269acc3c8ad1b3aad5dd807f6fa99db30c3a4e10.
> > >
> > > Reason for revert: Failing locally:
> > >     logging.info('Found %d linker inputs', len(object_paths))
> > >                                            ^^^^^^^^^^^^^^^^^
> > > TypeError: object of type 'NoneType' has no len()
> > > build failed
> > >
> > >
> > > Original change's description:
> > > > Reland "private_code_test: Parse build.ninja to collect linker inputs"
> > > >
> > > > This reverts commit 83e7953b9679c76170adf1b02e13e129e3c6de75.
> > > >
> > > > Reason for revert: Adds non-deterministics files to ignorelist
> > > >
> > > > Original change's description:
> > > > > Revert "private_code_test: Parse build.ninja to collect linker inputs"
> > > > >
> > > > > This reverts commit a6dddc3de16b5c67656254e10ed648354cd3a4f0.
> > > > >
> > > > > Reason for revert: Suspected of causing failure in deterministic build - https://ci.chromium.org/ui/p/chromium/builders/ci/Deterministic%20Linux/51954 (https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket/8725202020735429233/+/u/compare_build_artifacts/stdout)
> > > > >
> > > > > Original change's description:
> > > > > > private_code_test: Parse build.ninja to collect linker inputs
> > > > > >
> > > > > > Although slower, this handles the case where GN targets are in public
> > > > > > code, but include source files from private code.
> > > > > >
> > > > > > Bug: 40204298
> > > > > > Change-Id: If571518f07855946a16e5aeebe0cace661cc75dd
> > > > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5756917
> > > > > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > > > > Reviewed-by: Dirk Pranke <dpranke@google.com>
> > > > > > Cr-Commit-Position: refs/heads/main@{#1408713}
> > > > >
> > > > > Bug: 40204298
> > > > > Change-Id: I9584a8e46d28ce0f64d263c88d8041cb51368471
> > > > > No-Presubmit: true
> > > > > No-Tree-Checks: true
> > > > > No-Try: true
> > > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6184083
> > > > > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> > > > > Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> > > > > Reviewed-by: Dirk Pranke <dpranke@google.com>
> > > > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > > > Cr-Commit-Position: refs/heads/main@{#1408751}
> > > >
> > > > Bug: 40204298
> > > > Change-Id: I330e111f9cf3ca47af8d5c5142d362728a1c429a
> > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6185547
> > > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > > Reviewed-by: Dirk Pranke <dpranke@google.com>
> > > > Cr-Commit-Position: refs/heads/main@{#1409216}
> > >
> > > Bug: 40204298
> > > Change-Id: Ia4f3026884ed49606ac337de5f441ade433b9f0e
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6187366
> > > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> > > Owners-Override: Andrew Grieve <agrieve@chromium.org>
> > > Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> > > Auto-Submit: Andrew Grieve <agrieve@chromium.org>
> > > Cr-Commit-Position: refs/heads/main@{#1409266}
> >
> > Bug: 40204298
> > Change-Id: If2c86c7acf2634520bfe89c0eca26d832ae939f0
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6194532
> > Reviewed-by: Dirk Pranke <dpranke@google.com>
> > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1410508}
>
> Bug: 40204298
> Change-Id: Idbdbcca4fa4de4b76b3eebc17e0d2145ca582326
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6196857
> Commit-Queue: Adem Derinel <derinel@google.com>
> Owners-Override: Ivana Žužić <izuzic@google.com>
> Reviewed-by: Adem Derinel <derinel@google.com>
> Auto-Submit: Ivana Žužić <izuzic@google.com>
> Cr-Commit-Position: refs/heads/main@{#1410842}

Bug: 40204298
Change-Id: I0cd0eabe12147264cc58cc54e74e934609548e29
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6198819
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1411095}
7 files changed
tree: c4b268d65c44c6e1aceec5a26ad76821fa963436
  1. android_webview/
  2. apps/
  3. ash/
  4. base/
  5. build/
  6. build_overrides/
  7. buildtools/
  8. cc/
  9. chrome/
  10. chromecast/
  11. chromeos/
  12. codelabs/
  13. components/
  14. content/
  15. crypto/
  16. dbus/
  17. device/
  18. docs/
  19. extensions/
  20. fuchsia_web/
  21. gin/
  22. google_apis/
  23. gpu/
  24. headless/
  25. infra/
  26. ios/
  27. ipc/
  28. media/
  29. mojo/
  30. native_client_sdk/
  31. net/
  32. pdf/
  33. ppapi/
  34. printing/
  35. remoting/
  36. rlz/
  37. sandbox/
  38. services/
  39. skia/
  40. sql/
  41. storage/
  42. styleguide/
  43. testing/
  44. third_party/
  45. tools/
  46. ui/
  47. url/
  48. webkit/
  49. .clang-format
  50. .clang-tidy
  51. .clangd
  52. .git-blame-ignore-revs
  53. .gitallowed
  54. .gitattributes
  55. .gitignore
  56. .gitmodules
  57. .gn
  58. .mailmap
  59. .rustfmt.toml
  60. .vpython3
  61. .yapfignore
  62. ATL_OWNERS
  63. AUTHORS
  64. BUILD.gn
  65. CODE_OF_CONDUCT.md
  66. codereview.settings
  67. CPPLINT.cfg
  68. CRYPTO_OWNERS
  69. DEPS
  70. description
  71. DIR_METADATA
  72. LICENSE
  73. LICENSE.chromium_os
  74. OWNERS
  75. PRESUBMIT.py
  76. PRESUBMIT_test.py
  77. PRESUBMIT_test_mocks.py
  78. README.md
  79. WATCHLISTS
README.md

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure.

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.

If you found a bug, please file it at https://crbug.com/new.