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

test: remove superfluous test dependencies #11912

Merged
merged 3 commits into from
Jul 8, 2020

Conversation

foreseeable
Copy link
Contributor

Signed-off-by: Muge Chen mugechen@google.com

Commit Message: remove superfluous includes
Additional Description: The monolith mock library mocks/server/mocks.h is included by several tests but never used. Remove them to speed up building phase
Risk Level: low
Testing: existing tests
Docs Changes: N/A
Release Notes: no
Related Issues: #10917

/cc @ahedberg

ahedberg
ahedberg previously approved these changes Jul 7, 2020
Copy link
Contributor

@ahedberg ahedberg left a comment

Choose a reason for hiding this comment

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

Thanks! Did we run comparisons of compile time before/after this change?

@alyssawilk
Copy link
Contributor

Nice clean up! Looks like this may have removed it from a test that needed it though - mind checking out CI?

Signed-off-by: Muge Chen <mugechen@google.com>
@foreseeable
Copy link
Contributor Author

Thanks! Did we run comparisons of compile time before/after this change?

@ahedberg yes, we can talk about this at the standup

@jmarantz
Copy link
Contributor

jmarantz commented Jul 7, 2020

Would be curious to see the build-time comparison once everything is working.

Did you use a tool to discover which dependencies were superfluous?

Signed-off-by: Muge Chen <mugechen@google.com>
@foreseeable
Copy link
Contributor Author

Would be curious to see the build-time comparison once everything is working.

Did you use a tool to discover which dependencies were superfluous?

I will post the comparison to the issue page referred by this pr.

Currently the superfluous dependencies are detected by simple keyword matching. i.e. find whether there're keyword 'Server::Mock***' appeared in the code file which includes 'test/server/mocks.h'. I wrote some scripts to refactor the code base and will upload it later.

Signed-off-by: Muge Chen <mugechen@google.com>
@alyssawilk alyssawilk merged commit 5e9fb8a into envoyproxy:master Jul 8, 2020
@alyssawilk
Copy link
Contributor

+1 would love to see numbers iff you have them handy, but this looks like an improvement either way :-)

jwendell pushed a commit to istio/envoy that referenced this pull request Jul 21, 2020
* Revert "test: shard http2_integration_test (envoyproxy#11939)"

This reverts commit 2026ec2.

* Revert "fuzz: added fuzz test for listener filter original_dst (envoyproxy#11847)"

This reverts commit 673cab8.

* Revert "docs: updating release instructions (envoyproxy#11938)"

This reverts commit 09b96a5.

* Revert "test: remove superfluous test dependencies (envoyproxy#11912)"

This reverts commit 5e9fb8a.

* Revert "dynamic_forward_proxy: cleanup integration test (envoyproxy#11891)"

This reverts commit 11a4667.

* Revert "preliminary PR to Porting Envoy to C++17 (envoyproxy#11840)"

This reverts commit 9ad964d.

* Revert "connection: Do not reset delayed closed timer if doWrite consumes 0 bytes from the output buffer. (envoyproxy#11833)"

This reverts commit 5960533.

* Revert "threadlocal: avoiding a dynamic cast in opt builds (envoyproxy#11900)"

This reverts commit 363b104.

* Revert "release: kicking off 1.16.0 (envoyproxy#11930)"

This reverts commit ef74d8f.

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
jwendell pushed a commit to jwendell/envoy that referenced this pull request Jul 24, 2020
Commit Message: remove superfluous includes
Additional Description: The monolith mock library mocks/server/mocks.h is included by several tests but never used. Remove them to speed up building phase
Risk Level: low
Testing: existing tests
Docs Changes: N/A
Release Notes: no
Related Issues: envoyproxy#10917

Signed-off-by: Muge Chen <mugechen@google.com>
scheler pushed a commit to scheler/envoy that referenced this pull request Aug 4, 2020
Commit Message: remove superfluous includes
Additional Description: The monolith mock library mocks/server/mocks.h is included by several tests but never used. Remove them to speed up building phase
Risk Level: low
Testing: existing tests
Docs Changes: N/A
Release Notes: no
Related Issues: envoyproxy#10917

Signed-off-by: Muge Chen <mugechen@google.com>
Signed-off-by: scheler <santosh.cheler@appdynamics.com>
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