Some extra developer conveniences for Docker image.#437
Merged
mattklein123 merged 6 commits intoenvoyproxy:masterfrom Feb 8, 2017
Merged
Some extra developer conveniences for Docker image.#437mattklein123 merged 6 commits intoenvoyproxy:masterfrom
mattklein123 merged 6 commits intoenvoyproxy:masterfrom
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor do_ci.sh to split the cmake and environment setup from the
build and test. This makes it convenient for devs to invoke arbitrary
make targets in the Docker image, e.g.
docker run -t -i -v $PWD:/source lyft/envoy-build:latest /bin/bash -c
"cd /source && . ./ci/build_setup.sh && make fix_format"
Add EXTRA_TEST_ARGS env var to pass addition flags to envoy-test. This
is useful, for example, when applying a --gtest_filter to restrict the
test run to only failing tests.
Add a do_ci.sh fix_format target.
Add gdb, strace to the image and a RUN_TEST_UNDER environment variable
that can be used to have envoy-test run under these programs.
UNIT_TEST_ONLY env var that will skip the non-envoy-test aspects of
the test process.
Example command for debugging only tests matching Dns:
docker run -t -i -v $PWD:/source lyft/envoy-build:latest /bin/bash -c
"cd /source && UNIT_TEST_ONLY=1 RUN_TEST_UNDER='gdb --args' ./ci/do_ci.sh debug
--gtest_filter='Dns'