3131
3232jobs :
3333 build :
34- runs-on : ubuntu-20 .04
34+ runs-on : ubuntu-22 .04
3535 needs : lint-python-flake8 # fail fast in case of "undefined variable" errors
3636 strategy :
3737 fail-fast : false
@@ -135,11 +135,11 @@ jobs:
135135 fail-fast : false
136136 matrix :
137137 mode : ['native']
138- platform : ['ubuntu-20 .04', 'macos-11']
138+ platform : ['ubuntu-22 .04', 'macos-11']
139139 rust_version : ['1.58.1']
140140 include :
141141 - mode : ' universal'
142- platform : ' ubuntu-20 .04'
142+ platform : ' ubuntu-22 .04'
143143 rust_version : ' 1.58.1'
144144 steps :
145145 - uses : actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
@@ -207,7 +207,7 @@ jobs:
207207 path : /tmp/pip_package/*
208208
209209 lint-python-flake8 :
210- runs-on : ubuntu-20 .04
210+ runs-on : ubuntu-22 .04
211211 strategy :
212212 fail-fast : false
213213 matrix :
@@ -232,19 +232,24 @@ jobs:
232232 run : flake8 . --count --select=E9,F63,F7,F82,F401 --show-source --statistics
233233
234234 lint-python-yaml-docs :
235- runs-on : ubuntu-20 .04
235+ runs-on : ubuntu-22 .04
236236 steps :
237237 - uses : actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
238238 - uses : actions/setup-python@152ba7c4dd6521b8e9c93f72d362ce03bf6c4f20
239239 with :
240- python-version : ' 3.6 '
240+ python-version : ' 3.7 '
241241 architecture : ' x64'
242242 - name : ' Install black, yamllint, and the TensorFlow docs notebook tools'
243243 run : |
244244 python -m pip install -U pip
245245 nbfmt_version="174c9a5c1cc51a3af1de98d84824c811ecd49029"
246246 pip install black yamllint -c ./tensorboard/pip_package/requirements_dev.txt
247247 pip install -U git+https://github.com/tensorflow/docs@${nbfmt_version}
248+ # Workaround tensorflow incompatibility with protobuf>4.
249+ # See: https://github.com/tensorflow/tensorboard/issues/5708.
250+ # See: https://github.com/tensorflow/tensorflow/issues/53234.
251+ - name : ' Downgrade to compatible protobuf version'
252+ run : pip install -U "protobuf<3.20"
248253 - run : pip freeze --all
249254 - name : ' Lint Python code for style with Black'
250255 # You can run `black .` to fix all Black complaints.
@@ -256,7 +261,7 @@ jobs:
256261 run : git ls-files -z '*.ipynb' | xargs -0 python3 -m tensorflow_docs.tools.nbfmt --test
257262
258263 lint-rust :
259- runs-on : ubuntu-20 .04
264+ runs-on : ubuntu-22 .04
260265 strategy :
261266 matrix :
262267 rust_version : ['1.58.1']
@@ -300,7 +305,7 @@ jobs:
300305 git diff --staged --exit-code
301306
302307 lint-frontend :
303- runs-on : ubuntu-20 .04
308+ runs-on : ubuntu-22 .04
304309 steps :
305310 - uses : actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
306311 - uses : actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
@@ -331,7 +336,7 @@ jobs:
331336 ! git grep -E '@npm//numeric' 'tensorboard/*/BUILD' ':!tensorboard/webapp/third_party/**'
332337
333338 lint-misc : # build, protos, etc.
334- runs-on : ubuntu-20 .04
339+ runs-on : ubuntu-22 .04
335340 steps :
336341 - uses : actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
337342 - name : ' Set up Buildifier'
0 commit comments