diff --git a/.github/scripts/run_langgraph_cli_test.py b/.github/scripts/run_langgraph_cli_test.py index ac89c838f..cdead9c6d 100644 --- a/.github/scripts/run_langgraph_cli_test.py +++ b/.github/scripts/run_langgraph_cli_test.py @@ -1,7 +1,8 @@ +import logging import pathlib import sys import time -from urllib import request, error +from urllib import error, request import langgraph_cli import langgraph_cli.config @@ -10,7 +11,6 @@ from langgraph_cli.cli import prepare_args_and_stdin from langgraph_cli.constants import DEFAULT_PORT from langgraph_cli.exec import Runner, subp_exec from langgraph_cli.progress import Progress -import logging logger = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) @@ -18,6 +18,7 @@ logging.basicConfig(level=logging.INFO) def test(config: pathlib.Path, port: int, tag: str, verbose: bool): """Spin up API with Postgres/Redis via docker compose and wait until ready.""" + logger.info("Starting test...") with Runner() as runner, Progress(message="Pulling...") as set: # Detect docker/compose capabilities capabilities = langgraph_cli.docker.check_capabilities(runner) @@ -155,6 +156,7 @@ def test(config: pathlib.Path, port: int, tag: str, verbose: bool): except Exception: logger.exception("Failed to bring down compose stack") pass + logger.info("Test finished") @@ -166,4 +168,10 @@ if __name__ == "__main__": parser.add_argument("-c", "--config", type=str, default="./langgraph.json") parser.add_argument("-p", "--port", type=int, default=DEFAULT_PORT) args = parser.parse_args() - test(pathlib.Path(args.config), args.port, args.tag, verbose=True) + try: + test(pathlib.Path(args.config), args.port, args.tag, verbose=True) + except BaseException: + logger.exception("Test failed") + raise + + logger.info("Test execution finished") diff --git a/.github/workflows/_integration_test.yml b/.github/workflows/_integration_test.yml index 2a1533334..e5d5f66e5 100644 --- a/.github/workflows/_integration_test.yml +++ b/.github/workflows/_integration_test.yml @@ -94,16 +94,20 @@ jobs: cp ../.env.example .env if [ -n "${{ secrets.LANGSMITH_API_KEY }}" ]; then echo "LANGSMITH_API_KEY=${{ secrets.LANGSMITH_API_KEY }}" >> .env; fi timeout 60 python ../../../../.github/scripts/run_langgraph_cli_test.py -t langgraph-test-h + echo "Finished starting up langgraph-test-h" LANGGRAPH_VERSION=$(docker run --rm --entrypoint "" langgraph-test-h python -c "import sys; from importlib.metadata import version; v = version('langgraph'); print(v);") if [ "$LANGGRAPH_VERSION" != "1.0.2" ]; then + echo "LANGGRAPH_VERSION != 1.0.2; $LANGGRAPH_VERSION" exit 1 fi LANGCHAIN_OPENAI_VERSION=$(docker run --rm --entrypoint "" langgraph-test-h python -c "import sys; from importlib.metadata import version; v = version('langchain-openai'); print(v);") if [ "$LANGCHAIN_OPENAI_VERSION" != "1.0.1" ]; then + echo "LANGCHAIN_OPENAI_VERSION != 1.0.1; $LANGCHAIN_OPENAI_VERSION" exit 1 fi LANGCHAIN_ANTHROPIC_VERSION=$(docker run --rm --entrypoint "" langgraph-test-h python -c "import sys; from importlib.metadata import version; v = version('langchain-anthropic'); print(v);") - if [ "$LANGCHAIN_ANTHROPIC_VERSION" != "1.0.0.a5" ]; then + if [ "$LANGCHAIN_ANTHROPIC_VERSION" != "1.0.0a5" ]; then + echo "LANGCHAIN_ANTHROPIC_VERSION != 1.0.0a5; $LANGCHAIN_ANTHROPIC_VERSION" exit 1 fi diff --git a/libs/cli/examples/graph_prerelease_reqs/deps/zuper_deps/pyproject.toml b/libs/cli/examples/graph_prerelease_reqs/deps/zuper_deps/pyproject.toml index f5ea6f2a6..f6c1289a7 100644 --- a/libs/cli/examples/graph_prerelease_reqs/deps/zuper_deps/pyproject.toml +++ b/libs/cli/examples/graph_prerelease_reqs/deps/zuper_deps/pyproject.toml @@ -5,5 +5,5 @@ description = "Test for prerelease stuff" readme = "README.md" requires-python = ">=3.10" dependencies = [ - "langchain-openai==1.0.0" + "langchain-openai==1.0.1" ] \ No newline at end of file diff --git a/libs/cli/examples/graph_prerelease_reqs/pyproject.toml b/libs/cli/examples/graph_prerelease_reqs/pyproject.toml index 35ea2e6e5..b0c1ab59a 100644 --- a/libs/cli/examples/graph_prerelease_reqs/pyproject.toml +++ b/libs/cli/examples/graph_prerelease_reqs/pyproject.toml @@ -6,7 +6,7 @@ readme = "README.md" requires-python = ">=3.10" dependencies = [ "langchain-openai==1.0.0a2", - "langchain-anthropic==1.0.0.a5", + "langchain-anthropic==1.0.0a5", "langgraph==1.0.2" ]