omx(team): auto-checkpoint worker-1 [1]

This commit is contained in:
bellman
2026-05-14 18:26:48 +09:00
parent 4f60cf70f1
commit 5625ba597b

View File

@@ -9062,6 +9062,23 @@ mod tests {
assert_eq!(background_output["noOutputExpected"], true);
}
#[test]
fn bash_tool_classifies_test_timeout_as_hung_with_provenance() {
let timeout = execute_tool(
"bash",
&json!({ "command": "sleep 1 # cargo test slow_case", "timeout": 10 }),
)
.expect("bash timeout should return output");
let timeout_output: serde_json::Value = serde_json::from_str(&timeout).expect("json");
assert_eq!(timeout_output["interrupted"], true);
assert_eq!(timeout_output["returnCodeInterpretation"], "test.hung");
assert_eq!(timeout_output["structuredContent"][0]["event"], "test.hung");
assert_eq!(
timeout_output["structuredContent"][0]["data"]["provenance"],
"bash.timeout"
);
}
#[test]
fn bash_workspace_tests_are_blocked_when_branch_is_behind_main() {
let _guard = env_lock()