test(tools): the shell-script tests run Git Bash on Windows, and the Keycloak ones skip there #662
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.37) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 239 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.328
Real PR Conversation Timeline
1 comments
"Review active on #662"
general
weight: 0.35
github-actions[bot]
Module
tools/scripts/testsTask
Finishes the Windows support that #583 started for
precheck.sh:pytest tools/scripts/testsnow runs on a Windows laptop (Git Bash), not only CI.What was wrong
On Windows,
subprocess.run(["bash", ...])findsC:\Windows\System32\bash.exe(the WSL launcher) before Git Bash, becauseCreateProcesssearches the system folder first. That bash cannot open a Windows path, so every test that starts a script through it failed with exit code 127. 11 tests failed on a Windows 11 laptop with Git for Windows: 5 intest_precheck.py(the two "everything passing" cases, "without a venv", and two of the three tests #658 added) and the 6 intest_keycloak_realm.py. The third test from #658 (check_commitsfails whengit logfails) passed only by accident: the wrong bash also exits non-zero.What changes
test_precheck.pyandtest_keycloak_realm.pystartBASH = shutil.which("bash") or "bash"instead of the bare name: the bash onPATH, by its full path. On Linux and macOS that is/usr/bin/bashor similar, as before, so CI behaves exactly as before. All 4 calls intest_precheck.py(including the 3 added by #658) use it.test_monitorandtest_db_restorealready do:keycloak-realm.shruns on the Linux API host and needspython3, which on Windows is the Microsoft Store shortcut.No script and no production code changes.
Checked (Windows 11, Git Bash, Python 3.12)
pytest tools/scripts/testson main: 11 failed, 216 passed, 27 skipped.tools/scripts/precheck.sh: ok.Time spent
Time spent: 0.3h
Contract change?
🤖 Generated with Claude Code