From 1f70af7e9f2fe44d7e1f19b7067bc129723361e9 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 3 Jul 2024 15:25:45 +0200 Subject: [PATCH] bin/ci: update python-gitlab to 4.x Quite a few fixes that we want were in the 4.x releases, so let's bump it. See the list of breaking changes here: https://python-gitlab.readthedocs.io/en/stable/changelog.html#v4-0-0-2023-10-17 Part-of: --- bin/ci/ci_post_gantt.py | 2 +- bin/ci/requirements.txt | 2 +- bin/ci/update_traces_checksum.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ci/ci_post_gantt.py b/bin/ci/ci_post_gantt.py index 131f27e9373..d5191ea6f2c 100755 --- a/bin/ci/ci_post_gantt.py +++ b/bin/ci/ci_post_gantt.py @@ -82,7 +82,7 @@ def gitlab_post_reply_to_note(gl, event, reply_message): merge_request = project.mergerequests.get(merge_request_iid) # Find the discussion to which the note belongs - discussions = merge_request.discussions.list(as_list=False) + discussions = merge_request.discussions.list(iterator=True) target_discussion = next( ( d diff --git a/bin/ci/requirements.txt b/bin/ci/requirements.txt index bec12419200..77170882b42 100644 --- a/bin/ci/requirements.txt +++ b/bin/ci/requirements.txt @@ -5,7 +5,7 @@ kaleido==0.2.* python-dateutil==2.* pandas==2.* plotly==5.* -python-gitlab==3.* +python-gitlab==4.* PyYAML==6.* ruamel.yaml.clib==0.2.* ruamel.yaml==0.17.* diff --git a/bin/ci/update_traces_checksum.py b/bin/ci/update_traces_checksum.py index 064573d556d..68c7a02411a 100755 --- a/bin/ci/update_traces_checksum.py +++ b/bin/ci/update_traces_checksum.py @@ -69,7 +69,7 @@ def gather_results( target = yaml.load(target_file) # parse artifact - results_json_bz2 = cur_job.artifact(path="results/results.json.bz2", streamed=False) + results_json_bz2 = cur_job.artifacts.raw(artifact_path="results/results.json.bz2") results_json = bz2.decompress(results_json_bz2).decode("utf-8", errors="replace") results = json.loads(results_json)