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

ci(pre-commit): only include the chart once #1335

Merged
merged 2 commits into from
Nov 11, 2024
Merged

ci(pre-commit): only include the chart once #1335

merged 2 commits into from
Nov 11, 2024

Conversation

eyenx
Copy link
Member

@eyenx eyenx commented Nov 11, 2024

Description

As of today, the pre-commit.yaml is including all the files matching ^charts/ which leads the the scripts unittesting the charts twice or even thrice. I could see this happening on my laptop as well as on the actions happening on PR #1333

This PR changes the regex to only match directories with Chart.yaml in it, making the unittest run only once per chart.

Issues

Unittestests are run a few times, using too many resources

Checklist

  • This PR contains a description of the changes I'm making
  • I updated the version in Chart.yaml
  • I updated the changelog with an artifacthub.io/changes annotation in Chart.yaml, check the example in the documentation.
  • I updated applicable README.md files using pre-commit run
  • I documented any high-level concepts I'm introducing in docs/
  • CI is currently green and this is ready for review
  • I am ready to test changes after they are applied and released

@eyenx eyenx requested a review from a team as a code owner November 11, 2024 13:15
@github-actions github-actions bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 11, 2024
Copy link
Contributor

@hairmare hairmare left a comment

Choose a reason for hiding this comment

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

LGTM

@eyenx eyenx enabled auto-merge (squash) November 11, 2024 13:20
@eyenx eyenx merged commit 83eea95 into main Nov 11, 2024
3 checks passed
@eyenx eyenx deleted the ci/pre-commit branch November 11, 2024 13:20
@eyenx eyenx mentioned this pull request Nov 11, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants