Bug 255519 - [WPE][GTK] Autoinstall version conflicts for cryptography and cffi libraries when running the run-benchmark script
Summary: [WPE][GTK] Autoinstall version conflicts for cryptography and cffi libraries ...
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-04-17 07:13 PDT by Carlos Alberto Lopez Perez
Modified: 2023-04-18 10:52 PDT (History)
6 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-04-17 07:13:09 PDT
Since 262159@main executing the run-benchmark script on Linux fails with:

$ Tools/Scripts/run-benchmark --plan sunspider
2023-04-17 16:04:07,207 - INFO - Ensure dependencies of http server is satisfied
Traceback (most recent call last):
  File "Tools/Scripts/run-benchmark", line 13, in <module>
    sys.exit(main())
  File "/home/clopez/webkit/webkit/Tools/Scripts/webkitpy/benchmark_runner/run_benchmark.py", line 173, in main
    return start(parse_args(config_argument_parser()))
  File "/home/clopez/webkit/webkit/Tools/Scripts/webkitpy/benchmark_runner/run_benchmark.py", line 161, in start
    run_benchmark_plan(args, args.plan)
  File "/home/clopez/webkit/webkit/Tools/Scripts/webkitpy/benchmark_runner/run_benchmark.py", line 102, in run_benchmark_plan
    args.browser_args)
  File "/home/clopez/webkit/webkit/Tools/Scripts/webkitpy/benchmark_runner/webserver_benchmark_runner.py", line 27, in __init__
    self._http_server_driver = HTTPServerDriverFactory.create(platform)
  File "/home/clopez/webkit/webkit/Tools/Scripts/webkitpy/benchmark_runner/generic_factory.py", line 13, in create
    return cls.products[description]()
  File "/home/clopez/webkit/webkit/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/simple_http_server_driver.py", line 27, in __init__
    self._ensure_http_server_dependencies()
  File "/home/clopez/webkit/webkit/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 "/home/clopez/webkit/webkit/Tools/Scripts/webkitpy/autoinstalled/twisted.py", line 33, in <module>
    AutoInstall.install(Package('cryptography', Version(36, 0, 2), wheel=True))
  File "/home/clopez/webkit/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 616, in install
    packages = cls.register(package)
  File "/home/clopez/webkit/webkit/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py", line 570, in register
    raise ValueError('Registered version of {} uses {}, but requested version uses {}'.format(package.name, cls.packages.get(package.name)[0].version, package.version))
ValueError: Registered version of cryptography uses 36.0.1, but requested version uses 36.0.2


The problem is caused because a mistmatch of versions for the autoinstall internal python tooling.

The issue only happens on Linux because only on Linux we also install this libraries at Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py since 245420@main
Comment 1 Carlos Alberto Lopez Perez 2023-04-17 08:57:30 PDT
Pull request: https://github.com/WebKit/WebKit/pull/12805
Comment 2 Radar WebKit Bug Importer 2023-04-17 11:49:49 PDT
<rdar://problem/108151704>
Comment 3 EWS 2023-04-18 10:52:09 PDT
Committed 263081@main (2a0a1467f4d8): <https://commits.webkit.org/263081@main>

Reviewed commits have been landed. Closing PR #12805 and removing active labels.