[Qa-jenkins-dev] 'ar' not available in path. Falling back to binary comparison.

Holger Levsen holger at layer-acht.org
Thu Oct 15 15:06:08 UTC 2015


Hi,

On Donnerstag, 15. Oktober 2015, Mattia Rizzolo wrote:
> On Thu, Oct 15, 2015 at 08:46:36AM +0200, Holger Levsen wrote:
> > > Yes, it's true new packages are scheduled quite often, but manually
> > > scheduled packages have a huge preferences over the once automatically
> > > scheduled.
> > 
> > not a huge preference: packages with the oldest "scheduled date" are top
> > in the queue to be tested. packages scheduled manually now are scheduled
> > at this time (or maybe 6h earlier, would need to check), while
> > automatically scheduled new versions are scheduled "now" and old,
> > already tested packages are scheduled 6h in the future.
> 
> No:

thanks for correcting me!
 
> # these packages are manually scheduled, so should have high priority,
> # so schedule them in the past, so they are picked earlier :)
> # the current date is subtracted twice, so it sorts before early scheduling
> # schedule on the full hour so we can recognize them easily
> epoch = int(time.time())
> yesterday = epoch - 60*60*24
> now = datetime.now()
> days = int(now.strftime('%j'))*2
> hours = int(now.strftime('%H'))*2
> minutes = int(now.strftime('%M'))
> time_delta = timedelta(days=days, hours=hours, minutes=minutes)
> date = (now - time_delta).strftime('%Y-%m-%d %H:%M')
> log.debug('date_scheduled = ' + date + ' time_delta = ' + str(time_delta))

so it would be trivial to set "time_delta" to 0 if the number of packages to 
be scheduled is bigger than, say, 50. should we do that?
 

cheers,
	Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/qa-jenkins-dev/attachments/20151015/94272c9b/attachment.sig>


More information about the Qa-jenkins-dev mailing list