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

chore(bindings): feature gate network tests #4907

Merged
merged 4 commits into from
Nov 22, 2024

Conversation

jmayclin
Copy link
Contributor

@jmayclin jmayclin commented Nov 19, 2024

Description of changes:

Currently network tests are being run more than they should be, because many of our CI jobs use cargo test --all-features. This is a problem because it

  1. increases flakiness
  2. the "plain" jobs don't have the right environment variables to enable logging.

This PR adjusts the feature flag so that the network tests aren't accidentally enabled with those invocations.

This PR also updated the expected results to account for variance that we have been seeing in CI.

Testing:

The network tests can be seen in the intended CI logs (and not in the other logs)

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 Nov 19, 2024
@jmayclin jmayclin requested review from dougch and goatgoose November 19, 2024 19:53
@jmayclin jmayclin marked this pull request as ready for review November 19, 2024 19:54
.github/workflows/ci_rust.yml Show resolved Hide resolved
@dougch dougch self-requested a review November 22, 2024 16:04
TestCase::new("https://www.facebook.com", &[302]),
// 2024-11-21: Microsoft had been consistently returning a 302. It then started
// returning 403 codes in CI, but was returning 200 codes when run locally.
TestCase::new("https://www.microsoft.com", &[200, 302, 403]),
Copy link
Contributor

Choose a reason for hiding this comment

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

oof, but that is the behavior...

@jmayclin jmayclin merged commit 7caf7f1 into aws:main Nov 22, 2024
38 checks passed
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