From de1c02e3eed05585b4e3c4baa1d7e44bf0ce5a47 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 22 Jun 2026 17:11:53 -0400 Subject: [PATCH 1/4] fix: sync functional tests openshell version with shared pin The functional-tests workflow hardcoded openshell 0.0.38 while the rest of the repo pins 0.0.63 via .github/scripts/openshell-version.sh. Source the shared script instead of hardcoding the version, and add an early version-mismatch check in eval/run-functional.sh so any drift is caught regardless of how the tests are invoked. Assisted-by: Claude Opus 4.6 Co-Authored-By: Claude Opus 4.6 Signed-off-by: Ralph Bean --- .github/workflows/functional-tests.yml | 8 ++------ eval/run-functional.sh | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 6496e85a11..220c2409d9 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -61,12 +61,8 @@ jobs: - name: Add bin to PATH run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" - # TODO: The openshell setup below (version, CLI, gateway, Podman, - # gateway start) is duplicated from action.yml. Extract into a - # shared script (e.g. .github/scripts/setup-openshell.sh) so the - # version and config stay in sync across both places. - name: Set OpenShell version - run: echo "OPENSHELL_VERSION=0.0.38" >> "${GITHUB_ENV}" + run: source .github/scripts/openshell-version.sh - name: Install OpenShell CLI run: | @@ -118,7 +114,7 @@ jobs: OPENSHELL_SSH_HANDSHAKE_SECRET="ci-$(openssl rand -hex 16)" export OPENSHELL_SSH_HANDSHAKE_SECRET echo "::add-mask::${OPENSHELL_SSH_HANDSHAKE_SECRET}" - export OPENSHELL_SUPERVISOR_IMAGE="ghcr.io/nvidia/openshell/supervisor:dfd47683e7da4f1a4a8fa5d77f92d3696e6a41f9" + export OPENSHELL_SUPERVISOR_IMAGE="ghcr.io/nvidia/openshell/supervisor:${OPENSHELL_SHA}" "${{ runner.temp }}/openshell-gateway" \ --bind-address 0.0.0.0 \ --health-port 8081 \ diff --git a/eval/run-functional.sh b/eval/run-functional.sh index f84f485c4c..9e724676c0 100755 --- a/eval/run-functional.sh +++ b/eval/run-functional.sh @@ -50,6 +50,20 @@ if ! python3 -c "import agent_eval" 2>/dev/null; then exit 1 fi +# Fail fast if openshell version doesn't match the repo pin +if command -v openshell >/dev/null 2>&1; then + source "${REPO_ROOT}/.github/scripts/openshell-version.sh" + installed="$(openshell --version | awk '{print $NF}')" + installed="${installed#v}" + if [[ "${installed}" != "${OPENSHELL_VERSION}" ]]; then + echo "ERROR: OpenShell version mismatch: installed ${installed}, expected ${OPENSHELL_VERSION}" >&2 + exit 1 + fi +else + echo "ERROR: openshell is not installed" >&2 + exit 1 +fi + WORKSPACE_PY="${HARNESS_DIR}/skills/eval-run/scripts/workspace.py" EXECUTE_PY="${HARNESS_DIR}/skills/eval-run/scripts/execute.py" SCORE_PY="${HARNESS_DIR}/skills/eval-run/scripts/score.py" From 4a927356a1746d6a1e646a9709b0e3259d6b0b5f Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 22 Jun 2026 17:30:41 -0400 Subject: [PATCH 2/4] fix: drop hardcoded supervisor image override MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit action.yml doesn't set OPENSHELL_SUPERVISOR_IMAGE — it lets the gateway use its built-in default. The functional tests had an old hardcoded SHA that doesn't correspond to the openshell release SHA. Remove the override so the 0.0.63 gateway uses its own default supervisor image. Assisted-by: Claude Opus 4.6 Co-Authored-By: Claude Opus 4.6 Signed-off-by: Ralph Bean --- .github/workflows/functional-tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 220c2409d9..80fde90daa 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -114,7 +114,6 @@ jobs: OPENSHELL_SSH_HANDSHAKE_SECRET="ci-$(openssl rand -hex 16)" export OPENSHELL_SSH_HANDSHAKE_SECRET echo "::add-mask::${OPENSHELL_SSH_HANDSHAKE_SECRET}" - export OPENSHELL_SUPERVISOR_IMAGE="ghcr.io/nvidia/openshell/supervisor:${OPENSHELL_SHA}" "${{ runner.temp }}/openshell-gateway" \ --bind-address 0.0.0.0 \ --health-port 8081 \ From 04b43acd9c76c13eafb25163296e008553035269 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 22 Jun 2026 18:46:41 -0400 Subject: [PATCH 3/4] fix: align functional tests openshell setup with action.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The functional tests manually downloaded the gateway binary, started it in the background, and registered it with the CLI — an approach that worked with 0.0.38 but broke with 0.0.63 (gateway port 8080 never came up). Replace the manual setup with the same pattern action.yml uses: - Write gateway.env config - Install via the shared install-openshell.sh script - Let openshell manage its own gateway This matches the changes made in PR #2315 when openshell was bumped from 0.0.54 to 0.0.63. Assisted-by: Claude Opus 4.6 Co-Authored-By: Claude Opus 4.6 Signed-off-by: Ralph Bean --- .github/workflows/functional-tests.yml | 52 ++++---------------------- 1 file changed, 7 insertions(+), 45 deletions(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 80fde90daa..6cdf04b9e2 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -61,28 +61,15 @@ jobs: - name: Add bin to PATH run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" - - name: Set OpenShell version - run: source .github/scripts/openshell-version.sh - - - name: Install OpenShell CLI + - name: Configure OpenShell gateway run: | - uv tool install "openshell==${OPENSHELL_VERSION}" - openshell --version + mkdir -p $HOME/.config/openshell/ + cat > $HOME/.config/openshell/gateway.env << EOF + OPENSHELL_BIND_ADDRESS=0.0.0.0 + EOF - - name: Download openshell-gateway - run: | - set -euo pipefail - arch="$(uname -m)" - case "${arch}" in - x86_64) ;; - aarch64|arm64) arch=aarch64 ;; - *) echo "::error::Unsupported architecture: ${arch}"; exit 1 ;; - esac - GATEWAY_ASSET="openshell-gateway-${arch}-unknown-linux-gnu.tar.gz" - GATEWAY_URL="https://github.com/NVIDIA/OpenShell/releases/download/v${OPENSHELL_VERSION}/${GATEWAY_ASSET}" - curl -fsSL "${GATEWAY_URL}" -o "/tmp/${GATEWAY_ASSET}" - tar xzf "/tmp/${GATEWAY_ASSET}" -C "${{ runner.temp }}" - rm -f "/tmp/${GATEWAY_ASSET}" + - name: Install OpenShell CLI + run: .github/scripts/install-openshell.sh - name: Install Podman run: | @@ -108,31 +95,6 @@ jobs: [ -S "${SOCKET_PATH}" ] || { echo "::error::Podman socket not ready"; exit 1; } fi - - name: Start openshell-gateway - run: | - set -euo pipefail - OPENSHELL_SSH_HANDSHAKE_SECRET="ci-$(openssl rand -hex 16)" - export OPENSHELL_SSH_HANDSHAKE_SECRET - echo "::add-mask::${OPENSHELL_SSH_HANDSHAKE_SECRET}" - "${{ runner.temp }}/openshell-gateway" \ - --bind-address 0.0.0.0 \ - --health-port 8081 \ - --drivers podman \ - --disable-tls \ - --db-url "sqlite:/tmp/gateway.db?mode=rwc" \ - >/tmp/gateway.log 2>&1 & - for _i in $(seq 1 30); do - curl -sf http://127.0.0.1:8081/healthz >/dev/null 2>&1 && break - sleep 2 - done - curl -sf http://127.0.0.1:8081/healthz >/dev/null 2>&1 || { - echo "::error::Gateway health check failed" - cat /tmp/gateway.log 2>/dev/null || true - exit 1 - } - openshell gateway add http://127.0.0.1:8080 --local --name local - openshell gateway select local - - name: Install validation dependencies run: pip install --quiet "jsonschema>=4.18.0" From f300b6bdcec870704e774488d32b08d625c603a3 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 22 Jun 2026 18:52:15 -0400 Subject: [PATCH 4/4] fix: quote $HOME and simplify heredoc to satisfy actionlint Assisted-by: Claude Opus 4.6 Co-Authored-By: Claude Opus 4.6 Signed-off-by: Ralph Bean --- .github/workflows/functional-tests.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 6cdf04b9e2..43f131f778 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -63,10 +63,8 @@ jobs: - name: Configure OpenShell gateway run: | - mkdir -p $HOME/.config/openshell/ - cat > $HOME/.config/openshell/gateway.env << EOF - OPENSHELL_BIND_ADDRESS=0.0.0.0 - EOF + mkdir -p "$HOME/.config/openshell" + echo "OPENSHELL_BIND_ADDRESS=0.0.0.0" > "$HOME/.config/openshell/gateway.env" - name: Install OpenShell CLI run: .github/scripts/install-openshell.sh