Skip to content

[fuzzing] Fix timeout in retry_exceeds_buffer_size_in_delay#34627

Merged
ctiller merged 6 commits intogrpc:masterfrom
ctiller:rr
Oct 11, 2023
Merged

[fuzzing] Fix timeout in retry_exceeds_buffer_size_in_delay#34627
ctiller merged 6 commits intogrpc:masterfrom
ctiller:rr

Conversation

@ctiller
Copy link
Copy Markdown
Member

@ctiller ctiller commented Oct 9, 2023

Fix b/304114403

  • adds a new experimental tracer useful for diagnosing ping timeout failures in unit tests
  • adds a pair of experimental tracers for fuzzing event engine
  • fix the behavior of FuzzingEventEngine so that a RunAfter(0, ...) runs in the same tick
  • up the rate of sends (reduce the send delay) so we guarantee to be able to send 200kb/sec in fuzzed e2e unit tests


#include <grpc/support/log.h>

grpc_core::TraceFlag grpc_ping_trace(false, "ping");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe call this something like "http2_ping"?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done


#include <grpc/support/log.h>

grpc_core::TraceFlag grpc_ping_trace(false, "ping");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please document the tracer in doc/environment_variables.md.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done


extern gpr_timespec (*gpr_now_impl)(gpr_clock_type clock_type);

static grpc_core::TraceFlag trace_writes(false, "fee_writes");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the "fee_" prefix is going to be confusing. Can we expand that a bit, like maybe "fuzzing_ee_"?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done

@grpc-checks grpc-checks bot added bloat/low and removed bloat/none labels Oct 9, 2023
@ctiller ctiller added the release notes: no Indicates if PR should not be in release notes label Oct 11, 2023
@ctiller ctiller merged commit ec49866 into grpc:master Oct 11, 2023
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Oct 12, 2023
ctiller added a commit to ctiller/grpc that referenced this pull request Oct 20, 2023
Fix b/304114403

- adds a new experimental tracer useful for diagnosing ping timeout
failures in unit tests
- adds a pair of experimental tracers for fuzzing event engine
- fix the behavior of FuzzingEventEngine so that a RunAfter(0, ...) runs
in the same tick
- up the rate of sends (reduce the send delay) so we guarantee to be
able to send 200kb/sec in fuzzed e2e unit tests

---------

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bloat/low imported Specifies if the PR has been imported to the internal repository lang/core per-call-memory/neutral per-channel-memory/neutral release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants