-
Notifications
You must be signed in to change notification settings - Fork 145
Better counting v2 #807
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
Closed
Closed
Better counting v2 #807
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Oct 3, 2019
2541dcb to
9ddaa52
Compare
eed25d5 to
4cf8eef
Compare
dmnks
added a commit
to dmnks/dnf
that referenced
this pull request
Oct 7, 2019
This reflects the following changes in libdnf: rpm-software-management/libdnf#807
dmnks
added a commit
to dmnks/ci-dnf-stack
that referenced
this pull request
Oct 7, 2019
There's no need to call "makecache" beforehand anymore, see: rpm-software-management/libdnf#807
9abbe72 to
87d94f7
Compare
dd5d4db to
efc5694
Compare
|
There was an error while running a copr build: (0) You can re-trigger copr build by adding a comment ( |
11715f2 to
46bc0d0
Compare
|
📌 Commit 2e68870 has been approved by |
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
This commit decouples the "countme" logic from the implementation details of how librepo fetches files, metalinks in particular, to avoid accidental overcount. What we really need here is a way to address *individual* HTTP requests (wrapped by CURL handles). LrHandle just doesn't provide us with the necessary resolution to accomplish that. The reason is that librepo may end up producing multiple HTTP requests without us being able to control them, such as when it activates its own retry mechanism. Since we currently pass the final URL with the flag to our LrHandle, the flag would also be repeated. That would fool the server into thinking it got multiple machines checking in, and skew the numbers. Simply put, in the interest of accuracy, undercount is better than overcount. To achieve that, we should just let librepo take care of the details of figuring out how to make the flag appear in one single HTTP request it makes with the given LrHandle. And that's exactly what the new LRO_ONETIMEFLAG feature is for, so let's use it! In this commit, we also move addCountmeFlag() to the top-level lrHandlePerform() method so that it works whenever fetching metadata, not just when running isMetalinkInSync(). Note: LRO_ONETIMEFLAG also applies to LRO_MIRRORLISTURL if configured. Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
This commit enables the countme feature for the PackageKit/microdnf code path. Note that this will no longer be needed once we finish the libdnf consolidation process and both PK/microdnf adopt the new libdnf API. Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
Don't rely on the existence of any keys in the passed OS data when constructing a User-Agent. This involves a bit of refactoring. Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
In case of the User-Agent, there's no point in interrupting the program flow if no os-release data is available or is invalid (in which case we return the fallback value). Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
This makes sure both PackageKit and microdnf send the new User-Agent string. Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
The choice of individual buckets is based on the following suggestion by Matthew Miller: https://bugzilla.redhat.com/show_bug.cgi?id=1672504#c13 Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
There's a concern that the version number leaks too much information about the system "patch-level", and is not useful for anything really, so let's just remove it. Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
Closes: #807 Approved by: jrohel
rh-atomic-bot
pushed a commit
that referenced
this pull request
Oct 17, 2019
Closes: #807 Approved by: jrohel
|
☀️ Test successful - status-papr |
lukash
pushed a commit
to rpm-software-management/ci-dnf-stack
that referenced
this pull request
Oct 18, 2019
There's no need to call "makecache" beforehand anymore, see: rpm-software-management/libdnf#807
lukash
pushed a commit
to rpm-software-management/ci-dnf-stack
that referenced
this pull request
Oct 18, 2019
The version is no longer included in the User-Agent field, see: rpm-software-management/libdnf#807 Also, we can now remove the @xfail tags.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog:
Depends on: rpm-software-management/librepo#171
Covered by: rpm-software-management/ci-dnf-stack#640