-
Notifications
You must be signed in to change notification settings - Fork 145
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
spec_standalone: apply default formatting #452
Conversation
usually we've a .rspec file in every module: https://github.com/puppetlabs/pdk-templates/blob/main/moduleroot/.rspec.erb By moving this to the rake task we can delete the whole .rspec file. Similar to puppetlabs#446
@gavindidrichsen can you review this one as well? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #452 +/- ##
=======================================
Coverage 41.74% 41.74%
=======================================
Files 10 10
Lines 678 678
=======================================
Hits 283 283
Misses 395 395 ☔ View full report in Codecov by Sentry. |
requires puppetlabs/puppetlabs_spec_helper#451 since puppetlabs/puppetlabs_spec_helper#446 the rake task configures the output so we don't need .rspec_parallel anymore. Requires also puppetlabs/puppetlabs_spec_helper#452
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.
Thanks!
requires puppetlabs/puppetlabs_spec_helper#451 since puppetlabs/puppetlabs_spec_helper#446 the rake task configures the output so we don't need .rspec_parallel anymore. Requires also puppetlabs/puppetlabs_spec_helper#452
requires puppetlabs/puppetlabs_spec_helper#451 since puppetlabs/puppetlabs_spec_helper#446 the rake task configures the output so we don't need .rspec_parallel anymore. Requires also puppetlabs/puppetlabs_spec_helper#452
requires puppetlabs/puppetlabs_spec_helper#451 since puppetlabs/puppetlabs_spec_helper#446 the rake task configures the output so we don't need .rspec_parallel anymore. Requires also puppetlabs/puppetlabs_spec_helper#452
This commit removes the .rspec.erb file from the pdk-templates, and thus the .rspec file from being managed by PDK. This was made possible due to the changes found in puppetlabs/puppetlabs_spec_helper#452. This has minimal impact on users as the file was not configurable through .sync.yml before (other than to set as unmanaged), existing modules with the .rspec will not be affected and new modules created will simply not include an .rspec file.
This commit removes the .rspec.erb file from the pdk-templates, and thus the .rspec file from being managed by PDK. This was made possible due to the changes found in puppetlabs/puppetlabs_spec_helper#452. This has minimal impact on users as the file was not configurable through .sync.yml before (other than to set as unmanaged), existing modules with the .rspec will not be affected and new modules created will simply not include an .rspec file.
@bastelfreak Look's like this will have to be reverted unfortunately. It's causing knock on failures within the PDK when the output is set as junit: https://github.com/puppetlabs/pdk/actions/runs/9376052167/job/25816947136#step:6:1558 It seems like we the PDK relies on this output being given in the basic form. |
usually we've a .rspec file in every module:
https://github.com/puppetlabs/pdk-templates/blob/main/moduleroot/.rspec.erb
By moving this to the rake task we can delete the whole .rspec file. Similar to #446