Repository navigation
fix: sync functional tests openshell version with shared pin #2535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
de1c02e
4a92735
04b43ac
f300b6b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [low] error-handling-gap The source of openshell-version.sh is not guarded by a file-existence check. The script's set -euo pipefail ensures it exits on failure, but unlike the other pre-flight checks in this file, there is no user-friendly error message. Suggested fix: Add a guard before sourcing: if [[ ! -f "${REPO_ROOT}/.github/scripts/openshell-version.sh" ]]; then echo "ERROR: ..."; exit 1; fi |
||
| if command -v openshell >/dev/null 2>&1; then | ||
| source "${REPO_ROOT}/.github/scripts/openshell-version.sh" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [low] edge-case The version extraction |
||
| 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" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[low] incomplete-duplication-removal
The diff removes the TODO comment that identified duplication between functional-tests.yml and action.yml. The PR resolves version pin and CLI install duplication, but Podman setup remains duplicated. Removing the TODO is slightly premature.