From b94592e6dcaaae2bbf4d7e2f90d76e60ee54c156 Mon Sep 17 00:00:00 2001 From: Carles Bruguera Artero Date: Fri, 9 Jan 2026 09:31:10 +0100 Subject: [PATCH 01/10] Debug wait for activity log stored --- nuclia_e2e/nuclia_e2e/tests/test_kb_features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py index 79d4b8f4..2e6d2211 100644 --- a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py +++ b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py @@ -666,7 +666,7 @@ async def condition() -> tuple[bool, Any]: return condition - success, logs = await wait_for(activity_log_is_stored(), max_wait=180, logger=logger) + success, logs = await wait_for(activity_log_is_stored(), max_wait=360, logger=logger) assert success, "Activity logs didn't get stored in time" # if we have the ask events, we'll must have the find ones, as they have been done earlier. From 587653b69744d20de616eeb52808df9d116349e0 Mon Sep 17 00:00:00 2001 From: Carles Bruguera Artero Date: Fri, 9 Jan 2026 10:18:07 +0100 Subject: [PATCH 02/10] Update test_kb_features.py --- nuclia_e2e/nuclia_e2e/tests/test_kb_features.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py index 2e6d2211..4b327660 100644 --- a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py +++ b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py @@ -653,6 +653,7 @@ async def condition() -> tuple[bool, Any]: pagination=Pagination(limit=100), ), ) + print(f"activity_log_is_stored -----> {len(logs.data)}") if len(logs.data) >= 2: # as the asks may be retried more than once (because some times rephrase doesn't always work) # we need to check the last logs. The way the tests are setup if we reach here is because we From f1b4bc3e128e0d15320e7125b2fbb3b0b0b586bb Mon Sep 17 00:00:00 2001 From: Carles Bruguera Artero Date: Fri, 9 Jan 2026 11:56:08 +0100 Subject: [PATCH 03/10] Update test_kb_features.py --- nuclia_e2e/nuclia_e2e/tests/test_kb_features.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py index 4b327660..b234d911 100644 --- a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py +++ b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py @@ -663,6 +663,10 @@ async def condition() -> tuple[bool, Any]: and logs.data[-1].question == TEST_CHOCO_ASK_MORE ): return (True, logs) + from pprint import pprint + print("----------------------------") + pprint(logs.data) + print("----------------------------") return (False, None) return condition From 287d46ab16fa66b86765ae291494b21aab4a069c Mon Sep 17 00:00:00 2001 From: Carles Bruguera Artero Date: Fri, 9 Jan 2026 12:07:53 +0100 Subject: [PATCH 04/10] Update test_kb_features.py --- nuclia_e2e/nuclia_e2e/tests/test_kb_features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py index b234d911..22821fc6 100644 --- a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py +++ b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py @@ -663,7 +663,7 @@ async def condition() -> tuple[bool, Any]: and logs.data[-1].question == TEST_CHOCO_ASK_MORE ): return (True, logs) - from pprint import pprint + from pprint import pprint #noqa print("----------------------------") pprint(logs.data) print("----------------------------") From 9e662db0b40b436c8cdd66d4cb6804894d973d85 Mon Sep 17 00:00:00 2001 From: Carles Bruguera Artero Date: Fri, 9 Jan 2026 12:13:34 +0100 Subject: [PATCH 05/10] Update test_kb_features.py --- nuclia_e2e/nuclia_e2e/tests/test_kb_features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py index 22821fc6..bafaa86f 100644 --- a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py +++ b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py @@ -663,7 +663,7 @@ async def condition() -> tuple[bool, Any]: and logs.data[-1].question == TEST_CHOCO_ASK_MORE ): return (True, logs) - from pprint import pprint #noqa + from pprint import pprint #noqa: PGH004 print("----------------------------") pprint(logs.data) print("----------------------------") From e011a15fdeb84b43ed627cc9e1e221206e2c8f7f Mon Sep 17 00:00:00 2001 From: Carles Bruguera Artero Date: Fri, 9 Jan 2026 12:21:10 +0100 Subject: [PATCH 06/10] Update test_kb_features.py --- nuclia_e2e/nuclia_e2e/tests/test_kb_features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py index bafaa86f..d964796f 100644 --- a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py +++ b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py @@ -663,7 +663,7 @@ async def condition() -> tuple[bool, Any]: and logs.data[-1].question == TEST_CHOCO_ASK_MORE ): return (True, logs) - from pprint import pprint #noqa: PGH004 + from pprint import pprint #noqa: PGH004,I001 print("----------------------------") pprint(logs.data) print("----------------------------") From a8ed662afa56910b3057b274c36360d1711af642 Mon Sep 17 00:00:00 2001 From: Carles Bruguera Artero Date: Fri, 9 Jan 2026 12:23:02 +0100 Subject: [PATCH 07/10] Update test_kb_features.py --- nuclia_e2e/nuclia_e2e/tests/test_kb_features.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py index d964796f..3e30ec9d 100644 --- a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py +++ b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py @@ -663,9 +663,9 @@ async def condition() -> tuple[bool, Any]: and logs.data[-1].question == TEST_CHOCO_ASK_MORE ): return (True, logs) - from pprint import pprint #noqa: PGH004,I001 + from pprint import pprint #noqa: T203,I001 print("----------------------------") - pprint(logs.data) + pprint(logs.data) #noqa: T203,I001 print("----------------------------") return (False, None) From d50f99563fd0ec38443ebecc5dda8cbe86f9bc44 Mon Sep 17 00:00:00 2001 From: Carles Bruguera Artero Date: Fri, 9 Jan 2026 12:24:52 +0100 Subject: [PATCH 08/10] Update test_kb_features.py --- nuclia_e2e/nuclia_e2e/tests/test_kb_features.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py index 3e30ec9d..364ff495 100644 --- a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py +++ b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py @@ -663,9 +663,9 @@ async def condition() -> tuple[bool, Any]: and logs.data[-1].question == TEST_CHOCO_ASK_MORE ): return (True, logs) - from pprint import pprint #noqa: T203,I001 + from pprint import pprint #noqa: T203,I001, RUF100 print("----------------------------") - pprint(logs.data) #noqa: T203,I001 + pprint(logs.data) #noqa: T203,I001,RUF100 print("----------------------------") return (False, None) From d15ae90c4c6856af3aea95180690a5b7ae6541a9 Mon Sep 17 00:00:00 2001 From: Carles Bruguera Artero Date: Fri, 9 Jan 2026 12:27:10 +0100 Subject: [PATCH 09/10] Update test_kb_features.py --- nuclia_e2e/nuclia_e2e/tests/test_kb_features.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py index 364ff495..50722885 100644 --- a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py +++ b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py @@ -663,9 +663,9 @@ async def condition() -> tuple[bool, Any]: and logs.data[-1].question == TEST_CHOCO_ASK_MORE ): return (True, logs) - from pprint import pprint #noqa: T203,I001, RUF100 + from pprint import pprint #noqa: T203,I001,RUF100 print("----------------------------") - pprint(logs.data) #noqa: T203,I001,RUF100 + pprint(logs.data) # noqa: T203,I001,RUF100 print("----------------------------") return (False, None) From 455d01fa0d06a4997186478e4e27e639e0e5be75 Mon Sep 17 00:00:00 2001 From: Carles Bruguera Date: Fri, 9 Jan 2026 12:32:37 +0100 Subject: [PATCH 10/10] Format --- nuclia_e2e/nuclia_e2e/tests/test_kb_features.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py index 50722885..84fb833e 100644 --- a/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py +++ b/nuclia_e2e/nuclia_e2e/tests/test_kb_features.py @@ -663,7 +663,8 @@ async def condition() -> tuple[bool, Any]: and logs.data[-1].question == TEST_CHOCO_ASK_MORE ): return (True, logs) - from pprint import pprint #noqa: T203,I001,RUF100 + from pprint import pprint # noqa: T203,I001,RUF100 + print("----------------------------") pprint(logs.data) # noqa: T203,I001,RUF100 print("----------------------------")