Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

speed up swupd-server testing #73

Open
pohly opened this issue Sep 20, 2017 · 3 comments
Open

speed up swupd-server testing #73

pohly opened this issue Sep 20, 2017 · 3 comments

Comments

@pohly
Copy link
Contributor

pohly commented Sep 20, 2017

I'm currently adding automated testing of meta-swupd. One bottleneck is the slow compression of pack-os-core-from-0.tar with "bsdtar -J". It's single-CPU and fully occupies one CPU for a minute or more.

Given that the file is never actually getting published and (if at all) only used inside the same machine, would it make sense to make the compression level configurable, not just for this file but everywhere? Then unit tests that just do basic sanity testing and don't care about compression rates can be sped up by using a faster compression or even no compression at all.

@bryteise
Copy link
Member

I know there was some push to be able to skip the compression step for testing. I'm not sure what has become of that though.

@phmccarty
Copy link
Contributor

phmccarty commented Sep 21, 2017

@bryteise Yes, there was some discussion recently about skipping compression steps entirely. I would also be in favor of making compression levels configurable, but the fact that swupd-server will try gzip/bzip2/xz and choose between the three, configurable levels for all supported compression types would be needed.

@pohly
Copy link
Contributor Author

pohly commented Oct 5, 2017

Depending on the test, creating the pack-os-core-from-0.tar can be skipped entirely because it is only needed for installing from scratch. I'll add that to meta-swupd.

But in general the feature request still stands.

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

No branches or pull requests

3 participants