Skip to content

Remove redundant tracking_uri fixtures from test files#19294

Merged
harupy merged 1 commit intomlflow:masterfrom
harupy:remove-redundant-tracking-uri-fixtures
Dec 9, 2025
Merged

Remove redundant tracking_uri fixtures from test files#19294
harupy merged 1 commit intomlflow:masterfrom
harupy:remove-redundant-tracking-uri-fixtures

Conversation

@harupy
Copy link
Member

@harupy harupy commented Dec 9, 2025

🛠 DevTools 🛠

Open in GitHub Codespaces

Install mlflow from this PR

# mlflow
pip install git+https://github.com/mlflow/mlflow.git@refs/pull/19294/merge
# mlflow-skinny
pip install git+https://github.com/mlflow/mlflow.git@refs/pull/19294/merge#subdirectory=libs/skinny

For Databricks, use the following command:

%sh curl -LsSf https://raw.githubusercontent.com/mlflow/mlflow/HEAD/dev/install-skinny.sh | sh -s pull/19294/merge

Related Issues/PRs

#19258

What changes are proposed in this pull request?

After #19258, tracking_uri_mock in tests/conftest.py now uses db_uri and is autouse by default. This makes per-file tracking_uri fixtures redundant, so this PR removes them.

How is this PR tested?

  • Existing unit/integration tests

Does this PR require documentation update?

  • No. You can skip the rest of this section.

Release Notes

Is this a user-facing change?

  • No. You can skip the rest of this section.

What component(s), interfaces, languages, and integrations does this PR affect?

Components

  • area/build: Build and test infrastructure for MLflow

How should the PR be classified in the release notes? Choose one:

  • rn/none - No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" section

Should this PR be included in the next patch release?

  • Yes (this PR will be cherry-picked and included in the next patch release)
  • No (this PR will be included in the next minor release)

🤖 Generated with Claude Code

After mlflow#19258, tracking_uri_mock in tests/conftest.py now uses db_uri
and is autouse by default. This makes per-file tracking_uri fixtures
redundant.

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 9, 2025 08:32
@github-actions github-actions bot added area/build Build and test infrastructure for MLflow rn/none List under Small Changes in Changelogs. labels Dec 9, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes redundant per-file tracking_uri fixtures from test files after the tracking_uri_mock fixture in tests/conftest.py was made autouse by default in #19258. The changes eliminate code duplication while preserving test functionality.

  • Removes 5 redundant tracking_uri fixtures from test files
  • Removes 2 unused imports of _use_tracking_uri
  • Maintains correct behavior for both regular tests and IS_TRACING_SDK_ONLY scenarios

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/tracking/test_tracking.py Removes redundant tracking_uri fixture that was superseded by the autouse fixture in conftest.py
tests/tracking/test_log_image.py Removes redundant tracking_uri fixture and unused _use_tracking_uri import
tests/tracking/fluent/test_fluent.py Removes redundant tracking_uri fixture that duplicated conftest.py functionality
tests/tracing/test_fluent.py Removes redundant tracking_uri fixture with IS_TRACING_SDK_ONLY handling, now covered by conftest.py's conditional autouse
tests/artifacts/test_artifacts.py Removes redundant tracking_uri fixture and unused _use_tracking_uri import

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@harupy harupy merged commit 94dd137 into mlflow:master Dec 9, 2025
49 of 51 checks passed
@harupy harupy deleted the remove-redundant-tracking-uri-fixtures branch December 9, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Build and test infrastructure for MLflow rn/none List under Small Changes in Changelogs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants