-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Linter using Github Actions #8
Conversation
Create linter.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @SarveshLimaye thanks for this PR.
- The current workflow succeeded, but did not executed any lint on the helm charts provided in the repository. Usually, the tool
ct
(https://github.com/helm/chart-testing) is used for linting helm charts - Whatever tool is used, could you add a documentation to explain for a contributor how they could execute the same linting on their own machine when contributing? The idea is that we should not wait for a PR with the GitHub workflow execution to be able to lint.
@dduportal Thanks for the feedback. :) |
Official GHA: https://github.com/helm/chart-testing-action |
@lemeurherve Thanks for this . It should be exactly same as the example workflow in official gha right ? |
It should be quite similar, ot sure if it should be exactly the same. |
@lemeurherve @dduportal is it fine now ? I am sorry by mistakenly I opened a new pull request. I have closed it now. |
Hello @SarveshLimaye , thanks for your work! The check linter is failing with the following error message:
I'm not sure why to be honest... We'll take time to review next week, but if you know what to do with this error, please proceed |
Hello, I am not sure about the error. Can you pls review the changes. |
@SarveshLimaye sorry for the late response, I think the problem comes from here: helm/chart-testing#330 |
Tried to remove the shallow cloning, it didn't worked... |
Related issue: helm/chart-testing-action#69 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should fix the check, I've made a PR in the action repository too: helm/chart-testing-action#75
.github/workflows/lint-test.yml
Outdated
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed=$(ct list-changed) | |
changed=$(ct list-changed --target-branch main) |
@lemeurherve Thank you so much for the fix . Is it fine now ? |
Don't know why the test is still failing. |
Hi @SarveshLimaye ! Many thanks for your patience and efforts to make this happen! I'm trying to reproduce the issue loclly but I got a bad feeling about Currently, the github actions reports the following error when running the command Linting charts...
------------------------------------------------------------------------------------------------------------------------
Error: Error linting charts: Error identifying charts to process: Error running process: exit status 128
No chart changes detected.
------------------------------------------------------------------------------------------------------------------------
Error linting charts: Error identifying charts to process: Error running process: exit status 128 If I try to reproduce on my current local setup (ct 2.5.0) I also got an error: ct lint
Linting charts...
Error loading configuration: 'chart_schema.yaml' neither specified nor found in default locations => I assume that we should target 3.4.0. The goal for you and I is to reproduce the error locally before going forward.
|
@SarveshLimaye Another tip: https://github.com/helm/chart-testing/blob/main/doc/ct_lint.md#synopsis . |
Hey @dduportal Thanks for the review and tips. Will try to reproduce the error locally for 3.4.0. |
Hello 👋 As the jenkins-infra team is trying to move as much workload to Jenkins controller as possible, we are closing this issue. |
#3
Added super-linter using github actions