Skip to content

Update allocation thresholds#534

Merged
aryan-25 merged 2 commits intoapple:mainfrom
aryan-25:update-allocation-threshold
Feb 9, 2026
Merged

Update allocation thresholds#534
aryan-25 merged 2 commits intoapple:mainfrom
aryan-25:update-allocation-threshold

Conversation

@aryan-25
Copy link
Contributor

@aryan-25 aryan-25 commented Feb 9, 2026

Motivation:

The nightly CI checks for Integration Tests started failing since run https://github.com/apple/swift-nio-http2/actions/runs/19310336168/job/55228659542 (on 12 November 2025) due to multiple allocation benchmark tests exceeding their allocation thresholds.

The date these failures started coincides with release 2.89.0 of swift-nio. In particular, all failing allocation benchmarks use EmbeddedChannel, and EmbeddedChannel was changed in a PR contained in that release that introduced some changes leading to greater allocations.

Another change to EmbeddedChannel in swift-nio's latest release (2.94.0) has also increased the number of allocations in benchmarks using EmbeddedChannel.

As such, we should update the allocation thresholds for affected tests accordingly.

Modifications:

Updated the allocation threshold for all affected tests across all versions.

Result:

Integration tests should no longer fail.

Motivation:

The nightly CI checks for Integration Tests started failing since run https://github.com/apple/swift-nio-http2/actions/runs/19310336168/job/55228659542 (on 12 November 2025).

The reason for the failures is due to the `test_client_server_h1_request_response` requiring 282,000 allocations, exceeding the threshold boundary which is currently set to 280,050 across all versions.

The date the allocations started to exceed the boundary coincides with [release 2.89.0 of swift-nio](https://github.com/apple/swift-nio/releases/tag/2.89.0). In particular, that test uses `EmbeddedChannel`, and `EmbeddedChannel` was changed in [a PR contained in that release](apple/swift-nio#3442), that introduced some changes leading to greater allocations.

[Another change to `EmbeddedChannel`](apple/swift-nio#3495) in `swift-nio`'s latest release ([2.94.0](https://github.com/apple/swift-nio/releases)) has increased the number of allocations of the `client_server_h1_request_response` test to 284,000.

We should update the allocation thresholds for that test accordingly.

Modifications:

Updated the allocation threshold for `client_server_h1_request_response` to 284,000 across all versions.

Result:

Integration tests should no longer fail.
@aryan-25 aryan-25 added the semver/none No version bump required. label Feb 9, 2026
@aryan-25 aryan-25 changed the title Update IntegrationTests allocation threshold Update allocation thresholds Feb 9, 2026
@aryan-25 aryan-25 merged commit c1bb956 into apple:main Feb 9, 2026
49 of 50 checks passed
@aryan-25 aryan-25 deleted the update-allocation-threshold branch February 9, 2026 12:42
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.

2 participants