Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a8d769f
Updated bazel version to 7.7.0
psamanoelton Apr 3, 2026
865671f
update on protobuf 60 tests remaining to fix
psamanoelton Apr 8, 2026
c38a446
Solving import issue
psamanoelton Apr 8, 2026
4660b76
Updating builds for import issues
psamanoelton Apr 8, 2026
3157d7e
update on build files
psamanoelton Apr 9, 2026
9791333
adding incompatible_default_to_explicit_init_py
psamanoelton Apr 9, 2026
74e926f
cleaning up
psamanoelton Apr 9, 2026
e95ba80
adding readme for safe_html_types
psamanoelton Apr 9, 2026
d31d912
update on ci to support Bazel upgrade and python 310
psamanoelton Apr 13, 2026
999853b
solving ci
psamanoelton Apr 13, 2026
37c2763
fixing ci
psamanoelton Apr 13, 2026
7e640ab
updating ci
psamanoelton Apr 13, 2026
ddb7811
adding prints for debugging ci
psamanoelton Apr 13, 2026
99abfbb
updating ci
psamanoelton Apr 14, 2026
76a439a
updating proto file for update_protos_test
psamanoelton Apr 14, 2026
71907b4
upgrading test_pip_package
psamanoelton Apr 14, 2026
0c6bae3
Fix ci stuck in tests
psamanoelton Apr 15, 2026
6a771f6
upgrading dev stack for the legacy aws packages
psamanoelton Apr 15, 2026
9e460bf
Solving issue in req_dev.txt
psamanoelton Apr 16, 2026
fbd76bc
Merge branch 'master' into protobuf
psamanoelton Apr 16, 2026
f3502f3
Updating files to match latest merge
psamanoelton Apr 16, 2026
b53795d
Merge branch 'protobuf' of https://github.com/psamanoelton/tensorboar…
psamanoelton Apr 16, 2026
5f6275d
low-risk comment/doc improvements
psamanoelton May 11, 2026
cdd1811
Clean up summary imports and restore writer stub dependency
psamanoelton May 12, 2026
6cd1fa1
cleanup
psamanoelton May 21, 2026
dc2736b
updating ci
psamanoelton May 22, 2026
f732f8c
Merge branch 'tensorflow:master' into upgrade_ci
psamanoelton May 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.bazel-user-root
.bazelisk-home
28 changes: 28 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
common --noenable_bzlmod
# Let the OS-specific sections below (`common:linux`, `common:macos`, etc.)
# take effect so one `.bazelrc` can carry the required per-platform C++ flags.
common --enable_platform_specific_config
common --experimental_repo_remote_exec # from TensorFlow
# Bazel-generated Python package init files can shadow TensorBoard's real
# compat package init at test runtime; keep this test-only so pip packaging
# still copies the intended package tree.
test --incompatible_default_to_explicit_init_py

# Use C++ backing implementations for Python proto parsing and deserialization,
# which is much faster (~10x).
build --define=use_fast_cpp_protos=true

# Protobuf 6.31.1 requires C++17 in this build. Keep the host and target
# language level aligned across supported platforms.
common:linux --cxxopt=-std=c++17
common:linux --host_cxxopt=-std=c++17
common:macos --cxxopt=-std=c++17
common:macos --host_cxxopt=-std=c++17
common:windows --cxxopt=/std:c++17
common:windows --host_cxxopt=/std:c++17

# Local shells and virtualenvs can leak Python import state into Bazel tests,
# which then import from the wrong environment instead of the test runfiles.
test --test_env=PYTHONPATH=
test --test_env=PYTHONHOME=
test --test_env=PYTHONSTARTUP=
test --test_env=PYTHONSAFEPATH=
test --test_env=PYTHONNOUSERSITE=1
test --test_env=PYTHONUSERBASE=
test --test_env=BUILD_WORKSPACE_DIRECTORY=
test --test_env=BUILD_WORKING_DIRECTORY=
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.5.0
7.7.0
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
* text=auto
*.bzl text eol=lf
*.sh text eol=lf
.bazel* text eol=lf
BUILD text eol=lf
BUILD.bazel text eol=lf
WORKSPACE text eol=lf
MODULE.bazel text eol=lf

