• Nico Weber's avatar
    Reland "Make generate_breakpad_symbols.py not silently ignore subprocess errors." · 0cd00af0
    Nico Weber authored
    This reverts commit 5a797379.
    
    Reason for revert: Relanding without making lld failures critical for now (see https://crbug.com/849904).
    
    Original change's description:
    > Revert "Make generate_breakpad_symbols.py not silently ignore subprocess errors."
    >
    > This reverts commit 924c8465.
    >
    > Reason for revert: This appears to break the Android WebView bots.
    >
    > https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Android%20WebView%20N%20%28dbg%29
    > https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Android%20WebView%20O%20(dbg)
    >
    > Traceback (most recent call last):
    >   File "/b/s/w/ir/cache/builder/src/components/crash/content/tools/generate_breakpad_symbols.py", line 327, in <module>
    >     sys.exit(main())
    >   File "/b/s/w/ir/cache/builder/src/components/crash/content/tools/generate_breakpad_symbols.py", line 316, in main
    >     deps = GetSharedLibraryDependencies(options, queue.pop(0), loader_path)
    >   File "/b/s/w/ir/cache/builder/src/components/crash/content/tools/generate_breakpad_symbols.py", line 151, in GetSharedLibraryDependencies
    >     deps = GetSharedLibraryDependenciesLinux(binary)
    >   File "/b/s/w/ir/cache/builder/src/components/crash/content/tools/generate_breakpad_symbols.py", line 67, in GetSharedLibraryDependenciesLinux
    >     ldd = subprocess.check_output(['ldd', binary])
    >   File "/b/s/w/ir/cipd_bin_packages/lib/python2.7/subprocess.py", line 219, in check_output
    >     raise CalledProcessError(retcode, cmd, output=output)
    >
    > Original change's description:
    > > Make generate_breakpad_symbols.py not silently ignore subprocess errors.
    > >
    > > GetCommandOuput() used to pipe stderr to /dev/null, and it ignored
    > > the command's return code. Use check_output() to check the return
    > > code, and keep stderr attached to parent's stderr.
    > >
    > > Also make breakpad_integration_test.py a bit simpler (this part is
    > > supposed to be behavior-preserving.)
    > >
    > > Bug: 813163
    > > Change-Id: I8c55d3da9fff3b944111c3e868121ac34bf65c17
    > > Reviewed-on: https://chromium-review.googlesource.com/1086981
    > > Reviewed-by: Jochen Eisinger <jochen@chromium.org>
    > > Commit-Queue: Nico Weber <thakis@chromium.org>
    > > Cr-Commit-Position: refs/heads/master@{#564531}
    >
    > TBR=thakis@chromium.org,jochen@chromium.org
    >
    > Change-Id: Iee5a81e9b7e9db21f1dda9bdc272d3392438f481
    > No-Presubmit: true
    > No-Tree-Checks: true
    > No-Try: true
    > Bug: 813163
    > Reviewed-on: https://chromium-review.googlesource.com/1087871
    > Reviewed-by: Ted Choc <tedchoc@chromium.org>
    > Commit-Queue: Ted Choc <tedchoc@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#564707}
    
    TBR=thakis@chromium.org,tedchoc@chromium.org,jochen@chromium.org
    
    # Not skipping CQ checks because original CL landed > 1 day ago.
    
    Bug: 813163,850055
    Change-Id: I3b241dffac522af75c46dc1a7554bd954b2a8f57
    Reviewed-on: https://chromium-review.googlesource.com/1092671
    Commit-Queue: Nico Weber <thakis@chromium.org>
    Reviewed-by: default avatarNico Weber <thakis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#565638}
    0cd00af0
generate_breakpad_symbols.py 10.1 KB