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

api(bindings/s2n-tls)!: remove public testing feature #4623

Merged
merged 5 commits into from
Jun 30, 2024

Conversation

jmayclin
Copy link
Contributor

@jmayclin jmayclin commented Jun 24, 2024

Motivation:

As part of my ongoing testing refactor, I was cleaning up our testing harnesses and am now 1 PR away from deleting the old one.

However, I realized that this is technically a breaking change because we were publicly exporting all of our test utilities if the testing feature was enabled ☹️. I'm guessing that we did this when the integration/benches/handshake.rs was added so that we could use the Pair struct to easily do the handshake.

I do not think that we actually need to treat this as a breaking change, as no one should be enabling the testing feature. However I wanted to break this out as a separate PR to make sure that it was properly reviewed.

Description of changes:

  • make testing module private
  • remove testing feature
    • requires deleting the one public consumer of the testing feature, the handshake bench in integration
  • cleanup references to the testing feature

Callouts

Removing the testing feature, in addition to my earlier refactor (#4613) means that clippy now identifies some unused items. Those have been removed.

Testing:

Everything should continue to build, all existing CI should pass.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Jun 24, 2024
@jmayclin jmayclin changed the title test(bindings/s2n-tls)!: remove testing feature test(bindings/s2n-tls)!: remove public testing feature Jun 24, 2024
@jmayclin jmayclin requested review from camshaft and lrstewart June 24, 2024 18:39
@jmayclin jmayclin marked this pull request as ready for review June 24, 2024 18:40
@jmayclin jmayclin changed the title test(bindings/s2n-tls)!: remove public testing feature api(bindings/s2n-tls)!: remove public testing feature Jun 24, 2024
jmayclin added 2 commits June 24, 2024 19:08
- silence clippy warnings about unused types
- correct references to unused Server mode
- fully remove unused items
@jmayclin jmayclin requested a review from lrstewart June 28, 2024 18:25
@jmayclin jmayclin enabled auto-merge (squash) June 30, 2024 19:31
@jmayclin jmayclin merged commit 03f9301 into aws:main Jun 30, 2024
34 checks passed
@jmayclin jmayclin deleted the remove-testing-feature branch July 1, 2024 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants