Sahil Takiar has uploaded this change for review. ( http://gerrit.cloudera.org:8080/11410
Change subject: IMPALA-6249: Expose CMAKE_BUILD_TYPE via web UI for build type detection ...................................................................... IMPALA-6249: Expose CMAKE_BUILD_TYPE via web UI for build type detection Exposes a list of build flags via the impalad web UI. The build flags are can be veiwed on the root page under the "Version" section. They can be accessed via other tests through the debug version of the root page (e.g. adding &json to the URL). The build flags are listed in a JSON array so that they can be parsed easily. This should help run Impala tests against a remotely compiled Impala repo. The build flags are read in CMakeLists.txt and then stored in preprocessor variables. Three build flags are exposed as part of this commit: - Build_Type = [DEBUG, RELEASE] - CMake_Build_Type = [DEBUG, RELEASE, RELWITHDEBINFO, MINSIZEREL] - Library_Link_Type = [DYNAMIC, STATIC] Testing: Added new tests to webserver/test_web_pages.py to ensure that the build flags are being set. However, the tests do not validate that the value of the flags are actually correct. The tests under the tests/webserver directory were not being run because 'webserver' was not whitelisted in tests/run-tests.py. This patch fixes that and addresses several test failures in run-tests.py. Change-Id: I47e3ad4cbf844909bdaf22a6f9d7bd915dce3f19 --- M CMakeLists.txt M be/src/util/debug-util.cc M be/src/util/debug-util.h M be/src/util/default-path-handlers.cc M tests/run-tests.py M tests/webserver/test_web_pages.py M www/root.tmpl 7 files changed, 99 insertions(+), 17 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/10/11410/1 -- To view, visit http://gerrit.cloudera.org:8080/11410 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I47e3ad4cbf844909bdaf22a6f9d7bd915dce3f19 Gerrit-Change-Number: 11410 Gerrit-PatchSet: 1 Gerrit-Owner: Sahil Takiar <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Lars Volker <[email protected]> Gerrit-Reviewer: Sahil Takiar <[email protected]>
