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

Support compression command and extension #1363

Merged
merged 4 commits into from
Feb 15, 2021

Conversation

dploeger
Copy link

@dploeger dploeger commented Feb 8, 2021

This makes it possible to configure the previously hardcoded bzip2 compression and use a faster or parallel compression. It doesn't support package installation for other compression commands.

This makes it possible to configure the previously hardcoded bzip2 compression and use a faster or parallel compression. It doesn't support package installation for other compression commands.
@dploeger dploeger requested a review from a team as a code owner February 8, 2021 10:08
@puppet-community-rangefinder
Copy link

mysql::backup::mysqldump is a class

that may have no external impact to Forge modules.

mysql::server::backup is a class

Breaking changes to this file WILL impact these 4 modules (exact match):

This module is declared in 143 of 576 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

@dploeger
Copy link
Author

dploeger commented Feb 8, 2021

I currently can't sign the CLA (it seems you're using a wrong return URL for the Github auth).

Also, I didn't know how to update reference documentation as rake strings:generate produces:

rake aborted!
Errno::EISDIR: Is a directory @ io_fread - readmes
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/yard-0.9.26/lib/yard/code_objects/extra_file_object.rb:77:in `read'
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/yard-0.9.26/lib/yard/code_objects/extra_file_object.rb:77:in `ensure_parsed'
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/yard-0.9.26/lib/yard/code_objects/extra_file_object.rb:25:in `initialize'
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/yard-0.9.26/lib/yard/cli/yardoc.rb:300:in `new'
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/yard-0.9.26/lib/yard/cli/yardoc.rb:300:in `parse_arguments'
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/yard-0.9.26/lib/yard/cli/yardoc.rb:248:in `run'
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/yard-0.9.26/lib/yard/cli/command.rb:14:in `run'
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/puppet-strings-2.6.0/lib/puppet-strings.rb:55:in `generate'
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/puppet-strings-2.6.0/lib/puppet-strings/tasks/generate.rb:45:in `block (2 levels) in <top (required)>'
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/honeycomb-beeline-2.4.0/lib/honeycomb/integrations/rake.rb:21:in `block in execute'
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/honeycomb-beeline-2.4.0/lib/honeycomb/client.rb:70:in `start_span'
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/honeycomb-beeline-2.4.0/lib/honeycomb/integrations/rake.rb:16:in `execute'
/Users/dennis.ploeger/code/puppet/forks/puppetlabs-mysql/vendor/cache/ruby/2.7.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
Tasks: TOP => strings:generate
(See full trace by running task with --trace)

@codecov-io
Copy link

Codecov Report

Merging #1363 (c09f03f) into main (7acb8b5) will increase coverage by 5.32%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1363      +/-   ##
==========================================
+ Coverage   50.33%   55.66%   +5.32%     
==========================================
  Files          22       22              
  Lines        1055     1051       -4     
==========================================
+ Hits          531      585      +54     
+ Misses        524      466      -58     
Impacted Files Coverage Δ
lib/puppet/provider/mysql_user/mysql.rb 87.41% <0.00%> (-0.18%) ⬇️
lib/puppet/type/mysql_login_path.rb 100.00% <0.00%> (ø)
lib/puppet/provider/mysql_grant/mysql.rb 16.66% <0.00%> (+0.17%) ⬆️
...ppet/provider/mysql_login_path/mysql_login_path.rb 90.72% <0.00%> (+58.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28bddab...c09f03f. Read the comment docs.

@david22swan
Copy link
Member

david22swan commented Feb 15, 2021

Taking a quick look these seem like good changes to have in the code.
Just one small comment but otherwise I think it all looks good and would be happy to merge.

Thanks for putting in the work :)

@david22swan david22swan merged commit f0933c0 into puppetlabs:main Feb 15, 2021
@david22swan
Copy link
Member

@dploeger Thanks for getting back so fast with the change. Everything looks good to me so I've gone ahead and merged it.
Once again, thanks for putting in the work.

@dploeger
Copy link
Author

@david22swan Awesome! Thanks a lot. Do you know when the next version that will include this fix is due?

@david22swan
Copy link
Member

@dploeger A release of the module just went out so it might be a while, mysql releases are fairly common however so it shouldn't be too long.

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

Successfully merging this pull request may close these issues.

3 participants