From e392cb2db6ad68d35d230ac01ed0008de69b5b2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 12 Jul 2025 17:02:20 +0200 Subject: [PATCH 1/2] Disable try builds --- homu/parse_issue_comment.py | 8 ++++---- homu/tests/test_parse_issue_comment.py | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/homu/parse_issue_comment.py b/homu/parse_issue_comment.py index 27be202..c051062 100644 --- a/homu/parse_issue_comment.py +++ b/homu/parse_issue_comment.py @@ -225,13 +225,13 @@ def parse_issue_comment(username, body, sha, botname, hooks=[]): elif word == 'retry': commands.append(IssueCommentCommand.retry()) - elif word == 'try': - commands.append(IssueCommentCommand.try_()) + # elif word == 'try': + # commands.append(IssueCommentCommand.try_()) - elif word == 'try-': + # elif word == 'try-': # Try- is broken, prevent its usage. # commands.append(IssueCommentCommand.untry()) - pass + # pass elif word in WORDS_TO_ROLLUP: rollup_value = WORDS_TO_ROLLUP[word] diff --git a/homu/tests/test_parse_issue_comment.py b/homu/tests/test_parse_issue_comment.py index 33ac166..41516af 100644 --- a/homu/tests/test_parse_issue_comment.py +++ b/homu/tests/test_parse_issue_comment.py @@ -257,18 +257,18 @@ def test_retry(): assert command.action == 'retry' -def test_try(): - """ - @bors try - """ - - author = "jack" - body = "@bors try" - commands = parse_issue_comment(author, body, commit, "bors") - - assert len(commands) == 1 - command = commands[0] - assert command.action == 'try' +# def test_try(): +# """ +# @bors try +# """ +# +# author = "jack" +# body = "@bors try" +# commands = parse_issue_comment(author, body, commit, "bors") +# +# assert len(commands) == 1 +# command = commands[0] +# assert command.action == 'try' def test_try_minus(): From e1525d3a5265b8810e7cad951360a54b4b1d5cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Sat, 12 Jul 2025 22:49:23 +0200 Subject: [PATCH 2/2] Pin `typing_extensions` --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 74c16f7..8dc97ca 100644 --- a/setup.py +++ b/setup.py @@ -24,6 +24,7 @@ ], tests_require=[ 'pytest<8', + 'typing_extensions<4.14' ], package_data={ 'homu': [