ci: fix nightly runs (#1086)
This PR fixes the failing nightly runs https://github.com/modelcontextprotocol/go-sdk/actions/workflows/nightly.yml
This commit is contained in:
parent
7fde7d3452
commit
0a8953d71c
1 changed files with 9 additions and 2 deletions
|
|
@ -69,9 +69,14 @@ fi
|
||||||
# Build the conformance server.
|
# Build the conformance server.
|
||||||
go build -o "$WORKDIR/conformance-server" ./conformance/everything-server
|
go build -o "$WORKDIR/conformance-server" ./conformance/everything-server
|
||||||
|
|
||||||
# Start the server in the background
|
# Start the server in the background.
|
||||||
|
# -stateless=false pins the server to the stateful transport so that
|
||||||
|
# server-initiated sampling/elicitation scenarios (which are not supported on
|
||||||
|
# stateless streamable HTTP) work against the current @latest conformance
|
||||||
|
# suite. Drop this flag once the 0.2.x line is promoted to the @latest
|
||||||
|
# dist-tag on npm and the stateless leg becomes viable.
|
||||||
echo "Starting conformance server on localhost:$PORT..."
|
echo "Starting conformance server on localhost:$PORT..."
|
||||||
"$WORKDIR/conformance-server" -http="localhost:$PORT" &
|
"$WORKDIR/conformance-server" -http="localhost:$PORT" -stateless=false &
|
||||||
SERVER_PID=$!
|
SERVER_PID=$!
|
||||||
|
|
||||||
echo "Server pid is $SERVER_PID"
|
echo "Server pid is $SERVER_PID"
|
||||||
|
|
@ -90,11 +95,13 @@ if [ -n "$CONFORMANCE_REPO" ]; then
|
||||||
(cd "$WORKDIR" && \
|
(cd "$WORKDIR" && \
|
||||||
npm --prefix "$CONFORMANCE_REPO" run start -- \
|
npm --prefix "$CONFORMANCE_REPO" run start -- \
|
||||||
server --url "http://localhost:$PORT" \
|
server --url "http://localhost:$PORT" \
|
||||||
|
--spec-version 2025-11-25 \
|
||||||
${RESULT_DIR:+--output-dir "$RESULT_DIR"}) || FINAL_EXIT_CODE=$?
|
${RESULT_DIR:+--output-dir "$RESULT_DIR"}) || FINAL_EXIT_CODE=$?
|
||||||
else
|
else
|
||||||
(cd "$WORKDIR" && \
|
(cd "$WORKDIR" && \
|
||||||
npx @modelcontextprotocol/conformance@latest \
|
npx @modelcontextprotocol/conformance@latest \
|
||||||
server --url "http://localhost:$PORT" \
|
server --url "http://localhost:$PORT" \
|
||||||
|
--spec-version 2025-11-25 \
|
||||||
${RESULT_DIR:+--output-dir "$RESULT_DIR"}) || FINAL_EXIT_CODE=$?
|
${RESULT_DIR:+--output-dir "$RESULT_DIR"}) || FINAL_EXIT_CODE=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue