Skip to content

Comments

[countersyncd]: Fix cargo bench compiling error#4204

Merged
prsunny merged 2 commits intosonic-net:masterfrom
Pterosaur:fix_otel_bench
Feb 10, 2026
Merged

[countersyncd]: Fix cargo bench compiling error#4204
prsunny merged 2 commits intosonic-net:masterfrom
Pterosaur:fix_otel_bench

Conversation

@Pterosaur
Copy link
Contributor

What I did
Remove deprecated parameters.

Why I did it
The parameter, print_to_console, has been removed, but the CI will not run any bench program, so this error was ignored.

How I verified it
Run cargo locally

Details if related

Signed-off-by: Ze Gan <ganze718@gmail.com>
@mssonicbld
Copy link
Collaborator

/azp run

@Pterosaur Pterosaur marked this pull request as ready for review February 9, 2026 10:56
@Pterosaur Pterosaur requested a review from prsunny as a code owner February 9, 2026 10:56
Copilot AI review requested due to automatic review settings February 9, 2026 10:56
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a build break in countersyncd benchmarks by updating OtelActorConfig initializations to match the current struct definition (removing a deprecated field), ensuring cargo bench compiles successfully.

Changes:

  • Removed the deprecated print_to_console field from OtelActorConfig initializers in benchmark code.
  • Restored compatibility of crates/countersyncd/benches/* with the current OtelActorConfig API.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/countersyncd/benches/otel_actor_perf.rs Removes deprecated print_to_console from OtelActorConfig init so the bench compiles.
crates/countersyncd/benches/end_to_end.rs Removes deprecated print_to_console from OtelActorConfig init so the bench compiles.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Pterosaur Pterosaur requested a review from Janetxxx February 9, 2026 11:03
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@Janetxxx Janetxxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to msft-202412: Azure/sonic-swss.msft#207

jithenderkondam pushed a commit to jithenderkondam/sonic-swss that referenced this pull request Feb 17, 2026
What I did
Remove deprecated parameters.

Why I did it
The parameter, print_to_console, has been removed, but the CI will not run any bench program, so this error was ignored.
ksravani-hcl pushed a commit to ksravani-hcl/sonic-swss that referenced this pull request Feb 20, 2026
What I did
Remove deprecated parameters.

Why I did it
The parameter, print_to_console, has been removed, but the CI will not run any bench program, so this error was ignored.
baorliu pushed a commit to baorliu/sonic-swss that referenced this pull request Feb 23, 2026
What I did
Remove deprecated parameters.

Why I did it
The parameter, print_to_console, has been removed, but the CI will not run any bench program, so this error was ignored.

Signed-off-by: Baorong Liu <96146196+baorliu@users.noreply.github.com>
ksravani-hcl pushed a commit to ksravani-hcl/sonic-swss that referenced this pull request Feb 24, 2026
What I did
Remove deprecated parameters.

Why I did it
The parameter, print_to_console, has been removed, but the CI will not run any bench program, so this error was ignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants