huskies: merge 541_story_backlog_command_for_chat_and_web_ui_shows_only_backlog_items

This commit is contained in:
dave
2026-04-12 12:58:51 +00:00
parent 2bdb0eb730
commit b4dbfcbde6
6 changed files with 241 additions and 65 deletions
+12 -4
View File
@@ -193,10 +193,18 @@ pub(crate) fn run_coverage_gate(path: &Path) -> Result<(bool, String), String> {
}
let mut output = String::from("=== script/test_coverage ===\n");
let result = Command::new(&script)
.current_dir(path)
.output()
.map_err(|e| format!("Failed to run script/test_coverage: {e}"))?;
let result = match Command::new(&script).current_dir(path).output() {
Ok(r) => r,
Err(e) if e.raw_os_error() == Some(26) => {
// ETXTBSY — retry once after a brief pause.
std::thread::sleep(std::time::Duration::from_millis(50));
Command::new(&script)
.current_dir(path)
.output()
.map_err(|e| format!("Failed to run script/test_coverage: {e}"))?
}
Err(e) => return Err(format!("Failed to run script/test_coverage: {e}")),
};
let combined = format!(
"{}{}",