Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: Eric BENARD <ebenard@free.fr>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: SRCPV / prserv problem
Date: Wed, 8 Aug 2018 18:27:10 +0200	[thread overview]
Message-ID: <20180808162710.GA1418@jama> (raw)
In-Reply-To: <CABS_+k8mSL+Cnzz0jK=xovQHt_J_HL1m0Rhn6SD+y4FArzApEQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]

On Wed, Aug 08, 2018 at 05:34:51PM +0200, Eric BENARD wrote:
> Hi,
> 
> I have a strange issue with a recipe fetching from git for which I fix the
> HASH in a conf file :
> I'm using PRSERV_HOST = "localhost:0"
> The recipe has PV = "gitr${SRCPV}" so I expect the package numbering to be
> handled by the prserv.
> 
> If I add a SRCREV_pn-mysw = "1ad58b2488ce91ce4d0c4aae4189108b0281aae6", I
> see in buildhistory :
> PV = gitrAUTOINC+1ad58b2488
> PKGV = gitr0+1ad58b2488
> 
> If I then fix the hash to 6bd8208a0754a23b5437cb34a361fc22d7dc0c3b, I see
> in buildhistory :
> -PKGV = gitr0+1ad58b2488
> +PKGV = gitr0+6bd8208a07
> +PKGR = r0.0
> which is expected

Is this really expected? It should get gitr1 here.

> But then if I come back to the hash
> 1ad58b2488ce91ce4d0c4aae4189108b0281aae6, I see :
> -PKGV = gitr2+6bd8208a07
> -PKGR = r0.1
> +PKGV = gitr0+1ad58b2488
> and thus I have the package numbering going backward with a QA error.

This is expected, when it gets 1ad58b2488 which is already recorded in
the database it will return the old number.

That's for multiple builders using different SRCREV and the same PRSERV,
they should get stable AUTOINC numbers, not incrementing both of these
every time they ask PRSERV.

> Do you have any idea on what is causing this behavior and where to dig to
> fix this ?

Checking the sqlite database for recorded AUTOINC numbers and hashes is
usually useful starting point.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]

      reply	other threads:[~2018-08-08 16:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-08 15:34 SRCPV / prserv problem Eric BENARD
2018-08-08 16:27 ` Martin Jansa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180808162710.GA1418@jama \
    --to=martin.jansa@gmail.com \
    --cc=ebenard@free.fr \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox