Skip to content

fix(STEF-2802): anchor mlflow gitignore patterns to repo root#814

Merged
egordm merged 1 commit intorelease/v4.0.0from
fix/STEF-2802-gitignore-mlflow
Feb 20, 2026
Merged

fix(STEF-2802): anchor mlflow gitignore patterns to repo root#814
egordm merged 1 commit intorelease/v4.0.0from
fix/STEF-2802-gitignore-mlflow

Conversation

@egordm
Copy link
Collaborator

@egordm egordm commented Feb 20, 2026

Problem

The bare `mlflow` pattern in `.gitignore` (added in #793 / v4.0.0.a17) matches anywhere in the directory tree. Hatchling uses `.gitignore` for VCS-based file exclusion during wheel builds, so `packages/openstef-models/src/openstef_models/integrations/mlflow/` was silently dropped from the built wheel.

This caused `openstef_models.integrations.mlflow` to be unavailable at runtime since a17 — breaking any downstream code that imports `MLFlowStorage`.

Fix

Root-anchor the patterns: `mlflow` → `/mlflow`, `mlflow_artifacts_local` → `/mlflow_artifacts_local`. This limits the match to only the top-level directories (local MLflow data) and no longer excludes the source module.

Also fixes the missing trailing newline.

The bare 'mlflow' pattern matched anywhere in the tree, which caused
hatchling to exclude packages/openstef-models/src/openstef_models/integrations/mlflow/
from the built wheel. Root-anchoring with '/mlflow' limits the match to
only the top-level mlflow directory (local MLflow data).

Broken since v4.0.0.a17 (commit 1bcf71d).

Signed-off-by: Egor Dmitriev <egor.dmitriev@alliander.com>
@egordm egordm requested a review from a team February 20, 2026 13:02
@github-actions github-actions bot added the fix Something isn't working label Feb 20, 2026
Copy link
Collaborator

@bartpleiter bartpleiter left a comment

Choose a reason for hiding this comment

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

LGTM

@egordm egordm merged commit 9271c05 into release/v4.0.0 Feb 20, 2026
3 checks passed
@egordm egordm deleted the fix/STEF-2802-gitignore-mlflow branch February 20, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments