mirror of
https://github.com/openai/codex.git
synced 2026-05-23 20:44:50 +00:00
Give remote integration waits more CI headroom
Keep the assertions intact while allowing rollback and remote tool-output events longer to arrive under the remote full-ci load. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -46,7 +46,7 @@ use wiremock::MockServer;
|
||||
|
||||
const AFTER_SECOND_RESUME: &str = "AFTER_SECOND_RESUME";
|
||||
const AFTER_ROLLBACK: &str = "AFTER_ROLLBACK";
|
||||
const THREAD_ROLLBACK_EVENT_TIMEOUT: Duration = Duration::from_secs(25);
|
||||
const THREAD_ROLLBACK_EVENT_TIMEOUT: Duration = Duration::from_secs(60);
|
||||
|
||||
fn network_disabled() -> bool {
|
||||
std::env::var(CODEX_SANDBOX_NETWORK_DISABLED_ENV_VAR).is_ok()
|
||||
|
||||
@@ -41,7 +41,7 @@ use std::path::PathBuf;
|
||||
use tokio::time::Duration;
|
||||
use wiremock::MockServer;
|
||||
|
||||
const THREAD_ROLLBACK_EVENT_TIMEOUT: Duration = Duration::from_secs(25);
|
||||
const THREAD_ROLLBACK_EVENT_TIMEOUT: Duration = Duration::from_secs(60);
|
||||
|
||||
fn read_only_user_turn(test: &TestCodex, items: Vec<UserInput>, model: String) -> Op {
|
||||
let (sandbox_policy, permission_profile) =
|
||||
|
||||
@@ -44,7 +44,7 @@ async fn wait_for_function_call_output(
|
||||
response_mock: &core_test_support::responses::ResponseMock,
|
||||
call_id: &str,
|
||||
) -> Result<String> {
|
||||
tokio::time::timeout(Duration::from_secs(25), async {
|
||||
tokio::time::timeout(Duration::from_secs(60), async {
|
||||
loop {
|
||||
if let Some(output) = response_mock.function_call_output_text(call_id) {
|
||||
return output;
|
||||
|
||||
@@ -68,7 +68,7 @@ async fn wait_for_function_call_output(
|
||||
response_mock: &responses::ResponseMock,
|
||||
call_id: &str,
|
||||
) -> anyhow::Result<Value> {
|
||||
tokio::time::timeout(Duration::from_secs(25), async {
|
||||
tokio::time::timeout(Duration::from_secs(60), async {
|
||||
loop {
|
||||
if let Some(output) = response_mock.function_call_output(call_id) {
|
||||
return output;
|
||||
|
||||
Reference in New Issue
Block a user