Skip to content

[Release] download_rc_binaries.py fails validating sterr on download failure due to bytes to string comparison #48853

@raulcd

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

When the dev/release/download_rc_binaries.py script fails downloading a file it checks whether it has to retry or not.
https://github.com/apache/arrow/actions/runs/20957811272/job/60324652206?pr=48843
The check is currently failing due to bytes to string comparison failure:

 Traceback (most recent call last):
  File "/usr/lib/python3.12/concurrent/futures/process.py", line 263, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/arrow/arrow/dev/release/download_rc_binaries.py", line 237, in _download_file
    self._download_url(url, dest_path, extra_args=extra_args)
  File "/home/runner/work/arrow/arrow/dev/release/download_rc_binaries.py", line 139, in _download_url
    if "OpenSSL" not in stderr:
       ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: a bytes-like object is required, not 'str'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/runner/work/arrow/arrow/dev/release/download_rc_binaries.py", line 355, in <module>
    download_rc_binaries(
  File "/home/runner/work/arrow/arrow/dev/release/download_rc_binaries.py", line 303, in download_rc_binaries
    downloader.download_files(
  File "/home/runner/work/arrow/arrow/dev/release/download_rc_binaries.py", line 89, in download_files
    parallel_map_terminate_early(
  File "/home/runner/work/arrow/arrow/dev/release/download_rc_binaries.py", line 251, in parallel_map_terminate_early
    raise e
TypeError: a bytes-like object is required, not 'str'

Component(s)

Release

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions