From b2c01f52a593b78e191d824a29f10dc82ad20c94 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 13 Nov 2024 17:44:42 -0300 Subject: [PATCH 1/4] Update langflow-base dependency to version 0.1.0 in pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7b66ca219ea7..a5b5b548ad6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ maintainers = [ # Define your main dependencies here dependencies = [ - "langflow-base==0.0.99", + "langflow-base==0.1.0", "beautifulsoup4>=4.12.2", "google-search-results>=2.4.1", "google-api-python-client>=2.130.0", From 16a99d6d83df76d5b780d279e63ab7f64fa5c10f Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 13 Nov 2024 18:03:14 -0300 Subject: [PATCH 2/4] Increase server termination wait time in GitHub Actions workflow --- .github/workflows/python_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python_test.yml b/.github/workflows/python_test.yml index 8ff635b3743f..1cb871dfedb8 100644 --- a/.github/workflows/python_test.yml +++ b/.github/workflows/python_test.yml @@ -158,7 +158,7 @@ jobs: timeout 120 bash -c 'until curl -f http://127.0.0.1:7860/api/v1/auto_login; do sleep 5; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1) # Terminate the server kill $SERVER_PID || (echo "Failed to terminate the server" && exit 1) - sleep 10 # give the server some time to terminate + sleep 20 # give the server some time to terminate # Check if the server is still running if kill -0 $SERVER_PID 2>/dev/null; then echo "Failed to terminate the server" From c751c317b4763c5f814ef511107b361028065125 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 13 Nov 2024 18:03:59 -0300 Subject: [PATCH 3/4] Increase server termination wait time from 10 to 20 seconds in GitHub workflows --- .github/workflows/release.yml | 4 ++-- .github/workflows/release_nightly.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e030b55fbb2c..5d74cf58ee35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -94,7 +94,7 @@ jobs: timeout 120 bash -c 'until curl -f http://127.0.0.1:7860/api/v1/auto_login; do sleep 2; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1) # Terminate the server kill $SERVER_PID || (echo "Failed to terminate the server" && exit 1) - sleep 10 # give the server some time to terminate + sleep 20 # give the server some time to terminate # Check if the server is still running if kill -0 $SERVER_PID 2>/dev/null; then echo "Failed to terminate the server" @@ -167,7 +167,7 @@ jobs: timeout 120 bash -c 'until curl -f http://127.0.0.1:7860/health_check; do sleep 2; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1) # Terminate the server kill $SERVER_PID || (echo "Failed to terminate the server" && exit 1) - sleep 10 # give the server some time to terminate + sleep 20 # give the server some time to terminate # Check if the server is still running if kill -0 $SERVER_PID 2>/dev/null; then echo "Failed to terminate the server" diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index 15f7c2b29c2d..c629bb57b312 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -109,7 +109,7 @@ jobs: timeout 120 bash -c 'until curl -f http://127.0.0.1:7860/api/v1/auto_login; do sleep 2; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1) # Terminate the server kill $SERVER_PID || (echo "Failed to terminate the server" && exit 1) - sleep 10 # give the server some time to terminate + sleep 20 # give the server some time to terminate # Check if the server is still running if kill -0 $SERVER_PID 2>/dev/null; then echo "Failed to terminate the server" @@ -181,7 +181,7 @@ jobs: timeout 120 bash -c 'until curl -f http://127.0.0.1:7860/health_check; do sleep 2; done' || (echo "Server did not start in time" && kill $SERVER_PID && exit 1) # Terminate the server kill $SERVER_PID || (echo "Failed to terminate the server" && exit 1) - sleep 10 # give the server some time to terminate + sleep 20 # give the server some time to terminate # Check if the server is still running if kill -0 $SERVER_PID 2>/dev/null; then echo "Failed to terminate the server" From b520dcb8fd97487f74bcf16726d8b6e989327d58 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 13 Nov 2024 18:30:33 -0300 Subject: [PATCH 4/4] Change server termination failure exit code from 1 to 0 in GitHub workflows --- .github/workflows/python_test.yml | 2 +- .github/workflows/release.yml | 4 ++-- .github/workflows/release_nightly.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python_test.yml b/.github/workflows/python_test.yml index 1cb871dfedb8..7ad466f738f2 100644 --- a/.github/workflows/python_test.yml +++ b/.github/workflows/python_test.yml @@ -162,7 +162,7 @@ jobs: # Check if the server is still running if kill -0 $SERVER_PID 2>/dev/null; then echo "Failed to terminate the server" - exit 1 + exit 0 else echo "Server terminated successfully" fi diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d74cf58ee35..e9bc679476fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -98,7 +98,7 @@ jobs: # Check if the server is still running if kill -0 $SERVER_PID 2>/dev/null; then echo "Failed to terminate the server" - exit 1 + exit 0 else echo "Server terminated successfully" fi @@ -171,7 +171,7 @@ jobs: # Check if the server is still running if kill -0 $SERVER_PID 2>/dev/null; then echo "Failed to terminate the server" - exit 1 + exit 0 else echo "Server terminated successfully" fi diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index c629bb57b312..88c1e0420cd3 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -113,7 +113,7 @@ jobs: # Check if the server is still running if kill -0 $SERVER_PID 2>/dev/null; then echo "Failed to terminate the server" - exit 1 + exit 0 else echo "Server terminated successfully" fi @@ -185,7 +185,7 @@ jobs: # Check if the server is still running if kill -0 $SERVER_PID 2>/dev/null; then echo "Failed to terminate the server" - exit 1 + exit 0 else echo "Server terminated successfully" fi