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

spec_standalone: apply default formatting #452

Merged
merged 1 commit into from
May 16, 2024

Conversation

bastelfreak
Copy link
Collaborator

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

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
@bastelfreak bastelfreak self-assigned this May 9, 2024
@bastelfreak bastelfreak requested a review from a team as a code owner May 9, 2024 18:12
@bastelfreak
Copy link
Collaborator Author

@gavindidrichsen can you review this one as well?

@bastelfreak bastelfreak mentioned this pull request May 9, 2024
Copy link

codecov bot commented May 9, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 41.74%. Comparing base (77ecfeb) to head (81fa2c8).

Files Patch % Lines
lib/puppetlabs_spec_helper/rake_tasks.rb 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

bastelfreak added a commit to bastelfreak/modulesync_config that referenced this pull request May 9, 2024
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
Copy link
Contributor

@gavindidrichsen gavindidrichsen left a comment

Choose a reason for hiding this comment

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

Thanks!

@gavindidrichsen gavindidrichsen merged commit c4c1b25 into puppetlabs:main May 16, 2024
10 of 11 checks passed
@bastelfreak bastelfreak deleted the rspec branch May 16, 2024 15:51
bastelfreak added a commit to bastelfreak/modulesync_config that referenced this pull request May 23, 2024
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
bastelfreak added a commit to bastelfreak/modulesync_config that referenced this pull request May 23, 2024
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
bastelfreak added a commit to bastelfreak/modulesync_config that referenced this pull request May 23, 2024
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
jordanbreen28 added a commit to puppetlabs/pdk-templates that referenced this pull request May 28, 2024
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.
jordanbreen28 added a commit to puppetlabs/pdk-templates that referenced this pull request May 28, 2024
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.
@david22swan
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants