Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ rusqlite = { version = "=0.32.1", features = ["backup", "bundled"] }
# egress path, so the broker links a TLS library deliberately and visibly.
# `ring` rather than the default provider: it is the one already vendored for
# this workspace, so the direct dependency adds no new transitive crate.
rustls = { version = "=0.23.43", default-features = false, features = ["logging", "ring", "std", "tls12"] }
rustls = { version = "=0.23.45", default-features = false, features = ["logging", "ring", "std", "tls12"] }
rustix = { version = "=1.1.4", features = ["net", "process"] }
serde = "=1.0.229"
serde_json = "=1.0.149"
Expand Down
30 changes: 18 additions & 12 deletions rust/crates/automonique-web-entry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6955,6 +6955,22 @@ mod tests {
const LEGACY_HOST: &str = concat!("retired", ".", "example", ".", "invalid");
const MANAGE_WORKER: &str = include_str!("../../../../tools/run_manage_fleet_worker.sh");

fn build_typescript_sdk(sdk: &Path) {
// Both mobile contracts import the same emitted modules. A second
// concurrent tsc build can truncate a module while the first contract
// imports it, producing intermittent missing-export errors. Build once
// before either reader starts and leave that output unchanged.
static BUILD: std::sync::OnceLock<()> = std::sync::OnceLock::new();
BUILD.get_or_init(|| {
let build = Command::new("bun")
.args(["run", "build"])
.current_dir(sdk)
.status()
.expect("build TypeScript SDK");
assert!(build.success(), "TypeScript SDK build failed");
});
}

fn fixture_hosts() -> DashboardHosts {
DashboardHosts::new(CANONICAL_HOST, LEGACY_HOST).expect("fixture hosts")
}
Expand Down Expand Up @@ -8663,12 +8679,7 @@ mod tests {

let repository = Path::new(env!("CARGO_MANIFEST_DIR")).join("../../..");
let sdk = repository.join("sdk/typescript/packages/sdk");
let build = Command::new("bun")
.args(["run", "build"])
.current_dir(&sdk)
.status()
.expect("build TypeScript SDK");
assert!(build.success(), "TypeScript SDK build failed");
build_typescript_sdk(&sdk);
let script = sdk.join("conformance/mobile-rust-http-contract.ts");
let status = Command::new("bun")
.arg("run")
Expand Down Expand Up @@ -10706,12 +10717,7 @@ mod tests {

let repository = Path::new(env!("CARGO_MANIFEST_DIR")).join("../../..");
let sdk = repository.join("sdk/typescript/packages/sdk");
let build = Command::new("bun")
.args(["run", "build"])
.current_dir(&sdk)
.status()
.expect("build TypeScript SDK");
assert!(build.success(), "TypeScript SDK build failed");
build_typescript_sdk(&sdk);
let script = sdk.join("conformance/mobile-rust-http-v2-contract.ts");
let status = Command::new("bun")
.arg("run")
Expand Down
4 changes: 2 additions & 2 deletions sdk/rust/platform-client/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading