run_tests.py: Add support for tvOS [crashpad/crashpad : main]

2 views
Skip to first unread message

Raphael Kubo da Costa (Gerrit)

unread,
Apr 1, 2025, 11:09:16 AM4/1/25
to Justin Cohen, Julie Jeongeun Kim, Gyuyoung Kim, Abhijeet Kandalkar, Miguel Casas-Sanchez, Crashpad LUCI CQ, crashp...@chromium.org
Attention needed from Justin Cohen

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Justin Cohen
Submit Requirements:
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: crashpad/crashpad
Gerrit-Branch: main
Gerrit-Change-Id: I7cc5ad2a60ce077d38a0f4d60c68b45e21f47e0c
Gerrit-Change-Number: 6421724
Gerrit-PatchSet: 2
Gerrit-Owner: Raphael Kubo da Costa <ku...@igalia.com>
Gerrit-Reviewer: Justin Cohen <justi...@chromium.org>
Gerrit-Reviewer: Raphael Kubo da Costa <ku...@igalia.com>
Gerrit-CC: Abhijeet Kandalkar <abhi...@igalia.com>
Gerrit-CC: Gyuyoung Kim <gyuy...@igalia.com>
Gerrit-CC: Julie Jeongeun Kim <jk...@igalia.com>
Gerrit-CC: Miguel Casas-Sanchez <mca...@chromium.org>
Gerrit-Attention: Justin Cohen <justi...@chromium.org>
Gerrit-Comment-Date: Tue, 01 Apr 2025 15:09:11 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Justin Cohen (Gerrit)

unread,
Apr 1, 2025, 1:16:14 PM4/1/25
to Raphael Kubo da Costa, Joshua Peraza, Julie Jeongeun Kim, Gyuyoung Kim, Abhijeet Kandalkar, Miguel Casas-Sanchez, Crashpad LUCI CQ, crashp...@chromium.org
Attention needed from Raphael Kubo da Costa

Justin Cohen added 3 comments

File build/run_tests.py
Line 74, Patchset 2 (Parent): '--list=target_os', '--short'
Justin Cohen . unresolved

Why move from --short to --json, and instead just --list argument_name and match argument_name?

Line 87, Patchset 2 (Parent): # to ar. This path is configured by gyp_crashpad_android.py.
Justin Cohen . unresolved

I think this should have gone away in 2021 with this change: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3034984

Line 447, Patchset 2 (Latest): if target_os is None:
# For GYP with Ninja, look for the appearance of “linux-android” in the
# path to ar. This path is configured by gyp_crashpad_android.py.
build_ninja_path = os.path.join(args.binary_dir, 'build.ninja')
if os.path.exists(build_ninja_path):
with open(build_ninja_path) as build_ninja_file:
build_ninja_content = build_ninja_file.read()
match = re.search(r'-linux-android(eabi)?-ar$',
build_ninja_content,
flags=re.MULTILINE)
if match:
target_os = 'android'
Justin Cohen . unresolved

jperaza@ do we still need this?

Open in Gerrit

Related details

