Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Tests breaking due to a error in protobuf dependency #2191

Closed
3 tasks
miguelgfierro opened this issue Dec 1, 2024 · 4 comments
Closed
3 tasks

[BUG] Tests breaking due to a error in protobuf dependency #2191

miguelgfierro opened this issue Dec 1, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@miguelgfierro
Copy link
Collaborator

miguelgfierro commented Dec 1, 2024

Description

Protobuf made a new release https://pypi.org/project/protobuf/#history
on Nov 27, 2024. It's breaking the tests.

    File "/home/runner/work/recommenders/recommenders/tests/ci/azureml_tests/post_pytest.py", line 75, in <module>
      runs = mlflow.search_runs(
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/mlflow/tracking/fluent.py", line 2069, in search_runs
      experiment_by_name = get_experiment_by_name(n)
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/mlflow/tracking/fluent.py", line 1671, in get_experiment_by_name
      return MlflowClient().get_experiment_by_name(name)
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/mlflow/tracking/client.py", line 134, in __init__
      self._tracking_client = TrackingServiceClient(final_tracking_uri)
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/client.py", line 83, in __init__
      self.store
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/client.py", line 87, in store
      return utils._get_store(self.tracking_uri)
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/utils.py", line 208, in _get_store
      return _tracking_store_registry.get_store(store_uri, artifact_uri)
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/registry.py", line 45, in get_store
      return self._get_store_with_resolved_uri(resolved_store_uri, artifact_uri)
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/registry.py", line 56, in _get_store_with_resolved_uri
      return builder(store_uri=resolved_store_uri, artifact_uri=artifact_uri)
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/azureml/mlflow/entry_point_loaders.py", line 33, in azureml_store_builder
      from azureml.mlflow._store.tracking.store import AzureMLRestStore
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/azureml/mlflow/_store/tracking/store.py", line 17, in <module>
      from azureml.mlflow._protos.aml_service_pb2 import (
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/azureml/mlflow/_protos/aml_service_pb2.py", line 10, in <module>
      from google.protobuf import service as _service
    File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/google/protobuf/service.py", line 78
      raise NotImplementedError
                               ^
  IndentationError: unindent does not match any outer indentation level
  Error: Process completed with exit code 1.

In which platform does it happen?

How do we replicate the issue?

https://github.com/recommenders-team/recommenders/actions/runs/12100479486/job/33739131547

Expected behavior (i.e. solution)

I expect Google to test their libraries before making a release.

Willingness to contribute

  • Yes, I can contribute for this issue independently.
  • Yes, I can contribute for this issue with guidance from Recommenders community.
  • No, I cannot contribute at this time.

Other Comments

@miguelgfierro miguelgfierro added the bug Something isn't working label Dec 1, 2024
@miguelgfierro
Copy link
Collaborator Author

Confirmed other people got the same error: protocolbuffers/protobuf#19430

@miguelgfierro
Copy link
Collaborator Author

miguelgfierro commented Dec 3, 2024

Update: @imatiach-msft and I talked with the AzureML dev team and they are going to remove the code that caused the error. Not sure how long they are going to take. In the meantime, if we want a quick fix would be to restrict protobuf<5.29.0.

FYI @SimonYansenZhao @anargyri

@miguelgfierro
Copy link
Collaborator Author

Protobuf 5.29.0 was finally yanked: https://pypi.org/project/protobuf/5.29.0/

@miguelgfierro
Copy link
Collaborator Author

The yank of the version fixed the problem. See https://github.com/recommenders-team/recommenders/actions/runs/12168238375

The AzureML team is expected to update the deprecated dependency.
Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant