Skip to content

Conversation

maurycy
Copy link
Contributor

@maurycy maurycy commented Sep 5, 2025

Unfortunately, #407 is incorrect, as demonstrated by #408: /pyperformance/data-files/benchmarks/bm_dulwich_log should be exluded.

It's not exactly clear to me why:

  1. is exclude-paths relative to the directory?
  2. is it because exclude-paths needs a wildcard?
  3. is it because exclude-paths doesn't care about security updates?

It's impossible to test, and there are three sources of knowledge on the subject:

My – possibly incorrect – understanding is that 1. is true, 2. is likely true, and 3. is not definite (does "update PR creation" include security?) from reading comments:

dependabot/dependabot-core#4364 (comment)

I think that we can revert #296 once we confirm that it's indeed the fix.

@maurycy maurycy changed the title Dependabot exclude paths wildcard Use a relative exclude-paths in dependabot.yml and a wildcard Sep 5, 2025
@hugovk hugovk merged commit 71ec59c into python:main Sep 5, 2025
20 checks passed
@hugovk
Copy link
Member

hugovk commented Sep 5, 2025

🤞

directory: "/"
exclude-paths:
- "pyperformance/data-files/"
- "pyperformance/data-files/**"
Copy link

Choose a reason for hiding this comment

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

Interesting.. The previous version should have worked as well. May be some regression in how Dependabot is trying to filter paths @hugovk

Copy link
Member

Choose a reason for hiding this comment

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

One idea is to enable Dependabot in your fork, and then you can iterate more quickly to find a solution? (If there is one :)

Copy link
Member

Choose a reason for hiding this comment

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

Or maybe this is working?

#411 is an expected update in the top-level pyproject.toml

Copy link
Contributor Author

@maurycy maurycy Sep 5, 2025

Choose a reason for hiding this comment

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

Copy link

@dnlfm dnlfm Sep 5, 2025

Choose a reason for hiding this comment

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

Hmm yeah..
I'm not an official maintainer of Dependabot - I just contributed in this file-fetching part, so I can't say in an accurate way what could be the real issue... Right now the logic has been moved away from the FileFetcher, so it could be because of the value of directory, making the exclude-paths relative to it.

Before, it would be relative to the root of the project. I'm not sure if the value for directory forces the "root" be another one (it might be)

@maurycy maurycy deleted the dependabot-exclude-paths-wildcard branch September 5, 2025 08:53
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.

3 participants