Respect relative_root_url when generating the mflow client integration packages_url
Summary
Reported by @devMiyax originally through #381660 (comment 1496321345):
When MLFLOW_TRACKING_URI has a directory name, mlflow.utils.autologging_utils remove it. it causes 404 error.
Steps to reproduce
- Follow the GitLab docs to install GitLab under a relative URL.
- Set
MLFLOW_TRACKING_URI
to a GitLab URL including a relative prefix. - Run the mlflow client.
- Look for warning/error logs with HTTP 404 errors.
What is the current bug behavior?
The relative root is disregarded causing a HTTP 404 not found status.
What is the expected correct behavior?
The relative root is included in the mlflow packages URL.
Edited by Erran Carey