Skip to content

Commit

Permalink
Fix ctor std thread init (#874)
Browse files Browse the repository at this point in the history
* clippy

* remove printlns from ctors

* clippy
  • Loading branch information
noise64 authored Sep 6, 2024
1 parent c02bf96 commit 4acacec
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
4 changes: 1 addition & 3 deletions golem-common/src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,7 @@ where
})
});

if config.dtor_friendly {
println!("Tracing initialized, config: {:?}", config);
} else {
if !config.dtor_friendly {
info!(
// NOTE: intentionally logged as string and not as structured
tracing_config = serde_json::to_string(&config).expect("cannot serialize log config"),
Expand Down
4 changes: 2 additions & 2 deletions golem-test-framework/src/components/k8s.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ impl Routing {
loop {
let mut child = Command::new("minikube")
.arg("service")
.arg(&format!("--namespace={}", namespace.0))
.arg(format!("--namespace={}", namespace.0))
.arg("--url")
.arg(service_name)
.stdout(Stdio::piped())
Expand Down Expand Up @@ -492,7 +492,7 @@ impl Routing {
loop {
let output = Command::new("minikube")
.arg("service")
.arg(&format!("--namespace={}", namespace.0))
.arg(format!("--namespace={}", namespace.0))
.arg("--url")
.arg(service_name)
.output()
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/src/benchmarks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,15 @@ pub async fn benchmark_invocations(
result.retries as u64,
);
recorder_clone.count(
&ResultKey::secondary(&format!("{prefix_clone}worker-{n}-retries")),
&ResultKey::secondary(format!("{prefix_clone}worker-{n}-retries")),
result.retries as u64,
);
recorder_clone.count(
&format!("{prefix_clone}invocation-timeouts").into(),
result.timeouts as u64,
);
recorder_clone.count(
&ResultKey::secondary(&format!("{prefix_clone}worker-{n}-timeouts")),
&ResultKey::secondary(format!("{prefix_clone}worker-{n}-timeouts")),
result.timeouts as u64,
);
}
Expand Down
4 changes: 0 additions & 4 deletions integration-tests/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ pub static DEPS: EnvBasedTestDependencies = {
let deps = EnvBasedTestDependencies::blocking_new_from_worker_executor_cluster_size(3);

deps.redis_monitor().assert_valid();
println!(
"Started a cluster of {} worker executors",
deps.worker_executor_cluster().size()
);

deps
};
Expand Down
4 changes: 0 additions & 4 deletions integration-tests/tests/sharding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,10 +671,6 @@ pub static DEPS: EnvBasedTestDependencies = {
});

deps.redis_monitor().assert_valid();
println!(
"Started a cluster of {} worker executors",
deps.worker_executor_cluster().size()
);

deps
};
Expand Down

0 comments on commit 4acacec

Please sign in to comment.