Skip to content

Conversation

@deriamis
Copy link

@deriamis deriamis commented Oct 3, 2023

Description

Because we set _binary_payload on RPM packages, we override the selection of compression algorithm defaults; in this case, we specifically choose a non-threaded compression mode. Unfortunately, this means that compression with any compression algorithm other than GZip can take a very long time. Debian packages, on the other hand, use threaded compression modes by default.

This change forces _binary_payload to use threaded compression modes when selecting an algorithm and compression level.


Maintainers

Please ensure that you check for:

  • If this change impacts git cache validity, it bumps the git cache
    serial number
  • If this change impacts compatibility with omnibus-software, the
    corresponding change is reviewed and there is a release plan
  • If this change impacts compatibility with the omnibus cookbook, the
    corresponding change is reviewed and there is a release plan

Because we set `_binary_payload` on RPM packages, we override the selection
of compression algorithm defaults; in this case, we specifically choose a
non-threaded compression mode. Unfortunately, this means that compression
with any compression algorithm other than GZip can take a very long time.
Debian packages, on the other hand, use threaded compression modes by
default.

This change forces `_binary_payload` to use threaded compression modes when
selecting an algorithm and compression level.

Signed-off-by: Ryan Egesdahl <[email protected]>
@deriamis deriamis requested review from a team as code owners October 3, 2023 16:32
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant