-
Notifications
You must be signed in to change notification settings - Fork 93
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
Option "disable_multithreading", repo::RepoSack
ctors and repo::Repo::fetch_metadata
method private, fix/adjust unit tests
#273
Conversation
repo->load(); | ||
libdnf::repo::RepoQuery repos(base); | ||
repos.filter_id(repoid); | ||
repo_sack->update_and_load_repos(repos); |
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 have a bad feeling about possibility to load subset of repositories using update_and_load_repos(repos)
. This is not a problem of the PR but our API. The reason is modularity, where it is strongly recommended to have one point of application of modular filtering. The PR is going into right directions.
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.
LGTM
@jrohel May I ask you for checking unit tests, they are failing. |
8f2a738
to
353f676
Compare
@j-mracek Yes. Unit tests failed. But I hope the problem is not caused by this PR.
I think the problem is the persmission change in podman (missing CAP_SYS_CHROOT) and librpm fails during chroot. This PR is a patch for CI tests: rpm-software-management/ci-dnf-stack#1220 |
fcc85a3
to
a2b9c2b
Compare
bb204ba
to
07c6b16
Compare
07c6b16
to
7ce73f6
Compare
It will be used to disable multithreading in libdnf.
7ce73f6
to
3e37e98
Compare
repo::RepoSack
ctors and repo::Repo::fetch_metadata
method private, fix and adjust unit testsrepo::RepoSack
ctors and repo::Repo::fetch_metadata
method private, fix/adjust unit tests
Single-threaded mode is used when multi-threaded mode is disabled (configuration option "disable_multithreading").
Perl test created a new repo_sack instead of getting the one from base. So for example repo::RepoQuery wouldn't work.
3e37e98
to
6145ecc
Compare
LGTM |
RepoSack::update_and_load_repos
: Added single-threaded mode (used when multi-threaded mode is disabledby configuration option "disable_multithreading".
repo::RepoSack
ctors andrepo::Repo::fetch_metadata
method private.RepoSack::update_and_load_repos
method instead ofrepo::Repo::fetch_metadata
andrepo::Repo::load