release: bump version to 0.74.7
Some checks are pending
ci / backend (push) Waiting to run
ci / frontend (push) Waiting to run
ci / delivery (push) Blocked by required conditions
release / images (push) Waiting to run

This commit is contained in:
linkong
2026-09-17 17:30:54 +08:00
parent 83a10a6c34
commit 60eefb19c9
25 changed files with 1079 additions and 116 deletions

View File

@@ -112,6 +112,8 @@ class ErrorDiagnosticsTests(unittest.TestCase):
source {shlex.quote(str(MODULE))}
log_line() {{ echo "$3"; }}
log_note() {{ echo "$1"; }}
stop_wait_session() {{ :; }}
VERBOSE=1
{shell_function('log_error')}
log_error 'new failure'
""",
@@ -133,19 +135,22 @@ class ErrorDiagnosticsTests(unittest.TestCase):
with self.subTest(verbose=verbose):
log = Path(folder) / "build ' quoted $(not-a-command).log"
result = run_shell(
["run_ai_provider_build_command"],
["run_ai_provider_build_command", "run_docker_observed"],
f"""
PATH={shlex.quote(folder + ':' + os.environ['PATH'])}
VERBOSE={verbose}
DOCKER_COMMAND_RUNNER={shlex.quote(str(ROOT / 'scripts/docker_command.py'))}
AI_PROVIDER_BUILD_LOG_FILE={shlex.quote(str(log))}
run_command_with_spinner() {{ shift; "$@"; }}
clear_wait_spinner() {{ :; }}
docker_failure_allows_mirror() {{ return 1; }}
""",
'if run_ai_provider_build_command "docker compose"; '
"then exit 0; else exit $?; fi",
)
self.assertEqual(result.returncode, 17, result.stderr)
self.assertEqual(log.read_text(), "TLS handshake timeout\n")
self.assertNotIn("not-a-command", result.stderr)
self.assertEqual(result.stdout + result.stderr, "")
self.assertNotIn("command not found", result.stderr)
if __name__ == "__main__":