Bug 1045678 - reduce metadata expiry time for rawhide
Summary: reduce metadata expiry time for rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-release
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dennis Gilmore
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-21 06:04 UTC by Rahul Sundaram
Modified: 2014-01-14 03:45 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-14 03:45:16 UTC
Type: Bug


Attachments (Terms of Use)
Here's a patch. (851 bytes, patch)
2014-01-06 17:49 UTC, Adam Williamson
no flags Details | Diff

Description Rahul Sundaram 2013-12-21 06:04:13 UTC
Description of problem:

The expiry time is good enough for regular releases especially now that GNOME Software will only download regular updates weekly but too long for Rawhide.  Please reduce it by default. Thanks

Comment 1 Adam Williamson 2013-12-24 18:00:17 UTC
+1, since switching to DNF on Rawhide I've had to run 'dnf clean expire-cache' every time I wanted to get any updates, which kind of defeats the point.

Comment 2 Ales Kozumplik 2014-01-02 08:08:28 UTC
Hey guys, you are powerusers who need the updates very often. Few of the regular users do. In DNF we depart from the traditional direction of most Fedora projects (making the developer community happy) towards making the users happy.

Closing this as WONTFIX. Note you can tweak the config files to obtain the desired expiry times.

Comment 3 Panu Matilainen 2014-01-02 08:17:38 UTC
Me thinks the rawhide repo config (in fedora-release-rawhide) should set metadata_expire to an appropriate value instead of relying whatever the package manager default happens to be. Dnf's 48h default is indeed much too long for rawhide, but also yum's 6h default is unnecessarily short for rawhide as well.

Comment 4 Rahul Sundaram 2014-01-02 16:58:28 UTC
This has nothing to do with the supposed dichotomy between users and power users.  Regular users don't use Rawhide anyway.  I don't understand why the default in Dnf can't be set to a more appropriate value instead of overriding it via feodra-release-rawhide but anyway, I am reassigning this bug to fedora-release.

Comment 5 Adam Williamson 2014-01-02 18:20:46 UTC
Rahul: i think the suggestion to do it in the repo definition makes sense, actually, logically speaking. Our contention is 'expiry time should be short for Rawhide'. The package manager only implements a universal default expiry time, which inevitably can't be perfect for all repos. So indeed if we think the expiry time for a specific repo which we control ought to be a specific value, we should be stating that in fedora-release, not making it dnf's universal default for repos which don't specify one.

Comment 6 Rahul Sundaram 2014-01-02 18:29:44 UTC
Sure.  I don't particularly care how it is done as long as the values are more reasonable for Rawhide users.

Comment 7 Ales Kozumplik 2014-01-02 20:57:43 UTC
This is unreasonable and will penalize people who, unlike Adam, do not need to do daily updates of the hottest&latest packages. I advise the releng team to refuse this change (which can easily slip into f21 after branching).

Comment 8 Rahul Sundaram 2014-01-02 21:00:01 UTC
That is silly.  If you are running rawhide, you want the latest packages.  Not two day old ones.

Comment 9 Adam Williamson 2014-01-02 21:08:49 UTC
It can't 'easily slip into f21 after branching', with NoFrozenRawhide. Rawhide is always Rawhide, and Rawhide's .repo files are always Rawhide's .repo files. They're in fedora-release-rawhide and fedora-release is not derived from it.

Comment 10 Adam Williamson 2014-01-02 21:09:39 UTC
https://fedoraproject.org/wiki/Releases/Rawhide :

"As a rawhide consumer, you should:

    Be willing to update on an almost daily basis. Rawhide gets hundreds of updates a day, and applying those updates on a regular basis allows you to more easily troubleshoot issues."

Comment 11 Adam Williamson 2014-01-06 17:49:55 UTC
Created attachment 846220 [details]
Here's a patch.


Note You need to log in before you can comment on or make changes to this bug.