diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0d7f4ada7e..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,112 +0,0 @@ -dist: xenial -language: python -python: - - "3.6" - -branches: - only: - - master - - /^\d+\.\d+(\.\d+)?(-\S*)?$/ - -# Update the `nvm use` stanza below when updating this. -node_js: - - "11" - -env: - matrix: - - TF_VERSION_ID=tf-nightly - - TF_VERSION_ID= # Do not install TensorFlow in this case - -cache: - # Don't cache the Pip directory. We pull in a new `tf-nightly` wheel - # every day, and Pip caches are never evicted, so this quickly bloats - # to many gigabytes and adds minutes to the CI time. - pip: false - # Cache directories for Bazel. See ci/bazelrc_travis for details. - directories: - - $HOME/.cache/tb-bazel-repo - - $HOME/.cache/tb-bazel-disk - -# Each bullet point is displayed in the Travis log as one collapsed line, which -# indicates how long it took. Travis will check the return code at the end. We -# can't use `set -e` in the YAML file since it might impact Travis internals. -# If inline scripts get too long, Travis surprisingly prints them twice. - -before_install: - - elapsed() { TZ=UTC printf "Time %(%T)T %s\n" "$SECONDS" "$1"; } - - elapsed "before_install" - # Keep this Bazel version in sync with the `versions.check` directive - # near the top of our WORKSPACE file. - # - # Grab the BAZEL_SHA256SUM from the Bazel releases page; e.g.: - # bazel-0.20.0-linux-x86_64.sha256 - - export BAZEL=3.7.0 - - export BAZEL_SHA256SUM=b7583eec83cc38302997098a40b8c870c37e0ab971a83cb3364c754a178b74ec - - ci/download_bazel.sh "${BAZEL}" "${BAZEL_SHA256SUM}" ~/bazel - - sudo mv ~/bazel /usr/local/bin/bazel - - cp ci/bazelrc_travis ~/.bazelrc - - elapsed "before_install (done)" - -install: - - elapsed "install" - - "PY3=\"$(python -c 'if __import__(\"sys\").version_info[0] > 2: print(1)')\"" - # Older versions of Pip sometimes resolve specifiers like `tf-nightly` - # to versions other than the most recent(!). - - pip install -U pip - # Uninstall older Travis numpy to avoid upgrade-in-place issues. - - pip uninstall -y numpy - - | - pip install \ - -r tensorboard/pip_package/requirements.txt \ - -r tensorboard/pip_package/requirements_dev.txt \ - ; - # Keep the node version in sync with node_js key above. - - nvm use v11 - - | - # Install TensorFlow if requested - if [ -n "${TF_VERSION_ID}" ]; then - pip install -I "${TF_VERSION_ID}" - fi - # Workaround for https://github.com/travis-ci/travis-ci/issues/7940 - - sudo rm -f /etc/boto.cfg - - pip freeze # print installed distributions, for debugging purposes - - elapsed "install (done)" - -before_script: - # Note: Lint checks happen on GitHub Actions; see .github/workflows/ci.yml. - - elapsed "before_script" - - | - # Specify subset of tests to run depending on TF installation config. - # We condition the value of --test_tag_filters so that we can run the - # bazel test command unconditionally which produces nicer log output. - if [ -z "${TF_VERSION_ID}" ]; then - test_tag_filters=support_notf - else - test_tag_filters= - fi - - elapsed "before_script (done)" - -# Commands in this section should only fail if it's our fault. Travis will -# categorize them as 'failed', rather than 'error' for other sections. -script: - - elapsed "script" - # Note: bazel test implies fetch+build, but this gives us timing. - - elapsed && bazel fetch //tensorboard/... - - elapsed && bazel build //tensorboard/plugins/... - - elapsed && bazel build //tensorboard/components/... - - elapsed && bazel build //tensorboard/webapp/... - - elapsed && bazel build //tensorboard/... - - elapsed && bazel test //tensorboard/... --test_tag_filters="${test_tag_filters}" - - elapsed && bazel run //tensorboard/pip_package:test_pip_package -- --tf-version "${TF_VERSION_ID}" - # # Run manual S3 test - - elapsed && bazel test //tensorboard/compat/tensorflow_stub:gfile_s3_test - - elapsed && bazel test //tensorboard/summary/writer:event_file_writer_s3_test - - elapsed "script (done)" - -after_script: - # Bazel launches daemons unless --batch is used. - - elapsed "after_script" - - bazel shutdown - -notifications: - email: false diff --git a/README.md b/README.md index 1ee7b130bc..1e5c8fe4b6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# TensorBoard [![Travis build status](https://travis-ci.org/tensorflow/tensorboard.svg?branch=master)](https://travis-ci.org/tensorflow/tensorboard/) [![GitHub Actions CI](https://github.com/tensorflow/tensorboard/workflows/CI/badge.svg)](https://github.com/tensorflow/tensorboard/actions?query=workflow%3ACI+branch%3Amaster+event%3Apush) [![Compat check PyPI](https://python-compatibility-tools.appspot.com/one_badge_image?package=tensorboard)](https://python-compatibility-tools.appspot.com/one_badge_target?package=tensorboard) +# TensorBoard [![GitHub Actions CI](https://github.com/tensorflow/tensorboard/workflows/CI/badge.svg)](https://github.com/tensorflow/tensorboard/actions?query=workflow%3ACI+branch%3Amaster+event%3Apush) [![Compat check PyPI](https://python-compatibility-tools.appspot.com/one_badge_image?package=tensorboard)](https://python-compatibility-tools.appspot.com/one_badge_target?package=tensorboard) TensorBoard is a suite of web applications for inspecting and understanding your TensorFlow runs and graphs. diff --git a/WORKSPACE b/WORKSPACE index 74be2e59fa..1faa2ae86e 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -88,7 +88,7 @@ tf_workspace() load("@bazel_skylib//lib:versions.bzl", "versions") # Keep this version in sync with the BAZEL environment variable defined -# in our .travis.yml and .github/workflows/ci.yml configs. +# in our .github/workflows/ci.yml config. versions.check(minimum_bazel_version = "3.7.0") load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies") diff --git a/ci/bazelrc_travis b/ci/bazelrc_travis deleted file mode 100644 index 2ba9cb1389..0000000000 --- a/ci/bazelrc_travis +++ /dev/null @@ -1,35 +0,0 @@ -# Limit resources since Travis Trusty GCE VMs have 2 cores and 7.5 GB RAM. -build --local_cpu_resources=2 -build --local_ram_resources=4000 -build --worker_max_instances=2 - -# Ensure sandboxing is on to increase hermeticity. -build --spawn_strategy=sandboxed -build --worker_sandboxing - -# Ensure the PATH env var from our virtualenv propagates into tests, which is -# no longer on by default in Bazel 0.21.0 and possibly again in the future. -# We set this flag for "build" since "test" inherits it, but if we don't set -# it for build too, this causes a rebuild at test time, and if we set it for -# both we hit https://github.com/bazelbuild/bazel/issues/8237. -# -# See also: -# https://github.com/bazelbuild/bazel/issues/7095 (protobuf PATH sensitivity) -# https://github.com/bazelbuild/bazel/issues/7026 (future of action_env) -build --action_env=PATH - -# Set up caching on local disk so incremental builds are faster. -# See https://bazel.build/designs/2016/09/30/repository-cache.html -build --repository_cache=~/.cache/tb-bazel-repo -fetch --repository_cache=~/.cache/tb-bazel-repo -query --repository_cache=~/.cache/tb-bazel-repo -# See https://docs.bazel.build/versions/master/remote-caching.html#disk-cache -build --disk_cache=~/.cache/tb-bazel-disk - -# Log more information to help with debugging, and disable curses output which -# just adds more clutter to the log. (Travis spoofs an interactive terminal.) -common --curses=no -build --verbose_failures -build --worker_verbose -test --test_output=errors -test --test_verbose_timeout_warnings diff --git a/tensorboard/tools/mirror_urls_test.sh b/tensorboard/tools/mirror_urls_test.sh index 834583f189..b3df2cb55e 100755 --- a/tensorboard/tools/mirror_urls_test.sh +++ b/tensorboard/tools/mirror_urls_test.sh @@ -44,7 +44,7 @@ check_urls_resolve() { exclude_buildozer=':!ci/download_buildozer.sh' # likewise # We use `git-grep` to efficiently get an initial result set, then # filter it down with GNU `grep` separately, because `git-grep` only - # learned `-o` in Git v2.19; Travis uses v2.15.1. + # learned `-o` in Git v2.19. unresolved_urls_file="${tmpdir}/unresolved_urls" git grep -Ph "${url_pcre}" "${exclude_bazel}" "${exclude_buildifier}" \ "${exclude_buildozer}" \