RE: [yocto-patches] [AUH] [PATCH v2 1/2] upgrade-helper: add state module and --incremental mode
Daniel Turull <[email protected]>
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <DU0PR07MB10740C0366249F0E053B41F688A112@DU0PR07MB10740.eurprd07.prod.outlook.com> |
> -----Original Message----- > From: Alexander Kanavin <[email protected]> > Sent: Friday, 5 June 2026 12:23 > To: [email protected] > Cc: Daniel Turull <[email protected]> > Subject: Re: [yocto-patches] [AUH] [PATCH v2 1/2] upgrade-helper: add state > module and --incremental mode > > On Thu, 4 Jun 2026 at 13:40, Alexander Kanavin via > lists.yoctoproject.org <[email protected]> > wrote: > > So I'd suggest: > > > > retry_interval is renamed to retry_same_version_interval > > retry_any_version_interval setting is introduced > > retry_any_version_recipes setting is introduced, and is a list of recipes > > _prune() is adjusted to first check if a recipe is in that list, and > > if so, it's checked against retry_any_version_interval, and not any > > other intervals, so that it's guaranteed to be skipped until that > > interval elapses (and skip_reason() should consider that similarly) > > > > Otherwise, I think this is more or less ready! > > Actually not quite. I'd really like to avoid duplicating timestamp > logic in skip_reason and prune(), and only implement it once, so > perhaps the way to do it is to have a helper function that returns a > dict: > > {'verdict': True, 'reason' : "explanation here"} > > Then function callers can pick and use the entries they need. > Ok. I'll made both changes in v3. > Alex