Attention is currently required from:
  • Raphael Kubo da Costa
Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: crashpad/crashpad
    Gerrit-Branch: main
    Gerrit-Change-Id: I7cc5ad2a60ce077d38a0f4d60c68b45e21f47e0c
    Gerrit-Change-Number: 6421724
    Gerrit-PatchSet: 2
    Gerrit-Owner: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Reviewer: Justin Cohen <justi...@chromium.org>
    Gerrit-Reviewer: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-CC: Abhijeet Kandalkar <abhi...@igalia.com>
    Gerrit-CC: Gyuyoung Kim <gyuy...@igalia.com>
    Gerrit-CC: Joshua Peraza <jpe...@chromium.org>
    Gerrit-CC: Julie Jeongeun Kim <jk...@igalia.com>
    Gerrit-CC: Miguel Casas-Sanchez <mca...@chromium.org>
    Gerrit-Attention: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Comment-Date: Tue, 01 Apr 2025 17:16:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Joshua Peraza (Gerrit)

    unread,
    Apr 1, 2025, 1:55:51 PM4/1/25
    to Raphael Kubo da Costa, Justin Cohen, Julie Jeongeun Kim, Gyuyoung Kim, Abhijeet Kandalkar, Miguel Casas-Sanchez, Crashpad LUCI CQ, crashp...@chromium.org
    Attention needed from Justin Cohen and Raphael Kubo da Costa

    Joshua Peraza added 1 comment

    File build/run_tests.py
    Line 447, Patchset 2 (Latest): if target_os is None:
    # For GYP with Ninja, look for the appearance of “linux-android” in the
    # path to ar. This path is configured by gyp_crashpad_android.py.
    build_ninja_path = os.path.join(args.binary_dir, 'build.ninja')
    if os.path.exists(build_ninja_path):
    with open(build_ninja_path) as build_ninja_file:
    build_ninja_content = build_ninja_file.read()
    match = re.search(r'-linux-android(eabi)?-ar$',
    build_ninja_content,
    flags=re.MULTILINE)
    if match:
    target_os = 'android'
    Justin Cohen . resolved

    jperaza@ do we still need this?

    Joshua Peraza

    I think no. Prior to this change the comment was outdated, but the code still good. GN generated build.ninja instead of gyp_crashpad_android.py. This change to look at GN args instead of build.ninja also seems fine.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Justin Cohen
    • Raphael Kubo da Costa
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: crashpad/crashpad
    Gerrit-Branch: main
    Gerrit-Change-Id: I7cc5ad2a60ce077d38a0f4d60c68b45e21f47e0c
    Gerrit-Change-Number: 6421724
    Gerrit-PatchSet: 2
    Gerrit-Owner: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Reviewer: Justin Cohen <justi...@chromium.org>
    Gerrit-Reviewer: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-CC: Abhijeet Kandalkar <abhi...@igalia.com>
    Gerrit-CC: Gyuyoung Kim <gyuy...@igalia.com>
    Gerrit-CC: Joshua Peraza <jpe...@chromium.org>
    Gerrit-CC: Julie Jeongeun Kim <jk...@igalia.com>
    Gerrit-CC: Miguel Casas-Sanchez <mca...@chromium.org>
    Gerrit-Attention: Justin Cohen <justi...@chromium.org>
    Gerrit-Attention: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Comment-Date: Tue, 01 Apr 2025 17:55:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Justin Cohen <justi...@chromium.org>
    unsatisfied_requirement
    open
    diffy

    Raphael Kubo da Costa (Gerrit)

    unread,
    Apr 1, 2025, 2:27:06 PM4/1/25
    to Joshua Peraza, Justin Cohen, Julie Jeongeun Kim, Gyuyoung Kim, Abhijeet Kandalkar, Miguel Casas-Sanchez, Crashpad LUCI CQ, crashp...@chromium.org
    Attention needed from Justin Cohen

    Raphael Kubo da Costa added 2 comments

    File build/run_tests.py
    Line 74, Patchset 2 (Parent): '--list=target_os', '--short'
    Justin Cohen . resolved

    Why move from --short to --json, and instead just --list argument_name and match argument_name?

    Raphael Kubo da Costa

    I thought it would look cleaner, but in retrospect the previous approach is much more concise. I've reverted back to parsing `--short`'s output.

    Line 87, Patchset 2 (Parent): # to ar. This path is configured by gyp_crashpad_android.py.
    Justin Cohen . resolved

    I think this should have gone away in 2021 with this change: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3034984

    Raphael Kubo da Costa

    Oh cool, done. I've also mentioned this in the CL description.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Justin Cohen
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: crashpad/crashpad
    Gerrit-Branch: main
    Gerrit-Change-Id: I7cc5ad2a60ce077d38a0f4d60c68b45e21f47e0c
    Gerrit-Change-Number: 6421724
    Gerrit-PatchSet: 4
    Gerrit-Owner: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Reviewer: Justin Cohen <justi...@chromium.org>
    Gerrit-Reviewer: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-CC: Abhijeet Kandalkar <abhi...@igalia.com>
    Gerrit-CC: Gyuyoung Kim <gyuy...@igalia.com>
    Gerrit-CC: Joshua Peraza <jpe...@chromium.org>
    Gerrit-CC: Julie Jeongeun Kim <jk...@igalia.com>
    Gerrit-CC: Miguel Casas-Sanchez <mca...@chromium.org>
    Gerrit-Attention: Justin Cohen <justi...@chromium.org>
    Gerrit-Comment-Date: Tue, 01 Apr 2025 18:27:00 +0000
    unsatisfied_requirement
    open
    diffy

    Justin Cohen (Gerrit)

    unread,
    Apr 1, 2025, 6:46:55 PM4/1/25
    to Raphael Kubo da Costa, Joshua Peraza, Julie Jeongeun Kim, Gyuyoung Kim, Abhijeet Kandalkar, Miguel Casas-Sanchez, Crashpad LUCI CQ, crashp...@chromium.org
    Attention needed from Raphael Kubo da Costa

    Justin Cohen voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Raphael Kubo da Costa
    Submit Requirements:
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: crashpad/crashpad
    Gerrit-Branch: main
    Gerrit-Change-Id: I7cc5ad2a60ce077d38a0f4d60c68b45e21f47e0c
    Gerrit-Change-Number: 6421724
    Gerrit-PatchSet: 4
    Gerrit-Owner: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Reviewer: Justin Cohen <justi...@chromium.org>
    Gerrit-Reviewer: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-CC: Abhijeet Kandalkar <abhi...@igalia.com>
    Gerrit-CC: Gyuyoung Kim <gyuy...@igalia.com>
    Gerrit-CC: Joshua Peraza <jpe...@chromium.org>
    Gerrit-CC: Julie Jeongeun Kim <jk...@igalia.com>
    Gerrit-CC: Miguel Casas-Sanchez <mca...@chromium.org>
    Gerrit-Attention: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Comment-Date: Tue, 01 Apr 2025 22:46:51 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Raphael Kubo da Costa (Gerrit)

    unread,
    May 14, 2025, 6:08:45 PM5/14/25
    to Justin Cohen, Joshua Peraza, Julie Jeongeun Kim, Gyuyoung Kim, Abhijeet Kandalkar, Miguel Casas-Sanchez, Crashpad LUCI CQ, crashp...@chromium.org

    Raphael Kubo da Costa voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: crashpad/crashpad
    Gerrit-Branch: main
    Gerrit-Change-Id: I7cc5ad2a60ce077d38a0f4d60c68b45e21f47e0c
    Gerrit-Change-Number: 6421724
    Gerrit-PatchSet: 7
    Gerrit-Owner: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Reviewer: Justin Cohen <justi...@chromium.org>
    Gerrit-Reviewer: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-CC: Abhijeet Kandalkar <abhi...@igalia.com>
    Gerrit-CC: Gyuyoung Kim <gyuy...@igalia.com>
    Gerrit-CC: Joshua Peraza <jpe...@chromium.org>
    Gerrit-CC: Julie Jeongeun Kim <jk...@igalia.com>
    Gerrit-CC: Miguel Casas-Sanchez <mca...@chromium.org>
    Gerrit-Comment-Date: Wed, 14 May 2025 22:08:38 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Crashpad LUCI CQ (Gerrit)

    unread,
    May 14, 2025, 6:08:51 PM5/14/25
    to Raphael Kubo da Costa, Justin Cohen, Joshua Peraza, Julie Jeongeun Kim, Gyuyoung Kim, Abhijeet Kandalkar, Miguel Casas-Sanchez, crashp...@chromium.org

    Crashpad LUCI CQ submitted the change

    Unreviewed changes

    4 is the latest approved patch-set.
    No files were changed between the latest approved patch-set and the submitted one.

    Change information

    Commit message:
    run_tests.py: Add support for tvOS

    We need to differentiate between iOS and tvOS builds in order to pass
    the right environment variables to xcodebuild.

    We do this by generalizing _BinaryDirTargetOS() for any variable in
    args.gn and reading `target_platform`'s value to determine the kind of
    build we have.

    While here, remove the linux-android-specific target_os detection
    workaround, which has not been necessary since
    https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3034984
    Bug: 405140658
    Change-Id: I7cc5ad2a60ce077d38a0f4d60c68b45e21f47e0c
    Reviewed-by: Justin Cohen <justi...@chromium.org>
    Commit-Queue: Raphael Kubo da Costa <ku...@igalia.com>
    Files:
    • M build/run_tests.py
    Change size: M
    Delta: 1 file changed, 36 insertions(+), 32 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Justin Cohen
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: crashpad/crashpad
    Gerrit-Branch: main
    Gerrit-Change-Id: I7cc5ad2a60ce077d38a0f4d60c68b45e21f47e0c
    Gerrit-Change-Number: 6421724
    Gerrit-PatchSet: 8
    Gerrit-Owner: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Reviewer: Crashpad LUCI CQ <crashpa...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Justin Cohen <justi...@chromium.org>
    Gerrit-Reviewer: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-CC: Abhijeet Kandalkar <abhi...@igalia.com>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages