mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
codex: fix realtime CI failures
Install the rustls crypto provider in the realtime WebRTC test server so the app-server realtime tests stop panicking, and update the core handshake assertion to match the current realtime calls URL. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
1
codex-rs/Cargo.lock
generated
1
codex-rs/Cargo.lock
generated
@@ -3391,6 +3391,7 @@ dependencies = [
|
||||
"codex-protocol",
|
||||
"codex-utils-absolute-path",
|
||||
"codex-utils-cargo-bin",
|
||||
"codex-utils-rustls-provider",
|
||||
"ctor 0.6.3",
|
||||
"futures",
|
||||
"notify",
|
||||
|
||||
@@ -24,6 +24,7 @@ codex-models-manager = { workspace = true }
|
||||
codex-protocol = { workspace = true }
|
||||
codex-utils-absolute-path = { workspace = true }
|
||||
codex-utils-cargo-bin = { workspace = true }
|
||||
codex-utils-rustls-provider = { workspace = true }
|
||||
ctor = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
notify = { workspace = true }
|
||||
|
||||
@@ -5,6 +5,7 @@ use std::time::Duration;
|
||||
|
||||
use base64::Engine;
|
||||
use base64::engine::general_purpose::STANDARD as BASE64_STANDARD;
|
||||
use codex_utils_rustls_provider::ensure_rustls_crypto_provider;
|
||||
use opus_rs::OpusDecoder;
|
||||
use serde_json::Value;
|
||||
use tokio::io::AsyncReadExt;
|
||||
@@ -285,6 +286,8 @@ async fn start_session(
|
||||
}
|
||||
|
||||
async fn create_peer_connection() -> Option<Arc<RTCPeerConnection>> {
|
||||
ensure_rustls_crypto_provider();
|
||||
|
||||
let mut media_engine = MediaEngine::default();
|
||||
media_engine.register_default_codecs().ok()?;
|
||||
let registry = register_default_interceptors(Registry::new(), &mut media_engine).ok()?;
|
||||
|
||||
@@ -267,10 +267,7 @@ async fn conversation_start_audio_text_close_round_trip() -> Result<()> {
|
||||
server.handshakes()[1].header("authorization").as_deref(),
|
||||
Some("Bearer dummy")
|
||||
);
|
||||
assert_eq!(
|
||||
server.handshakes()[1].uri(),
|
||||
"/v1/realtime/calls?intent=quicksilver&model=realtime-test-model"
|
||||
);
|
||||
assert_eq!(server.handshakes()[1].uri(), "/v1/realtime/calls");
|
||||
let mut request_types = [
|
||||
connection[1].body_json()["type"]
|
||||
.as_str()
|
||||
|
||||
Reference in New Issue
Block a user