Skip to content

build: make compilation database script RBE compatible#8389

Merged
htuch merged 3 commits intomasterfrom
tidy_rbe
Sep 27, 2019
Merged

build: make compilation database script RBE compatible#8389
htuch merged 3 commits intomasterfrom
tidy_rbe

Conversation

@lizan
Copy link
Copy Markdown
Member

@lizan lizan commented Sep 26, 2019

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

Description:
Also moves to python3. Not moving clang-tidy to AZP yet to wait AZP stabilize a bit more.

Risk Level: Low
Testing: local, CI
Docs Changes: N/A
Release Notes: N/A

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
bazel_options).decode().strip()

compdb = []
for compdb_file in Path(execroot).glob("**/*.compile_commands.json"):
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.

Can you provide a high-level explanation (just in this thread, or maybe a comment) of how the compile_commands.json sourcing changed? Seems generally cleaner, just this glob is a tiny bit scary.

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.

This method implements what is done in https://github.com/grailbio/bazel-compilation-database/blob/master/generate.sh (which I made method level comment). This glob is from find here: https://github.com/grailbio/bazel-compilation-database/blob/master/generate.sh#L55

@htuch htuch assigned htuch and unassigned junr03 Sep 26, 2019
@htuch htuch merged commit 10db4a0 into master Sep 27, 2019
@htuch htuch deleted the tidy_rbe branch September 27, 2019 15:28
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Oct 4, 2019
Also moves to python3. Not moving clang-tidy to AZP yet to wait AZP stabilize a bit more.

Risk Level: Low
Testing: local, CI

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

3 participants