Skip to content

[balsa] Parametrize IntegrationTest on HTTP/1 implementation.#24254

Merged
KBaichoo merged 6 commits intoenvoyproxy:mainfrom
bencebeky:integrationtest
Dec 16, 2022
Merged

[balsa] Parametrize IntegrationTest on HTTP/1 implementation.#24254
KBaichoo merged 6 commits intoenvoyproxy:mainfrom
bencebeky:integrationtest

Conversation

@bencebeky
Copy link
Contributor

Run IntegrationTest with BalsaParser in addition to http-parser. Disable failing tests for now.

Tracking issue: #21245

Signed-off-by: Bence Béky bnc@google.com

Commit Message: [balsa] Parametrize IntegrationTest on HTTP/1 implementation.
Additional Description: Run IntegrationTest with BalsaParser in addition to http-parser. Disable failing tests for now.
Risk Level: low, test-only change
Testing: n/a
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Run IntegrationTest with BalsaParser in addition to http-parser.
Disable failing tests for now.

Tracking issue: #21245

Signed-off-by: Bence Béky <bnc@google.com>
@repokitteh-read-only
Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #24254 was opened by bencebeky.

see: more, trace.

@bencebeky
Copy link
Contributor Author

/assign @diannahu @birenroy

diannahu
diannahu previously approved these changes Dec 2, 2022
Copy link
Contributor

@diannahu diannahu left a comment

Choose a reason for hiding this comment

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

Nice parameterization!

}

std::string testParamToString(
const ::testing::TestParamInfo<std::tuple<Network::Address::IpVersion, Http1ParserImpl>>&
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I think there's a preference here to avoid fully qualifying names with the leading "::" if possible, unless there's a using declaration or namespace alias. I like using the decision tree at internal TOTW 151 as a reference (unfortunately, there is no analogue at https://abseil.io/tips/ - the closest thing there seems to be https://abseil.io/tips/130).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I was not aware of that guidance, thank you for digging it up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On that note, also adding using directives for Combine, Values, and ValuesIn.

testing::ValuesIn(TestEnvironment::getIpVersionsForTest()),
TestUtility::ipTestParamsToString);
INSTANTIATE_TEST_SUITE_P(
IpVersions, IntegrationTest,
Copy link
Contributor

Choose a reason for hiding this comment

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

optional: s/IpVersions/IpVersionsAndHttp1ParserVersions/ or similar.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How about IpVersionsAndHttp1Parser as a compromise for brevity?

Signed-off-by: Bence Béky <bnc@google.com>
Signed-off-by: Bence Béky <bnc@google.com>
@bencebeky
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #24254 (comment) was created by @bencebeky.

see: more, trace.

@bencebeky
Copy link
Contributor Author

/assign @KBaichoo

Kevin: PTAL, thanks!

@bencebeky bencebeky marked this pull request as ready for review December 9, 2022 14:43
Copy link
Contributor

@KBaichoo KBaichoo left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution.

@KBaichoo
Copy link
Contributor

can you try merging? I think #24383 might have renamed some jobs so CI is waiting on them to occur but they won't be unless it's ran again

Signed-off-by: Bence Béky <bnc@google.com>
@bencebeky
Copy link
Contributor Author

can you try merging? I think #24383 might have renamed some jobs so CI is waiting on them to occur but they won't be unless it's ran again

Thanks for the advice.

@KBaichoo KBaichoo enabled auto-merge (squash) December 13, 2022 17:44
Signed-off-by: Bence Béky <bnc@google.com>
@phlax
Copy link
Member

phlax commented Dec 14, 2022

@bencebeky im confused that this is failing format checks - seems unrelated and merged to main

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #24254 (comment) was created by @phlax.

see: more, trace.

Signed-off-by: Bence Béky <bnc@google.com>
@phlax
Copy link
Member

phlax commented Dec 16, 2022

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #24254 (comment) was created by @phlax.

see: more, trace.

@KBaichoo KBaichoo merged commit cf96850 into envoyproxy:main Dec 16, 2022
@bencebeky bencebeky deleted the integrationtest branch December 16, 2022 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants