brizental pushed to branch main at The Tor Project / Applications / tor-browser-bundle-testsuite

Commits:

2 changed files:

Changes:

  • .gitlab/scripts/before_script.py
    ... ... @@ -76,11 +76,19 @@ def download_minidump_stackwalk(
    76 76
     ) -> None:
    
    77 77
         dest_dir = Path(moz_fetches_dir) / "minidump-stackwalk"
    
    78 78
         dest_dir.mkdir(parents=True, exist_ok=True)
    
    79
    -
    
    80
    -    tar_path = Path("minidump-stackwalk.tar.xz")
    
    81
    -    download_file(minidump_stackwalk_url, tar_path, sha256)
    
    82
    -    extract_tar(tar_path, dest_dir)
    
    83
    -    print(f"Extracted minidump-stackwalk -> {dest_dir}")
    
    79
    +    print(f"Downloading minidump-stackwalk from {minidump_stackwalk_url}")
    
    80
    +
    
    81
    +    is_zip = minidump_stackwalk_url.endswith(".zip")
    
    82
    +    archive_path = Path("minidump-stackwalk.zip" if is_zip else "minidump-stackwalk.tar.xz")
    
    83
    +    download_file(minidump_stackwalk_url, archive_path, sha256)
    
    84
    +
    
    85
    +    print(f"Extracting {archive_path} -> {dest_dir}")
    
    86
    +    if is_zip:
    
    87
    +        with zipfile.ZipFile(archive_path) as zf:
    
    88
    +            zf.extractall(dest_dir)
    
    89
    +    else:
    
    90
    +        extract_tar(archive_path, dest_dir)
    
    91
    +    print(f"minidump-stackwalk ready at {dest_dir}")
    
    84 92
     
    
    85 93
     
    
    86 94
     def get_android_sdk_repack_url():
    

  • tools/trigger-test-pipeline.py
    ... ... @@ -70,6 +70,9 @@ def build_inputs(step_name: str, publish_url: str, publish_dir: str) -> dict[str
    70 70
         # Add the architecture as padding, to address the macos case which doesn't
    
    71 71
         # have architecture in the step name since it is a universal build.
    
    72 72
         browser, channel, platform, architecture = (step_name.split("-") + ["x86_64"])[:4]
    
    73
    +    if browser != "torbrowser":
    
    74
    +        logger.info("Only tor borwser tests are currently supported. Skipping.")
    
    75
    +        return None
    
    73 76
         if channel != "nightly":
    
    74 77
             logger.info("This script only knows how to handle nightly builds. Skipping.")
    
    75 78
             return None
    
    ... ... @@ -90,7 +93,7 @@ def build_inputs(step_name: str, publish_url: str, publish_dir: str) -> dict[str
    90 93
             case "windows":
    
    91 94
                 installer = f"{hyphenated_browser}-{platform}-{architecture}-portable-tbb-{channel}.{date}.exe"
    
    92 95
             case "macos":
    
    93
    -            installer = f"{hyphenated_browser}-{platform}-{architecture}-tbb-{channel}.{date}.dmg"
    
    96
    +            installer = f"{hyphenated_browser}-{platform}-tbb-{channel}.{date}.dmg"
    
    94 97
             case "android":
    
    95 98
                 installer = f"{hyphenated_browser}-qa-{platform}-{architecture}-tbb-{channel}.{date}.apk"
    
    96 99
             case _: