mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 03:00:11 +01:00
ci_run_n_monitor: read job logs as utf-8
Fixes regular crashes like this one:
Traceback (most recent call last):
File "bin/ci/ci_run_n_monitor.py", line 478, in <module>
print_log(cur_project, target_job_id)
File "bin/ci/ci_run_n_monitor.py", line 270, in print_log
lines = job.trace().decode("raw_unicode_escape").splitlines()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'rawunicodeescape' codec can't decode bytes in position 6090-6091: truncated \uXXXX escape
decoding with 'raw_unicode_escape' codec failed
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27653>
This commit is contained in:
parent
656e329fa2
commit
bc38b68ab8
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ def print_log(project, job_id) -> None:
|
|||
job = project.jobs.get(job_id)
|
||||
|
||||
# GitLab's REST API doesn't offer pagination for logs, so we have to refetch it all
|
||||
lines = job.trace().decode("raw_unicode_escape").splitlines()
|
||||
lines = job.trace().decode().splitlines()
|
||||
for line in lines[printed_lines:]:
|
||||
print(line)
|
||||
printed_lines = len(lines)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue