Skip to content

test: Break up router_test to avoid compiler OOM under ASAN#14844

Merged
mattklein123 merged 3 commits intoenvoyproxy:mainfrom
yanavlasov:router_test_split
Jan 29, 2021
Merged

test: Break up router_test to avoid compiler OOM under ASAN#14844
mattklein123 merged 3 commits intoenvoyproxy:mainfrom
yanavlasov:router_test_split

Conversation

@yanavlasov
Copy link
Contributor

Risk Level: Low
Testing: Unit Tests
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Yan Avlasov yavlasov@google.com

Signed-off-by: Yan Avlasov <yavlasov@google.com>
srcs = [
# Split to avoid compiler OOM, especially on ASAN.
"router_test.cc",
"router_2_test.cc",
Copy link
Contributor

Choose a reason for hiding this comment

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

don't we need 2 test targets to run them individually?

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 problem occurs during compilation, because the file grew too large (~6K SLOC), not running the test, which is fast. I could split it into two test targets but I'm unsure how it will affect corpus generation.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's config_impl_test that generates a corpus, not router_test.

Copy link
Contributor

Choose a reason for hiding this comment

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

in that case WDYT about making 2 test targets, Yan?

@jmarantz
Copy link
Contributor

Ah I didn't realize this was compiler-OOM.

Great, thanks.

The rest of this is just moving code around, right?

Signed-off-by: Yan Avlasov <yavlasov@google.com>
@yanavlasov
Copy link
Contributor Author

Correct, just copy/paste with some #include clean-ups

@yanavlasov
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Yan Avlasov <yavlasov@google.com>
@mattklein123 mattklein123 merged commit 5899f35 into envoyproxy:main Jan 29, 2021
@yanavlasov yanavlasov deleted the router_test_split branch February 1, 2021 19:25
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.

4 participants