third_party/rust/** -diff -merge linguist-generated=true
64 changes: 51 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ permissions:
env:
# Keep this Bazel version in sync with the `versions.check` directive
# in our WORKSPACE file.
BAZEL_VERSION: '6.5.0'
BAZEL_SHA256SUM: 'a40ac69263440761199fcb8da47ad4e3f328cbe79ffbf4ecc14e5ba252857307'
BAZEL_VERSION: '7.7.0'
BAZEL_SHA256SUM: 'fe7e799cbc9140f986b063e06800a3d4c790525075c877d00a7112669824acbf'
BUILDTOOLS_VERSION: '3.0.0'
BUILDIFIER_SHA256SUM: 'e92a6793c7134c5431c58fbc34700664f101e5c9b1c1fcd93b97978e8b7f88db'
BUILDOZER_SHA256SUM: '3d58a0b6972e4535718cdd6c12778170ea7382de7c75bc3728f5719437ffb84d'
Expand All @@ -48,13 +48,42 @@ jobs:
fail-fast: false
matrix:
tf_version_id: ['tf', 'notf']
python_version: ['3.9']
python_version: ['3.10']
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
with:
python-version: ${{ matrix.python_version }}
architecture: 'x64'
# The self-hosted ml-build container already has the system packages we
# need; installing Python inside the container keeps Bazel's
# @system_python repo pointed at a normal interpreter/header layout and
# avoids the hosted-toolcache header-copy workaround that was previously
# needed with actions/setup-python.
- name: 'Set up Python and system dependencies'
run: |
py_abi="python${{ matrix.python_version }}"
sudo apt-get update
sudo apt-get install -y \
"${py_abi}" \
"${py_abi}-dev" \
"${py_abi}-venv" \
libgbm-dev \
libxss1 \
libasound2
"/usr/bin/${py_abi}" -m venv /tmp/tb-build-venv
echo "/tmp/tb-build-venv/bin" >> "${GITHUB_PATH}"
echo "VIRTUAL_ENV=/tmp/tb-build-venv" >> "${GITHUB_ENV}"
/tmp/tb-build-venv/bin/python -m pip install -U pip setuptools wheel virtualenv
- name: 'Check Python toolchain'
run: |
python --version
python - <<'PY'
import pathlib
import sys
import sysconfig

print("sys.executable =", sys.executable)
include_dir = pathlib.Path(sysconfig.get_config_var("INCLUDEPY"))
print("INCLUDEPY =", include_dir)
print("Python.h exists =", (include_dir / "Python.h").exists())
PY
- name: 'Set up Bazel'
run: |
ci/download_bazel.sh "${BAZEL_VERSION}" "${BAZEL_SHA256SUM}" ~/bazel
Expand All @@ -65,6 +94,11 @@ jobs:
run: |
python -m pip install -U pip
pip install "${TENSORFLOW_VERSION}"
# tf-nightly currently pulls in tb-nightly as a dependency. Bazel's
# source-tree tests must import TensorBoard from runfiles rather than
# from site-packages, otherwise tests that rely on local-only modules
# like `tensorboard.test` resolve against the installed wheel and fail.
pip uninstall -y tensorboard tb-nightly || true
if: matrix.tf_version_id != 'notf'
- name: 'Install Python dependencies'
run: |
Expand All @@ -73,10 +107,6 @@ jobs:
-r ./tensorboard/pip_package/requirements.txt \
-r ./tensorboard/pip_package/requirements_dev.txt \
;
- name: 'Install Chrome dependencies'
run: |
sudo apt-get update
sudo apt-get install -y libgbm-dev libxss1 libasound2
- name: 'Check Pip state'
run: pip freeze --all
- name: 'Bazel: fetch'
Expand All @@ -98,13 +128,21 @@ jobs:
if: matrix.tf_version_id == 'notf'
- name: 'Bazel: run Pip package test (with TensorFlow support)'
run: |
bazel run //tensorboard/pip_package:test_pip_package -- \
# `bazel run` has been flaky under this self-hosted container runner
# even when the smoke test itself completes successfully. Build the
# launcher target, invoke the generated binary directly, then shut
# down the Bazel server so the step exits cleanly.
bazel build //tensorboard/pip_package:test_pip_package
./bazel-bin/tensorboard/pip_package/test_pip_package \
--tf-version "${TENSORFLOW_VERSION}"
bazel shutdown
if: matrix.tf_version_id != 'notf'
- name: 'Bazel: run Pip package test (non-TensorFlow only)'
run: |
bazel run //tensorboard/pip_package:test_pip_package -- \
bazel build //tensorboard/pip_package:test_pip_package
./bazel-bin/tensorboard/pip_package/test_pip_package \
--tf-version notf
bazel shutdown
if: matrix.tf_version_id == 'notf'
- name: 'Bazel: run manual tests'
run: |
Expand Down
Loading
Loading