Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fileMatch for commodore-helm manager #388

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

simu
Copy link
Member

@simu simu commented Jan 30, 2025

We need to anchor the beginning of the fileMatch commodore-helm regex class/[^.].ya?ml$ so that we don't accidentally match any files in golden tests whose name or path contains the fragment class/, such as component-rook-ceph's rbd-extra-storageclass test case.

Added a test case which tests the fileMatch regex pattern against some representative cases.

Checklist

  • PR contains a single logical change (to build a better changelog).
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog

@simu simu added the bug Something isn't working label Jan 30, 2025
@simu simu requested a review from a team January 30, 2025 16:56
@simu simu force-pushed the fix/commodore-helm-file-pattern branch from f728ab8 to 3e47583 Compare January 30, 2025 16:58
We need to anchor the beginning of the `fileMatch` commodore-helm regex
`class/[^.].ya?ml$` so that we don't accidentally match any files in
golden tests whose name or path contains the fragment `class/`, such as
component-rook-ceph's `rbd-extra-storageclass` test case.

Unfortunately, writing a test for this is tricky because we're
configuring Renovate internals which we can't easily exercise in our
test cases.
@simu simu force-pushed the fix/commodore-helm-file-pattern branch 2 times, most recently from 517b5f8 to 7140e08 Compare January 31, 2025 09:27
@simu simu force-pushed the fix/commodore-helm-file-pattern branch from 7140e08 to 234bdb4 Compare January 31, 2025 09:28
@simu simu merged commit 0604108 into master Jan 31, 2025
3 checks passed
@simu simu deleted the fix/commodore-helm-file-pattern branch January 31, 2025 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants