ci: harden release validation harness checks

This commit is contained in:
Peter Steinberger
2026-05-06 12:06:01 +01:00
parent 9bcb56b45b
commit cf21cbafc4
3 changed files with 10 additions and 1 deletions

View File

@@ -51,7 +51,13 @@ command -v "${npm_cmd}" >/dev/null 2>&1 || {
if [[ ! -f "${loader_path}" ]]; then
mkdir -p "${tool_dir}"
if ! "${npm_cmd}" install --prefix "${npm_tool_dir}" --no-save --no-package-lock "tsx@${tsx_version}" >/dev/null; then
if command -v cygpath >/dev/null 2>&1 && [[ "${npm_cmd}" == *.cmd ]]; then
npm_install_cmd="\"${npm_cmd}\" install --prefix \"${npm_tool_dir}\" --no-save --no-package-lock \"tsx@${tsx_version}\""
if ! cmd.exe /d /s /c "${npm_install_cmd}" >/dev/null; then
echo "failed to install cross-OS release-check loader with ${npm_cmd}." >&2
exit 127
fi
elif ! "${npm_cmd}" install --prefix "${npm_tool_dir}" --no-save --no-package-lock "tsx@${tsx_version}" >/dev/null; then
echo "failed to install cross-OS release-check loader with ${npm_cmd}." >&2
exit 127
fi

View File

@@ -277,6 +277,7 @@ describe("gateway codex harness live helpers", () => {
].join("\n"),
["Available model overrides here:", "", "- `gpt-5.4`"].join("\n"),
["Available model overrides:", "", "- `gpt-5.4`"].join("\n"),
["Available model overrides listed for this session:", "", "- `gpt-5.5`"].join("\n"),
["Available models:", "", "- `gpt-5.4`", "- `gpt-5.4-mini`"].join("\n"),
[
"Available model overrides exposed in this session are:",

View File

@@ -37,6 +37,7 @@ export const EXPECTED_CODEX_MODELS_COMMAND_TEXT = [
"Available model overrides:",
"Available model overrides exposed in this session",
"Available model overrides here:",
"Available model overrides listed for this session:",
"Available model overrides listed in this session:",
"Available model overrides shown in this session:",
"Available model overrides in this session:",
@@ -209,6 +210,7 @@ export function isExpectedCodexModelsCommandText(text: string): boolean {
normalized.includes("visible options:") ||
normalized.includes("available codex agent model:") ||
normalized.includes("available codex agent models:") ||
normalized.includes("available model overrides listed for this session:") ||
normalized.includes("available model overrides listed in this session:") ||
normalized.includes("available model overrides shown in this session:") ||
normalized.includes("available here:") ||