Skip to content

Commit

Permalink
Only run CI checks using protobuf 4 (#2459)
Browse files Browse the repository at this point in the history
* Only run CI checks using protobuf 4

Signed-off-by: Eduardo Apolinario <[email protected]>

* Fix lint error

Signed-off-by: Eduardo Apolinario <[email protected]>

* Install the right version of types-protobuf

Signed-off-by: Eduardo Apolinario <[email protected]>

* Force protobuf<5 in plugins tests

Signed-off-by: Eduardo Apolinario <[email protected]>

---------

Signed-off-by: Eduardo Apolinario <[email protected]>
Co-authored-by: Eduardo Apolinario <[email protected]>
Signed-off-by: Jan Fiedler <[email protected]>
  • Loading branch information
2 people authored and fiedlerNr9 committed Jul 25, 2024
1 parent cc37c50 commit 0c184c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ jobs:
cd plugins/${{ matrix.plugin-names }}
uv pip install --system .
if [ -f dev-requirements.in ]; then uv pip install --system -r dev-requirements.in; fi
uv pip install --system -U $GITHUB_WORKSPACE
# TODO: move to protobuf>=5. Github issue: https://github.com/flyteorg/flyte/issues/5448
uv pip install --system -U $GITHUB_WORKSPACE "protobuf<5"
uv pip freeze
- name: Test with coverage
run: |
Expand Down
7 changes: 6 additions & 1 deletion dev-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ torch; python_version<'3.12'
# Once a solution is found, this should be updated to support Windows as well.
python-magic; (platform_system=='Darwin' or platform_system=='Linux')

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

types-croniter
types-decorator
types-mock
Expand Down

0 comments on commit 0c184c1

Please sign in to comment.