Skip to content

test: use @bazel_tools//tools/cpp/runfiles to find runfiles#8488

Merged
lizan merged 12 commits intoenvoyproxy:masterfrom
lizan:test_external
Oct 7, 2019
Merged

test: use @bazel_tools//tools/cpp/runfiles to find runfiles#8488
lizan merged 12 commits intoenvoyproxy:masterfrom
lizan:test_external

Conversation

@lizan
Copy link
Copy Markdown
Member

@lizan lizan commented Oct 4, 2019

Description:
Proper fix for bazelbuild/bazel#7399 from Envoy side, tests should be aware which workspace its testdata is from. Added parameter to TestEnvironment::runfiles{Path,Directory} to specify workspace. Using this ability in compile_time_options CI.

By using @bazel_tools//tools/cpp/runfiles, it also allows test binaries to be invoked outside bazel directly, e.g. bazel-bin/test/exe/main_common_test, so the GDB wrapper is no longer needed.

Risk Level: Low (test only)
Testing: 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>
lizan added 3 commits October 4, 2019 09:08
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
@lizan lizan marked this pull request as ready for review October 4, 2019 20:10
@lizan lizan requested a review from zuercher as a code owner October 4, 2019 20:10
@lizan lizan requested a review from htuch October 4, 2019 20:10
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Copy link
Copy Markdown
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.

This is overall a really great cleanup and simplification. Nice! Tagging @yanavlasov who is on Google import duty next week, this is likely to require some mangling to make work seamlessly with our internal tree and build system.

lizan added 4 commits October 4, 2019 23:15
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
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
Copy Markdown
Member Author

lizan commented Oct 5, 2019

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@lizan
Copy link
Copy Markdown
Member Author

lizan commented Oct 5, 2019

@htuch now the tests are all passed except those requiring envoyproxy/envoy-filter-example#101.

htuch
htuch previously approved these changes Oct 6, 2019
Copy link
Copy Markdown
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.

Nice!

@htuch
Copy link
Copy Markdown
Member

htuch commented Oct 7, 2019

@lizan merge the envoy-filter-example PR.

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
@lizan lizan merged commit b8212b5 into envoyproxy:master Oct 7, 2019
nandu-vinodan pushed a commit to nandu-vinodan/envoy that referenced this pull request Oct 17, 2019
…xy#8488)

Description:
Proper fix for bazelbuild/bazel#7399 from Envoy side, tests should be aware which workspace its testdata is from. Added parameter to TestEnvironment::runfiles{Path,Directory} to specify `workspace`. Using this ability in compile_time_options CI.

By using `@bazel_tools//tools/cpp/runfiles`, it also allows test binaries to be invoked outside bazel directly, e.g. `bazel-bin/test/exe/main_common_test`, so the GDB wrapper is no longer needed.

Risk Level: Low (test only)
Testing: CI
Docs Changes: N/A
Release Notes: N/A

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.

2 participants