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

build: use clang-10 #11222

Merged
merged 25 commits into from
Jun 18, 2020
Merged

build: use clang-10 #11222

merged 25 commits into from
Jun 18, 2020

Conversation

lizan
Copy link
Member

@lizan lizan commented May 15, 2020

Risk Level: Med
Testing: CI
Docs Changes: Changed clang references
Release Notes: Added

Signed-off-by: Lizan Zhou lizan@tetrate.io

lizan added 2 commits May 15, 2020 21:38
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
@lizan lizan requested a review from htuch May 15, 2020 21:39
@lizan lizan requested a review from dio as a code owner May 15, 2020 21:39
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Looks good modulo figuring out the libtooling BUILD file.
/wait

@stale
Copy link

stale bot commented May 25, 2020

This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@stale stale bot added the stale stalebot believes this issue/PR has not been touched recently label May 25, 2020
@stale
Copy link

stale bot commented Jun 2, 2020

This pull request has been automatically closed because it has not had activity in the last 14 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@stale stale bot closed this Jun 2, 2020
@lizan lizan reopened this Jun 3, 2020
@stale stale bot removed the stale stalebot believes this issue/PR has not been touched recently label Jun 3, 2020
lizan added 4 commits June 3, 2020 13:53
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
@lizan
Copy link
Member Author

lizan commented Jun 4, 2020

@htuch should be ready to go

@wrowe
Copy link
Contributor

wrowe commented Jun 4, 2020

@lizan please note, we have several source fixes on #11107 for formatting / tidy based on clang-format-10 that you may wish to pick up (either by merging to master, merging this patch from master, or cherry-pick them from that patch branch

htuch
htuch previously approved these changes Jun 4, 2020
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

LGTM, rad!

@mattklein123
Copy link
Member

Can you check CI?

/wait

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
@wrowe
Copy link
Contributor

wrowe commented Jun 5, 2020

See changes to source/ and test/ (ignore the others) from this specific patch revert, I suspect you want a number of these changes on this PR, Sunjay has pulled them from the RBE work... d34894a

const char* cdata = reinterpret_cast<const char*>(stat_name.data());
absl::string_view data_as_string_view = absl::string_view(cdata, stat_name.dataSize());
return H::combine(std::move(h), data_as_string_view);
return H::combine(std::move(h), stat_name.dataAsStringView());
Copy link
Member Author

Choose a reason for hiding this comment

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

cc @jmarantz PTAL at this file

@@ -49,7 +49,7 @@ if [[ "$VALIDATE_COVERAGE" == "true" ]]; then
if [[ "${FUZZ_COVERAGE}" == "true" ]]; then
COVERAGE_THRESHOLD=27.0
else
COVERAGE_THRESHOLD=97.0
COVERAGE_THRESHOLD=96.6
Copy link
Member Author

Choose a reason for hiding this comment

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

re: coverage threshold, it is because LLVM 10.0 generate trace differently for default: and empty lines, e.g.:

image

https://storage.googleapis.com/envoy-pr/11222/coverage/source/common/tracing/http_tracer_impl.cc.gcov.html

Copy link
Member

Choose a reason for hiding this comment

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

If it's purely an artifact of measurement, I'm OK with adjusting the limit, but it would be good to get this heading North.

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah now it's easier for us to actually exclude lines in coverage with some post processing, as lcov format is much easier to work with, but it's beyond the scope of this PR

@lizan
Copy link
Member Author

lizan commented Jun 11, 2020

@htuch finally all CI passed, PTAL

Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

LGTM modulo nghttp2 patch thread.

bazel/foreign_cc/nghttp2.patch Show resolved Hide resolved
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
This reverts commit 74bcb11.

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
htuch
htuch previously approved these changes Jun 15, 2020
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@wrowe
Copy link
Contributor

wrowe commented Jun 17, 2020

Reviewing status this morning of the "cancelled" coverage run, this PR is passing all tests;

sent 62,518,874 bytes received 92,045 bytes 41,740,612.67 bytes/sec
total size is 62,133,086 speedup is 0.99
Code coverage 96.6 is good and higher than limit of 96.5

Our work on the Windows CI in 11107 and work to evaluate LLVM clang-cl 10 as an alternative Windows compiler are all gated on this PR, if it could be merged promptly.

@lizan
Copy link
Member Author

lizan commented Jun 17, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s), but failed to run 2 pipeline(s).

@lizan
Copy link
Member Author

lizan commented Jun 17, 2020

@wrowe I should be able to merge once CI pass

@lizan lizan merged commit 8d7cd0c into envoyproxy:master Jun 18, 2020
@lizan lizan deleted the clang-10-build branch June 18, 2020 06:55
yashwant121 pushed a commit to yashwant121/envoy that referenced this pull request Jun 24, 2020
Risk Level: Med
Testing: CI
Docs Changes: Changed clang references
Release Notes: Added

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: yashwant121 <yadavyashwant36@gmail.com>
songhu pushed a commit to songhu/envoy that referenced this pull request Jun 25, 2020
Risk Level: Med
Testing: CI
Docs Changes: Changed clang references
Release Notes: Added

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
yashwant121 pushed a commit to yashwant121/envoy that referenced this pull request Jul 24, 2020
Risk Level: Med
Testing: CI
Docs Changes: Changed clang references
Release Notes: Added

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: yashwant121 <yadavyashwant36@gmail.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.

6 participants