superset icon indicating copy to clipboard operation
superset copied to clipboard

dependencies:python labeler rule does not match pyproject.toml and workspace configs

Open ayushbuilds-code opened this issue 3 weeks ago • 2 comments

Bug description

In .github/labeler.yml, the rule for dependencies:python currently only monitors:

"dependencies:python":
- changed-files:
  - any-glob-to-any-file:
    - 'requirements/**'
    - 'superset/translations/requirements.txt'
    - 'RELEASING/requirements.txt'

However, primary Python project dependencies and constraints are defined in pyproject.toml, as well as workspace subprojects (superset-core/pyproject.toml, superset-extensions-cli/pyproject.toml).

By contrast, dependencies:npm monitors all package.json and lockfile locations across root, packages, and plugins. Because pyproject.toml is not included under dependencies:python, PRs updating Python dependencies (including Dependabot bumps) are not tagged with the dependencies:python label.

Expected behavior

dependencies:python in .github/labeler.yml should include pyproject.toml, superset-core/pyproject.toml, superset-extensions-cli/pyproject.toml, and uv.lock.

Superset version

master / latest-dev

Python version

Not applicable

Node version

Not applicable

Browser

Not applicable

Checklist

  • [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
  • [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
  • [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

ayushbuilds-code avatar Nov 09 '26 07:11 ayushbuilds-code

The fix can stay in .github/labeler.yml: extend the existing matcher rather than replace the requirements paths. The current rule misses all four files you listed. [1]

"dependencies:python":
- changed-files:
  - any-glob-to-any-file:
    - 'requirements/**'
    - 'superset/translations/requirements.txt'
    - 'RELEASING/requirements.txt'
    - 'pyproject.toml'
    - 'superset-core/pyproject.toml'
    - 'superset-extensions-cli/pyproject.toml'
    - 'uv.lock'

One useful distinction for the Dependabot case: its Python configuration explicitly assigns pip and dependabot, not dependencies:python, so those labels do not compensate for the missing file matches. [2] The existing PR-labeler workflow already runs actions/labeler with label synchronization enabled, so no workflow change appears necessary for this fix. [3]

To reply, just mention @dosu.


Docs are dead. Just use Dosu.

Leave Feedback Ask Dosu about superset Share Dosu with your team

dosubot[bot] avatar Nov 09 '26 07:11 dosubot[bot]

hey! i was checking out issue #46103 and came across your PR #46104

i went through the changes and noticed that uv.lock is mentioned in the issue, but i couldn't see it being added to .github/labeler.yml

was that intentional or did it get missed? just wanted to check if there's anything else that still needs to be done, i'd be happy to help out if needed!

thanks :)

Sreeyashasvi avatar Nov 18 '26 09:11 Sreeyashasvi