All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] ci: fix results being sent while patchwork.sh exit 1
@ 2025-04-24  9:50 Andrea Cervesato
  2025-04-24 10:33 ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Cervesato @ 2025-04-24  9:50 UTC (permalink / raw)
  To: ltp

From: Andrea Cervesato <andrea.cervesato@suse.com>

Fix a logic issue related to 'patchwork.sh check' command, that is
setting a exit code to 1 when curl command success, causing GitHub CI to
recognize the build as failed.

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
 ci/tools/patchwork.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ci/tools/patchwork.sh b/ci/tools/patchwork.sh
index 25d65a2a77d193d5150ba6537b0c6e90e54b7fb5..83ef0bb2206277c36bb38845e356625c67ac7d97 100755
--- a/ci/tools/patchwork.sh
+++ b/ci/tools/patchwork.sh
@@ -158,7 +158,7 @@ send_results() {
                         -F "description=$result" \
                         "$PATCHWORK_URL/api/patches/$patch_id/checks/"
 
-                [ $? -eq 0 ] && exit 1
+                [ $? -eq 0 ] || exit 1
         done
 }
 

---
base-commit: 80fd2d673bc0fd8514190a061219c24933b6f03f
change-id: 20250424-fix_ci_results_pipeline-86ed61fd56ea

Best regards,
-- 
Andrea Cervesato <andrea.cervesato@suse.com>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH] ci: fix results being sent while patchwork.sh exit 1
  2025-04-24  9:50 [LTP] [PATCH] ci: fix results being sent while patchwork.sh exit 1 Andrea Cervesato
@ 2025-04-24 10:33 ` Petr Vorel
  2025-04-24 11:18   ` Andrea Cervesato via ltp
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Vorel @ 2025-04-24 10:33 UTC (permalink / raw)
  To: Andrea Cervesato; +Cc: ltp

Hi Andrea,

> -                [ $? -eq 0 ] && exit 1
> +                [ $? -eq 0 ] || exit 1

Thanks for a quick fix!

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Please add also:

Fixes: d8348be27b ("ci: add patchwork communication script")
Reported-by: Li Wang <liwang@redhat.com>

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH] ci: fix results being sent while patchwork.sh exit 1
  2025-04-24 10:33 ` Petr Vorel
@ 2025-04-24 11:18   ` Andrea Cervesato via ltp
  0 siblings, 0 replies; 3+ messages in thread
From: Andrea Cervesato via ltp @ 2025-04-24 11:18 UTC (permalink / raw)
  To: Petr Vorel, Andrea Cervesato; +Cc: ltp

Merged with suggested Fixes tag.

- Andrea

On 4/24/25 12:33, Petr Vorel wrote:
> Hi Andrea,
>
>> -                [ $? -eq 0 ] && exit 1
>> +                [ $? -eq 0 ] || exit 1
> Thanks for a quick fix!
>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>
> Please add also:
>
> Fixes: d8348be27b ("ci: add patchwork communication script")
> Reported-by: Li Wang <liwang@redhat.com>
>
> Kind regards,
> Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-24 11:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-24  9:50 [LTP] [PATCH] ci: fix results being sent while patchwork.sh exit 1 Andrea Cervesato
2025-04-24 10:33 ` Petr Vorel
2025-04-24 11:18   ` Andrea Cervesato via ltp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.