Skip to content

Commit c388a43

Browse files
authored
Only run CI checks using protobuf 4 (#2459)
* Only run CI checks using protobuf 4 Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> * Fix lint error Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> * Install the right version of types-protobuf Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> * Force protobuf<5 in plugins tests Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> --------- Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com> Co-authored-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
1 parent db2ff9e commit c388a43

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/pythonbuild.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,8 @@ jobs:
417417
cd plugins/${{ matrix.plugin-names }}
418418
uv pip install --system .
419419
if [ -f dev-requirements.in ]; then uv pip install --system -r dev-requirements.in; fi
420-
uv pip install --system -U $GITHUB_WORKSPACE
420+
# TODO: move to protobuf>=5. Github issue: https://github.com/flyteorg/flyte/issues/5448
421+
uv pip install --system -U $GITHUB_WORKSPACE "protobuf<5"
421422
uv pip freeze
422423
- name: Test with coverage
423424
run: |

dev-requirements.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ torch; python_version<'3.12'
3737
# Once a solution is found, this should be updated to support Windows as well.
3838
python-magic; (platform_system=='Darwin' or platform_system=='Linux')
3939

40-
types-protobuf
40+
# Google released a new major version of the protobuf library and once that started being used in the ecosystem at large,
41+
# including `googleapis-common-protos` we started seeing errors in CI, so let's constrain that for now.
42+
# The issue to support protobuf 5 is being tracked in https://github.com/flyteorg/flyte/issues/5448.
43+
protobuf<5
44+
types-protobuf<5
45+
4146
types-croniter
4247
types-decorator
4348
types-mock

0 commit comments

Comments
 (0)