Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using deprecated API in allocation counting tests #284

Merged
merged 1 commit into from
Mar 16, 2021

Conversation

glbrntt
Copy link
Contributor

@glbrntt glbrntt commented Mar 16, 2021

Motivation:

Some of the allocation counting tests used frame-based stream channels
rather than the frame payload based ones. These were deprecated some
time ago.

Modifications:

  • Update test handlers to be HTTP2Frame.FramePayload based
  • Update the 'create_client_stream_channel' test to count streams rather
    than summing their stream ID (as stream IDs aren't assigned until the
    stream channel delivers pending writes for the first time).
  • Update allocation limits

Result:

Allocation counting tests don't use deprecated APIs.

@glbrntt glbrntt added the semver/none No version bump required. label Mar 16, 2021
@glbrntt glbrntt requested a review from Lukasa March 16, 2021 14:20
@@ -19,8 +19,8 @@ services:
- MAX_ALLOCS_ALLOWED_1k_requests_interleaved=53000
- MAX_ALLOCS_ALLOWED_1k_requests_noninterleaved=52000
- MAX_ALLOCS_ALLOWED_client_server_h1_request_response=336000
- MAX_ALLOCS_ALLOWED_client_server_request_response=300000
- MAX_ALLOCS_ALLOWED_create_client_stream_channel=55000
- MAX_ALLOCS_ALLOWED_client_server_request_response=310000
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The regression here is the 'pending streams' dictionary in the multiplexer resizing (it isn't used for the frame-based stream channels).

Motivation:

Some of the allocation counting tests used frame-based stream channels
rather than the frame payload based ones. These were deprecated some
time ago.

Modifications:

- Update test handlers to be `HTTP2Frame.FramePayload` based
- Update the 'create_client_stream_channel' test to count streams rather
  than summing their stream ID (as stream IDs aren't assigned until the
  stream channel delivers pending writes for the first time).
- Update allocation limits

Result:

Allocation counting tests don't use deprecated APIs.
@glbrntt glbrntt force-pushed the gb-fixup-warnings branch from 935757e to 9e81939 Compare March 16, 2021 14:33
@glbrntt glbrntt merged commit e3e9024 into apple:main Mar 16, 2021
@glbrntt glbrntt deleted the gb-fixup-warnings branch March 16, 2021 14:45
Copy link

@devhot1984 devhot1984 left a comment

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants