Automated rollback of commit 08370f31ad

PiperOrigin-RevId: 257516611
This commit is contained in:
Mihai Maruseac 2019-07-10 17:29:08 -07:00 committed by TensorFlower Gardener
parent daac7c7101
commit 28310aed63
3 changed files with 3 additions and 12 deletions
tensorflow/tools

View File

@ -449,8 +449,6 @@ do_bazel_nobuild() {
BUILD_TARGET="${BUILD_TARGET} -//tensorflow/lite/delegates/gpu/..."
BUILD_TARGET="${BUILD_TARGET} -//tensorflow/lite/java/demo/app/..."
BUILD_TARGET="${BUILD_TARGET} -//tensorflow/lite/schema/..."
BAZEL_FLAGS="${BAZEL_FLAGS} --incompatible_package_name_is_a_function=false"
BAZEL_FLAGS="${BAZEL_FLAGS} --incompatible_remove_native_http_archive=false"
BUILD_CMD="bazel build --nobuild ${BAZEL_FLAGS} -- ${BUILD_TARGET}"
${BUILD_CMD}

View File

@ -47,8 +47,6 @@ def main():
try:
targets = subprocess.check_output([
'bazel', 'query',
"--incompatible_package_name_is_a_function=false",
"--incompatible_remove_native_http_archive=false",
'kind(py_test, //tensorflow/contrib/... + '
'//tensorflow/python/... - '
'//tensorflow/contrib/tensorboard/...)']).strip()

View File

@ -30,10 +30,6 @@ os.chdir(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../..")))
PIP_PACKAGE_QUERY_EXPRESSION = (
"deps(//tensorflow/tools/pip_package:build_pip_package)")
RELEASE_PATCH_FLAGS = (
" --incompatible_package_name_is_a_function=false"
" --incompatible_remove_native_http_archive=false")
# List of file paths containing BUILD files that should not be included for the
# pip smoke test.
BUILD_BLACKLIST = [
@ -144,7 +140,7 @@ def main():
# pip_package_dependencies_list is the list of included files in pip packages
pip_package_dependencies = subprocess.check_output(
["bazel", "cquery", RELEASE_PATCH_FLAGS, PIP_PACKAGE_QUERY_EXPRESSION])
["bazel", "cquery", PIP_PACKAGE_QUERY_EXPRESSION])
if isinstance(pip_package_dependencies, bytes):
pip_package_dependencies = pip_package_dependencies.decode("utf-8")
pip_package_dependencies_list = pip_package_dependencies.strip().split("\n")
@ -156,7 +152,7 @@ def main():
# tf_py_test_dependencies is the list of dependencies for all python
# tests in tensorflow
tf_py_test_dependencies = subprocess.check_output(
["bazel", "cquery", RELEASE_PATCH_FLAGS, PY_TEST_QUERY_EXPRESSION])
["bazel", "cquery", PY_TEST_QUERY_EXPRESSION])
if isinstance(tf_py_test_dependencies, bytes):
tf_py_test_dependencies = tf_py_test_dependencies.decode("utf-8")
tf_py_test_dependencies_list = tf_py_test_dependencies.strip().split("\n")
@ -197,8 +193,7 @@ def main():
print("Affected Tests:")
rdep_query = ("rdeps(kind(py_test, %s), %s)" %
(" + ".join(PYTHON_TARGETS), missing_dependency))
affected_tests = subprocess.check_output(
["bazel", "cquery", RELEASE_PATCH_FLAGS, rdep_query])
affected_tests = subprocess.check_output(["bazel", "cquery", rdep_query])
affected_tests_list = affected_tests.split("\n")[:-2]
print("\n".join(affected_tests_list))