Files
guix-mirror/gnu/packages/patches/codex-0.144.1-test-timeout.patch
Danny Milosavljevic c8cb067001 gnu: codex: Update to 0.144.1.
* gnu/packages/codex.scm (codex): Update to 0.144.1.
* gnu/packages/rust-sources.scm (rust-codex-0.142.0): Delete variable.
* gnu/packages/rust-crates.scm: Update accordingly.
* gnu/packages/patches/codex-0.144.1-disable-code-mode.patch: New file.
* gnu/packages/patches/codex-0.144.1-test-selected-capability-readiness.patch: New file.
* gnu/packages/patches/codex-0.144.1-test-disable-network-model-refresh.patch: New file.
* gnu/packages/patches/rust-codex-0.120.0-remove-libwebrtc.patch: Rename to...
* gnu/packages/patches/codex-0.144.1-remove-libwebrtc.patch: ...this.
* gnu/packages/patches/rust-codex-0.124.0-remove-patch-sections.patch: Rename to...
* gnu/packages/patches/codex-0.144.1-remove-patch-sections.patch: ...this.
* gnu/packages/patches/rust-codex-0.98.0-test-shebangs.patch: Rename to...
* gnu/packages/patches/codex-0.144.1-test-shebangs.patch: ...this.
* gnu/packages/patches/rust-codex-0.120.0-test-timeout.patch: Rename to...
* gnu/packages/patches/codex-0.144.1-test-timeout.patch: ...this.
* gnu/packages/patches/rust-codex-0.124.0-code-mode-stub-toolname.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Update references.
2026-07-13 18:51:17 +02:00

21 lines
880 B
Diff

Author: Danny Milosavljevic <dannym@friendly-machines.com>
Date: 2026-03-05
License: ASL2.0
Subject: Increase per-event test timeout from 10 to 30 seconds.
In resource-constrained build environments, image processing (resize,
base64-encode, JSON serialization) can exceed 10 seconds under CPU
contention, causing intermittent test failures.
--- a/codex-rs/core/tests/common/lib.rs
+++ b/codex-rs/core/tests/common/lib.rs
@@ -348,7 +348,7 @@
use tokio::time::timeout;
loop {
// Allow a bit more time to accommodate async startup work (e.g. config IO, tool discovery)
- let ev = timeout(wait_time.max(Duration::from_secs(10)), codex.next_event())
+ let ev = timeout(wait_time.max(Duration::from_secs(30)), codex.next_event())
.await
.expect("timeout waiting for event")
.expect("stream ended unexpectedly");