[object Object]

← back to Exo

more robust discovery log check

3c0297c3e97002d76f06d3b2452e3ac6e72d7222 · 2024-12-06 14:52:07 +0000 · Alex Cheema

Files touched

Diff

commit 3c0297c3e97002d76f06d3b2452e3ac6e72d7222
Author: Alex Cheema <alexcheema123@gmail.com>
Date:   Fri Dec 6 14:52:07 2024 +0000

    more robust discovery log check
---
 .github/workflows/build_and_test.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index ab8bd205..705027aa 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -100,7 +100,10 @@ jobs:
           PID2=$!
           sleep 10
           kill $PID1 $PID2
-          if grep -q "Peer statuses: {\\'node2\\': \\'is_connected=True, health_check=True" output1.log && ! grep -q "Failed to connect peers:" output1.log && grep -q "Peer statuses: {\\'node1\\': \\'is_connected=True, health_check=True" output2.log && ! grep -q "Failed to connect peers:" output2.log; then
+          if grep -q "Peer statuses: {.*'node2': 'is_connected=True, health_check=True" output1.log && \
+             ! grep -q "Failed to connect peers:" output1.log && \
+             grep -q "Peer statuses: {.*'node1': 'is_connected=True, health_check=True" output2.log && \
+             ! grep -q "Failed to connect peers:" output2.log; then
             echo "Test passed: Both instances discovered each other"
             exit 0
           else

← 8d433e65 run tinygrad and discovery integratrion tests on linux  ·  back to Exo  ·  check discovery on integration tests too 58bcf5b4 →