-
Notifications
You must be signed in to change notification settings - Fork 62
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
rpmbuilds: dynamically specify tmp_fs size #3408
Conversation
a9e931f
to
be206aa
Compare
be206aa
to
7b54bab
Compare
"deployed" on dev and works powerful: normal: powerful builders have 320GB volume (304 swap). (how do I confirm the max_fs size of 280gb?) |
LGTM. The only thing worth pointing out is the hardcoded volume size numbers but I think it's fine. |
self.tags = task.get("tags", []) | ||
self.max_fs_size = "140g" | ||
if "on_demand_powerful" in self.tags: | ||
self.max_fs_size = "280g" |
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.
I'm not against having (some) default, but in 99% this is deployment-specific info. And 140G is typically quite too much for local reproducibility (the user tries to run the copr-rpmbuild locally to reproduce a build failure, e.g.).
On my system I run: mount | grep mock
I believe the |
Not needed right now IMVHO, or has s390x support been requested? |
7b54bab
to
befd48a
Compare
this needs to be done for every arch that has |
Not really, we can have different configurations for different architectures; but it seems the original requestor wanted to have support for all the architectures. |
Please provide the configuration file as ---
# Configure special mock configuration snippets per given set of tags.
#tags_to_mock_snippets:
# - tags:
# - on_demand_powerful
# - arch_x86_64
# snippet: |
# config_opts['plugin_conf']['tmpfs_opts']['max_fs_size'] = '140g' |
b45b43a
to
34455a8
Compare
2d5ca8a
to
e07b957
Compare
3d2e928
to
48fd69e
Compare
48fd69e
to
ffa70c7
Compare
This is in a good shape, thank you for the update! Two small things that would make it perfect :) but basically good to go. |
ffa70c7
to
d555403
Compare
d555403
to
c52dc98
Compare
c52dc98
to
e869d2a
Compare
This allows us to specify tpm fs size to rpmbuild in order to be able to automatically generate its size for performance builders. See fedora-copr#3268
e869d2a
to
fb5ff90
Compare
Fun -> I thought we had broken Fedora Copr! But the testsuite hangs on |
This allows us to specify tpm fs size to rpmbuild in order to be able to
automatically generate its size for performance builders.
before merge (please review):
Fixes #3268