Skip to content

Fix filterwarning pattern for filesystem backend deprecation#18939

Merged
harupy merged 3 commits intomasterfrom
copilot/update-filterwarning-deprecation
Nov 20, 2025
Merged

Fix filterwarning pattern for filesystem backend deprecation#18939
harupy merged 3 commits intomasterfrom
copilot/update-filterwarning-deprecation

Conversation

Copy link
Contributor

Copilot AI commented Nov 20, 2025

Related Issues/PRs

#18534

What changes are proposed in this pull request?

The deprecation warning message in the filesystem backend was updated from "is deprecated" to "will be deprecated", but the pytest filterwarning pattern in pyproject.toml was not updated to match. This caused the filter to fail matching the actual warnings.

Changes:

  • Updated pattern from Filesystem to The filesystem (added "The" prefix to match from the start of the warning message)
  • Updated pattern from is deprecated to will be deprecated (tense match)

The Python warnings module uses re.match() which requires the pattern to match from the start of the warning message. Since the actual deprecation messages begin with "The filesystem...", the pattern must include "The" prefix.

- "ignore:Filesystem (tracking|model registry) backend.*is deprecated:FutureWarning",
+ "ignore:The filesystem (tracking|model registry) backend.*will be deprecated:FutureWarning",

How is this PR tested?

  • Existing unit/integration tests
  • New unit/integration tests
  • Manual tests

Does this PR require documentation update?

  • No. You can skip the rest of this section.
  • Yes. I've updated:
    • Examples
    • API references
    • Instructions

Release Notes

Is this a user-facing change?

  • No. You can skip the rest of this section.
  • Yes. Give a description of this change to be included in the release notes for MLflow users.

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

Components

  • area/tracking: Tracking Service, tracking client APIs, autologging
  • area/models: MLmodel format, model serialization/deserialization, flavors
  • area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • area/scoring: MLflow Model server, model deployment tools, Spark UDFs
  • area/evaluation: MLflow model evaluation features, evaluation metrics, and evaluation workflows
  • area/gateway: MLflow AI Gateway client APIs, server, and third-party integrations
  • area/prompts: MLflow prompt engineering features, prompt templates, and prompt management
  • area/tracing: MLflow Tracing features, tracing APIs, and LLM tracing functionality
  • area/projects: MLproject format, project running backends
  • area/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev server
  • area/build: Build and test infrastructure for MLflow
  • area/docs: MLflow documentation pages

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
  • rn/breaking-change - The PR will be mentioned in the "Breaking Changes" section
  • rn/feature - A new user-facing feature worth mentioning in the release notes
  • rn/bug-fix - A user-facing bug fix worth mentioning in the release notes
  • rn/documentation - A user-facing documentation change worth mentioning in the release notes

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)
Original prompt

Update filterwarnig for filesystem backend deprecation. The deprecation message has been updated. The current filter doesn't match it

"ignore:Filesystem (tracking|model registry) backend.*is deprecated:FutureWarning",


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@harupy harupy marked this pull request as ready for review November 20, 2025 11:25
@github-actions
Copy link
Contributor

@Copilot Thank you for the contribution! Could you fix the following issue(s)?

⚠ Invalid PR template

This PR does not appear to have been filed using the MLflow PR template. Please copy the PR template from here and fill it out.

Update the filterwarning pattern in pyproject.toml to match the actual deprecation messages:
- Change "Filesystem" to "filesystem" (lowercase)
- Change "is deprecated" to "will be deprecated"

This ensures the warning filter correctly matches and suppresses the filesystem backend deprecation warnings during tests.

Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
Copilot AI changed the title [WIP] Update filterwarning for filesystem backend deprecation Fix filterwarning pattern for filesystem backend deprecation Nov 20, 2025
@github-actions github-actions bot added area/build Build and test infrastructure for MLflow rn/none List under Small Changes in Changelogs. labels Nov 20, 2025
Copilot AI requested a review from harupy November 20, 2025 11:33
The Python warnings module requires the message pattern to match from the start of the warning message. Added "The" prefix to match the actual deprecation message format.

Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
Copilot AI requested a review from harupy November 20, 2025 11:54
@harupy harupy added this pull request to the merge queue Nov 20, 2025
Merged via the queue into master with commit a2f37c2 Nov 20, 2025
53 of 55 checks passed
@harupy harupy deleted the copilot/update-filterwarning-deprecation branch November 20, 2025 12:48
Tian-Sky-Lan pushed a commit to Tian-Sky-Lan/mlflow that referenced this pull request Nov 24, 2025
…18939)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: Tian Lan <sky.blue266000@gmail.com>
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