Bug 258941 - [WPE] The bots WPE-Linux-RPi4-32bits-Mesa-Release-Perf-Tests are failing to autoinstall the python dependency bcrypt
Summary: [WPE] The bots WPE-Linux-RPi4-32bits-Mesa-Release-Perf-Tests are failing to a...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Carlos Alberto Lopez Perez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-07-06 11:16 PDT by Carlos Alberto Lopez Perez
Modified: 2023-07-07 01:50 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto Lopez Perez 2023-07-06 11:16:10 PDT
The 32-bit bots added on bug 249031 are failing to run the benchmark tests with the following error:

2023-07-06 11:03:58,183 - ERROR - Error running benchmark plan: sunspider
Traceback (most recent call last):
  File "/opt/worker/WPE-Linux-RPi4-32bits-Mesa-Release-Perf-Tests/build/Tools/Scripts/webkitpy/browserperfdash/browserperfdash_runner.py", line 265, in run
    runner = benchmark_runner_class(plan,
  File "/opt/worker/WPE-Linux-RPi4-32bits-Mesa-Release-Perf-Tests/build/Tools/Scripts/webkitpy/benchmark_runner/webserver_benchmark_runner.py", line 27, in __init__
    self._http_server_driver = HTTPServerDriverFactory.create(platform)
  File "/opt/worker/WPE-Linux-RPi4-32bits-Mesa-Release-Perf-Tests/build/Tools/Scripts/webkitpy/benchmark_runner/generic_factory.py", line 13, in create
    return cls.products[description]()
  File "/opt/worker/WPE-Linux-RPi4-32bits-Mesa-Release-Perf-Tests/build/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py", line 27, in __init__
    self._ensure_http_server_dependencies()
  File "/opt/worker/WPE-Linux-RPi4-32bits-Mesa-Release-Perf-Tests/build/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py", line 118, in _ensure_http_server_dependencies
    from webkitpy.autoinstalled import twisted
  File "/opt/worker/WPE-Linux-RPi4-32bits-Mesa-Release-Perf-Tests/build/Tools/Scripts/webkitpy/autoinstalled/twisted.py", line 35, in <module>
    AutoInstall.install(Package('bcrypt', Version(4), wheel=True))
  File "/opt/worker/WPE-Linux-RPi4-32bits-Mesa-Release-Perf-Tests/build/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 635, in install
    return all([to_install.install() for to_install in packages])
  File "/opt/worker/WPE-Linux-RPi4-32bits-Mesa-Release-Perf-Tests/build/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 635, in <listcomp>
    return all([to_install.install() for to_install in packages])
  File "/opt/worker/WPE-Linux-RPi4-32bits-Mesa-Release-Perf-Tests/build/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 305, in install
    raise ValueError('No archives for {}-{} found'.format(self.pypi_name, self.version))
ValueError: No archives for bcrypt-4 found

https://build.webkit.org/#/builders/892/builds/50
Comment 1 Carlos Alberto Lopez Perez 2023-07-06 11:56:57 PDT
The issue is caused because there are no pre-built packages of bcrypt for ARM32 bits (ARMv7 platform) on the python-pip repo.

I have checked to disable wheel on it so the autoinstaller tries to download the source and build from source, but then the build fails because this package needs a cargo/rust toolchain to be built.

Then I have checked adding cargo/rustc support on the Yocto image that runs on the boards but I found some issues there:

 - cargo is failing to build, don't know what is wrong with the recipe
 - building rust takes ages (more than one hour in a beeffy machine)


This python dependency is not really needed for this bots, we can skip installing it and things work as expected. Just checked.
Comment 2 Carlos Alberto Lopez Perez 2023-07-06 12:05:48 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15605
Comment 3 EWS 2023-07-07 01:49:29 PDT
Committed 265835@main (61e425731b47): <https://commits.webkit.org/265835@main>

Reviewed commits have been landed. Closing PR #15605 and removing active labels.
Comment 4 Radar WebKit Bug Importer 2023-07-07 01:50:18 PDT
<rdar://problem/111896566>