-
Notifications
You must be signed in to change notification settings - Fork 104
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
(GH-1118) Add ability to skip validating files #1114
Conversation
a6b9815
to
fc94626
Compare
Hi, we struggled on the yaml linting in our own modules too. Our current "solution" is we put them into own puppet modules and don't validate them with pdk. The only thing i don't understand on your implementation is where it is stored. Is it possible to set the ignore in the .sync.yml (or another one?) or is it done on the development system? Basiclly a developer should be possible to Best regards, |
Yes this would add a |
dcf3695
to
614936d
Compare
Codecov Report
@@ Coverage Diff @@
## main #1114 +/- ##
==========================================
- Coverage 91.25% 91.25% -0.01%
==========================================
Files 137 137
Lines 5570 5578 +8
==========================================
+ Hits 5083 5090 +7
- Misses 487 488 +1
Continue to review full report at Codecov.
|
614936d
to
60b57e0
Compare
2b5ae80
to
78f7a2a
Compare
65bd00f
to
d8f02bb
Compare
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.
LGTM! 🎉
@jpogran I'm happy to merge as-is unless we want to do a quick commit fixup for commit history? |
Add a new config setting that represents a list of files to ignore when running any of the validators in `pdk validate`. Add ignore files to invokable_validator so all validators use the ignore list Co-authored-by: Dave Armstrong <[email protected]>
d8f02bb
to
d7ee603
Compare
Code coverage error seems to be a non-issue, merging. |
@da-ar @michaeltlombardi @jpogran can you tell me if this is in the nightlies yet?
|
@cdenneen The nightlies aren't running at the moment as we've been working on the pipelines. This will be part of PDK 2.2.0.
|
@da-ar thanks... are there instructions for how to build the pdk.deb package myself? I need to get this functionality pushed.... I tried to run a Any help would be greatly appreciated |
Just for context I built this inside a ruby:2.7 container:
But when I ran the resulting binary locally it didn't use any embedded ruby as expected it tried to use my system one as you can see here with
|
Rbenv plays havoc. I believe if you unset the environment variables found here: https://github.com/puppetlabs/pdk-vanagon/blob/0aa54c9129b137c2deabb0a417d59215df36fd91/resources/files/posix/pdk_env_wrapper you will have more success. Thats the best i can do for now. |
@da-ar thanks but the issue I don't think is rbenv but more that in example you pasted your pointing at the embedded ruby inside of pdk but when I'm building pdk from source I don't have an /opt/puppetlabs like this:
pdk was built inside a ruby:2.7 docker image and the binary was placed into cloned git repo pdk/bin/pdk just don't have any pdk/private/ruby which is what need to add to pdk build instructions. |
This introduces a project level setting for a list of ignored files or patterns for the pdk validate command. Discussion: #1066
Closes #1118 and #1117