Skip to content

build: don't depend on test_pch unless using pch#18466

Merged
mattklein123 merged 6 commits intomainfrom
pch_fix
Oct 7, 2021
Merged

build: don't depend on test_pch unless using pch#18466
mattklein123 merged 6 commits intomainfrom
pch_fix

Conversation

@mattklein123
Copy link
Copy Markdown
Member

Risk Level: Low
Testing: Existing tests
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123
Copy link
Copy Markdown
Member Author

cc @keith

keith
keith previously approved these changes Oct 6, 2021
Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
repository + "//test:main",
repository + "//test/test_common:test_version_linkstamp",
],
] + select({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Needs to be a list

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sorry what do you mean? You need brackets around the select? Or inside the select?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

(I think we have brackets inside the select?)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ah ok yea sorry that works too, i've seen it the other way in this repo so i just assumed

Copy link
Copy Markdown
Member

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

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

What's the behavior of always depending on test_pch even in non-pch builds?

Fix seems sane to me, modulo @keith 's comment.

"//source/extensions/common/dynamic_forward_proxy:dns_cache_manager_impl",
"//test/mocks/network:network_mocks",
"//test/mocks/runtime:runtime_mocks",
"//test/mocks/server:factory_context_mocks",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Did you intend for these two BUILD file changes to be in this PR?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, it's required because we no longer basically build the world for each test. I think there is an issue with how much test_pch brings in that we need to also fix.

@keith
Copy link
Copy Markdown
Member

keith commented Oct 6, 2021

You over built the first time for targets with no dependencies

keith
keith previously approved these changes Oct 6, 2021
repository + "//test:main",
repository + "//test/test_common:test_version_linkstamp",
],
] + select({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ah ok yea sorry that works too, i've seen it the other way in this repo so i just assumed

ggreenway
ggreenway previously approved these changes Oct 6, 2021
Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123 mattklein123 dismissed stale reviews from ggreenway and keith via 137c880 October 6, 2021 19:57
@mattklein123
Copy link
Copy Markdown
Member Author

I had to drop coverage since somehow this change effects the comment accounting. :( cc @lizan @alyssawilk

@mattklein123 mattklein123 merged commit 459360f into main Oct 7, 2021
@mattklein123 mattklein123 deleted the pch_fix branch October 7, 2021 00:31
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