Stabilize persistent full-ci test failures

This commit is contained in:
starr-openai
2026-05-29 01:00:18 -07:00
parent 560e339d86
commit 4fab9541eb
3 changed files with 11 additions and 3 deletions

View File

@@ -1544,7 +1544,7 @@ async fn remote_control_waits_for_account_id_before_enrolling() {
.expect("auth with account id should save");
auth_manager.reload().await;
let enroll_request = timeout(Duration::from_millis(100), accept_http_request(&listener))
let enroll_request = timeout(Duration::from_secs(1), accept_http_request(&listener))
.await
.expect("auth change should wake remote control before the retry delay");
assert_eq!(

View File

@@ -783,7 +783,13 @@ mod tests {
check
.details
.iter()
.any(|detail| detail.contains(missing_path.to_string_lossy().as_ref()))
.any(|detail| detail.contains(
missing_path
.file_name()
.expect("rollout path should have a file name")
.to_string_lossy()
.as_ref()
))
);
}

View File

@@ -327,7 +327,9 @@ fn stdio_transport(
env: Option<HashMap<String, String>>,
env_vars: Vec<McpServerEnvVar>,
) -> McpServerTransportConfig {
stdio_transport_with_cwd(command, env, env_vars, /*cwd*/ None)
let cwd = std::env::var_os(remote_env_env_var())
.map(|_| PathBuf::from("/tmp/codex-remote-env"));
stdio_transport_with_cwd(command, env, env_vars, cwd)
}
fn stdio_transport_with_cwd(