You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
exec-harness: benchmark URI built from pre-truncation name #368
The behavior is in crates/exec-harness/src/uri.rs.
Minimal direct check:
let name = Some("x".repeat(2000));let command = vec!["true".to_string()];let result = generate_name_and_uri(&name,&command);assert_eq!(result.name.len(),924);assert_eq!(result.uri, format!("exec_harness::{}", result.name));
The final assertion fails because result.uri is built from the longer input name.
Expected behavior
If the benchmark name is truncated, I expected the returned URI to match the returned name:
uri == format!("exec_harness::{}", name)
Actual behavior
The returned name and uri disagree for long explicit names.
I have not verified whether this causes a user-visible failure after upload; the hard fact I observed is the mismatch above.
Activity