Skip to content

Fix --config mlflow:<run> against pre-MLflow-3 tracking servers (404) - #7

Merged
leifdenby merged 1 commit into
dev/dmi-convgru-trainingfrom
fix/resume-artifact-repo
Oct 18, 2026
Merged

leifdenby merged 1 commit into
dev/dmi-convgru-trainingfrom
fix/resume-artifact-repo

Conversation

@leifdenby

Copy link
Copy Markdown

mlcast train --config mlflow:<run> (from #6) failed on 27sj894 with:

MlflowException: API request to endpoint /api/2.0/mlflow/logged-models/search failed with error code 404

Cause: in the MLflow 3 client (3.11 here), MlflowClient.list_artifacts(run_id, path) goes through the runs:/ artifact repository, which also searches for MLflow 3 "logged models". mlflow.dmidev.org is older and has no such endpoint, so the very first listing (config/) failed. My end-to-end test for #6 used a local file store, which never takes that path.

Fix: list and download through the run's artifact repository, built from run.info.artifact_uri (mlflow-artifacts:/114/<run>/artifacts), which only uses the artifact endpoints the server has.

Testing

  • Against mlflow.dmidev.org, run intrigued-sow-455: lists the artifacts, downloads config/tmpm6d5s5g9.yaml, finds no uploaded checkpoints and falls back to the local 114/<run>/checkpoints as intended.
  • New test asserting MlflowClient.list_artifacts is never called and the repository is built from the run's artifact_uri and the URL's server. Full suite: 170 passed, 5 skipped.

🤖 Generated with Claude Code

MlflowClient.list_artifacts(run_id, ...) in the MLflow 3 client also calls
/api/2.0/mlflow/logged-models/search, which mlflow.dmidev.org doesn't
have, so --config mlflow:<run> failed with a 404 before looking at a
single file. List and download through the run's artifact repository
(built from run.info.artifact_uri), which only uses the artifact
endpoints. Checked against mlflow.dmidev.org.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leifdenby
leifdenby requested a review from arjj8 October 18, 2026 19:31
@leifdenby
leifdenby merged commit 5b49c7a into dev/dmi-convgru-training Oct 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant