Script for ensuring correct Envoy include paths#122
Script for ensuring correct Envoy include paths#122htuch merged 14 commits intoenvoyproxy:masterfrom
Conversation
Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
|
While the ci script seems to do what it is supposed to do in CI, referencing envoy includes via |
|
@oschaaf how do the existing Do we need to fork or do some surgery on |
|
So and then I propose adding a flag to |
|
@htuch maybe something along the lines of https://github.com/envoyproxy/envoy/compare/master...oschaaf:include-prefixes?expand=1 ? |
|
After chatting, we have found a way forward with this with a different modification to [1] def envoy_cc_library(
.... # we add a parallel native.cc_library
native.cc_library(
name = name + "_with_external_headers",
hdrs = hdrs,
copts = envoy_copts(repository) + copts,
visibility = visibility,
deps = [":" + name],
strip_include_prefix = strip_include_prefix,/assign htuch |
htuch
left a comment
There was a problem hiding this comment.
Thanks, this is exactly what we were after I reckon.
| from pathlib import Path | ||
|
|
||
| def get_inspection_targets_from_dir(dir): | ||
| result = [] |
There was a problem hiding this comment.
Does this match the style in https://github.com/envoyproxy/nighthawk/blob/master/test/integration/integration_test.py? Ideally same style, check/fix_format applies.
There was a problem hiding this comment.
I ran it through fix fomat to resolve, ptal?
Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
|
For context, linking the PR to Envoy which would allows us to disambiguate the headers: |
Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
|
Ready for another look If we're happy with the way this looks, I propose adding the actual include changes here to make the new CI format check happy? |
Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
htuch
left a comment
There was a problem hiding this comment.
Looks good, thanks. Just a few comments.
/wait
- Has all include changes modulo platform specific ones that need to be treated separately [1]. It's worth noting that format check fails to flag these as it can't find these files either, and as such will refrain from flagging the include as an error. - Includes header formatting changes in an attempt to address review feedback [1] filesystem_impl.h & thread_impl.h Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
Signed-off-by: Otto van der Schaaf <oschaaf@we-amp.com>
|
Status:
/assign htuch |
Let's see if the format check in CI flags the current state as a failure with this.
Signed-off-by: Otto van der Schaaf oschaaf@we-amp.com