Skip to content

Commit d83209f

Browse files
committed
chore(tests): align rust deser harness with renamed runner-shared variants
StartBenchmark/StopBenchmark/PingPerf and MarkerType::Benchmark{Start,End} were renamed in runner-shared, and IntegrationMode::Perf became Walltime. Update the serialization harness to use the new names; wire ordinals are unchanged, so the Zig side and serialized.zig stay byte-identical.
1 parent 3d13108 commit d83209f

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/tests/deserialize_rust/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tests/deserialize_rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ path = "main.rs"
1111
[dependencies]
1212
bincode = "1.3.3"
1313
serde = { version = "1.0.192", features = ["derive"] }
14-
runner-shared = { git = "https://github.com/CodSpeedHQ/runner" }
14+
runner-shared = { git = "https://github.com/CodSpeedHQ/runner", rev = "214016018bb8ff32014af4ab77e8bc5260fcc878" }

src/tests/deserialize_rust/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ fn main() {
3434
uri: "http://example.com/benchmark".to_string(),
3535
},
3636
);
37-
example("cmd_start_bench", &Command::StartBenchmark);
38-
example("cmd_stop_bench", &Command::StopBenchmark);
37+
example("cmd_start_bench", &Command::StartProfiler);
38+
example("cmd_stop_bench", &Command::StopProfiler);
3939
example("cmd_ack", &Command::Ack);
40-
example("cmd_ping_perf", &Command::PingPerf);
40+
example("cmd_ping_perf", &Command::PingProfiler);
4141
example(
4242
"cmd_set_integration",
4343
&Command::SetIntegration {
@@ -64,21 +64,21 @@ fn main() {
6464
"cmd_add_marker_benchmark_start",
6565
&Command::AddMarker {
6666
pid: 12345,
67-
marker: MarkerType::BenchmarkStart(3000),
67+
marker: MarkerType::RoundStart(3000),
6868
},
6969
);
7070
example(
7171
"cmd_add_marker_benchmark_end",
7272
&Command::AddMarker {
7373
pid: 12345,
74-
marker: MarkerType::BenchmarkEnd(4000),
74+
marker: MarkerType::RoundEnd(4000),
7575
},
7676
);
7777
example("cmd_set_version", &Command::SetVersion(1));
7878
example("cmd_get_runner_mode", &Command::GetIntegrationMode);
7979
example(
8080
"cmd_runner_mode_perf",
81-
&Command::IntegrationModeResponse(IntegrationMode::Perf),
81+
&Command::IntegrationModeResponse(IntegrationMode::Walltime),
8282
);
8383
example(
8484
"cmd_runner_mode_simulation",

0 commit comments

Comments
 (0)