All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Toaster integration with Jenkins
@ 2015-03-30 17:46 Barros Pena, Belen
  0 siblings, 0 replies; 7+ messages in thread
From: Barros Pena, Belen @ 2015-03-30 17:46 UTC (permalink / raw)
  To: toaster

We are considering working on integrating Toaster with Jenkins as part of
the next Yocto Project release. Our thinking so far is collected in this
Bugzilla feature:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=7527

Any thoughts? Are we missing something? Are we going about it in a
completely wrong way?

Let us know.

Thanks!

Belén




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] Toaster integration with Jenkins
  2015-04-01  8:03     ` Anders Darander
@ 2015-04-01 16:57       ` Barros Pena, Belen
  0 siblings, 0 replies; 7+ messages in thread
From: Barros Pena, Belen @ 2015-04-01 16:57 UTC (permalink / raw)
  To: Anders Darander; +Cc: yocto



On 01/04/2015 09:03, "Anders Darander" <anders@chargestorm.se> wrote:

>Hi,
>
>* Barros Pena, Belen <belen.barros.pena@intel.com> [150331 18:00]:
>> On 31/03/2015 10:39, "Anders Darander" <anders@chargestorm.se> wrote:
>
>> >I don't know if this is the right thread but a couple of other things
>> >that we really would need in order to fully be able to utilize this.
>
>> >1) Some way of getting the built git branch shown in toaster. (As we
>> >discussed on YPDD in Düsseldorf together with Axis). We're building
>> >master and release branches for the same machine and image.
>
>> If you mean the name of the branch, Toaster currently shows this in
>> several places. One of them is the configuration information for a
>> finished build, which displays a list of the layers used, and for each
>>of
>> them the branch name and the commit used. I've uploaded an screenshot
>>here
>
>> http://i.imgur.com/GPDwCh0.png
>
>Good to know.  Just one question, is it possible to get the branch
>information for one layer on the "All build" page?

Not right now, I'm afraid. Having said that, it is probably fairly easy to
add that information to the table.
 
> To avoid having to go
>into each build to actually see what kind of build that was.
>
>For instance, we're having a master layer, that checks out other layers
>as submodules.
> Being able to direclty see which branch of the master all
>builds originate from would be extremely useful (or another option would
>be if the Jenkins job name could be shown, as that would provide more or
>less the same information for us).

This we could probably do, since builds connected to a Jenkins instance
will need to be identifiable somehow in Toaster.

>
>Hm, thinking more about that, being able to store the Jenkins job name
>and build number in the toaster database would likely be really useful.

Again, I'd say this is possible.

>That would allow Toaster to link back to the actual job and build in
>Jenkins. Those could be retrieved from the environmant variables
>BUILD_NUMBER and JOB_NAME in the Jenkins build.

This sounds like a handy feature.

>
>> >2) In the proposed bug, would toaser be able to recieve and handle
>> >toaster/build logs from different YP releases?
>
>> Yes, but you would need to create a Toaster project for each release.
>> Currently, for each Toaster project, you must select the YP release you
>> want to use. A project can only use a single release at any given time.
>
>I've just spent a couple of minutes looking for this (so excuse me if
>it's obvious).
>
>A Toaster project in this case, would that equal to different toaster
>instances and databases, or would they still be able to be shown
>together in the same "All builds" page?

Sorry, I should have explained better: in the same Toaster instance (and
database). Each Toaster instance can have n projects. Each project is
associated to a single release. So you can build on different releases
within the same Toaster instance by using different projects, and access
all the information through the 'all builds' page.

> If it's not the latter, it would
>be a nice feature for some upcoming release. (Though, it'll obviously
>make the implementation slightly harder as support for older YP releases
>would need to be kept).
>
>Cheers,
>Anders
>
>-- 
>Anders Darander
>ChargeStorm AB / eStorm AB



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] Toaster integration with Jenkins
  2015-03-31 15:59   ` Barros Pena, Belen
@ 2015-04-01  8:03     ` Anders Darander
  2015-04-01 16:57       ` Barros Pena, Belen
  0 siblings, 1 reply; 7+ messages in thread
From: Anders Darander @ 2015-04-01  8:03 UTC (permalink / raw)
  To: Barros Pena, Belen; +Cc: yocto

Hi,

* Barros Pena, Belen <belen.barros.pena@intel.com> [150331 18:00]:
> On 31/03/2015 10:39, "Anders Darander" <anders@chargestorm.se> wrote:

> >I don't know if this is the right thread but a couple of other things
> >that we really would need in order to fully be able to utilize this.

> >1) Some way of getting the built git branch shown in toaster. (As we
> >discussed on YPDD in Düsseldorf together with Axis). We're building
> >master and release branches for the same machine and image.

> If you mean the name of the branch, Toaster currently shows this in
> several places. One of them is the configuration information for a
> finished build, which displays a list of the layers used, and for each of
> them the branch name and the commit used. I've uploaded an screenshot here

> http://i.imgur.com/GPDwCh0.png

Good to know.  Just one question, is it possible to get the branch
information for one layer on the "All build" page? To avoid having to go
into each build to actually see what kind of build that was. 

For instance, we're having a master layer, that checks out other layers
as submodules. Being able to direclty see which branch of the master all
builds originate from would be extremely useful (or another option would
be if the Jenkins job name could be shown, as that would provide more or
less the same information for us).

Hm, thinking more about that, being able to store the Jenkins job name
and build number in the toaster database would likely be really usefull.
That would allow Toaster to link back to the actual job and build in
Jenkins. Those could be retrieved from the environmant variables
BUILD_NUMBER and JOB_NAME in the Jenkins build.

> >2) In the proposed bug, would toaser be able to recieve and handle
> >toaster/build logs from different YP releases?

> Yes, but you would need to create a Toaster project for each release.
> Currently, for each Toaster project, you must select the YP release you
> want to use. A project can only use a single release at any given time.

I've just spent a couple of minutes looking for this (so excuse me if
it's obvious).

A Toaster project in this case, would that equal to different toaster
instances and databases, or would they still be able to be shown
together in the same "All builds" page? If it's not the latter, it would
be a nice feature for some upcoming release. (Though, it'll obviously
make the implementation slightly harder as support for older YP releases
would need to be kept).

Cheers,
Anders

-- 
Anders Darander
ChargeStorm AB / eStorm AB


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] Toaster integration with Jenkins
  2015-03-31  9:39 ` Anders Darander
@ 2015-03-31 15:59   ` Barros Pena, Belen
  2015-04-01  8:03     ` Anders Darander
  0 siblings, 1 reply; 7+ messages in thread
From: Barros Pena, Belen @ 2015-03-31 15:59 UTC (permalink / raw)
  To: Anders Darander; +Cc: yocto

Hi Anders,

Thanks for the comments. Some answers inline.

Cheers

Belén

On 31/03/2015 10:39, "Anders Darander" <anders@chargestorm.se> wrote:

>Hi,
>
>* Barros Pena, Belen <belen.barros.pena@intel.com> [150330 19:48]:
>> We are considering working on integrating Toaster with Jenkins as part
>>of
>> the next Yocto Project release. Our thinking so far is collected in this
>> Bugzilla feature:
>
>> https://bugzilla.yoctoproject.org/show_bug.cgi?id=7527
>
>Ah, sounds really interesting. I've recently been thinking about how I
>should be able to benefit from toaster, as we're running out automated
>builds using Jenkins.
>
>> Any thoughts? Are we missing something? Are we going about it in a
>> completely wrong way?
>
>Sounds quite good to me.
>
>If there's some project configuration that needs to be done in Toaster,
>I'd appreciate if as much as possible could be retrieved from our
>current Jenkins setup (i.e. exported from the Jenkins plugin to
>Toaster). (Not least as we're running a couple of scripts to source the
>environment and handling some extra configurations needed; thus I'd
>assume we couldn't just take the freestyle Jenkins project talked about
>in b) of Alexandru 's first comment in #YOCTO-7527.

I will add this to the Bugzilla entry, so that we keep track of all
possible issues. 

>
>I don't know if this is the right thread but a couple of other things
>that we really would need in order to fully be able to utilize this.
>
>1) Some way of getting the built git branch shown in toaster. (As we
>discussed on YPDD in Düsseldorf together with Axis). We're building
>master and release branches for the same machine and image.

If you mean the name of the branch, Toaster currently shows this in
several places. One of them is the configuration information for a
finished build, which displays a list of the layers used, and for each of
them the branch name and the commit used. I've uploaded an screenshot here

http://i.imgur.com/GPDwCh0.png

>
>2) In the proposed bug, would toaser be able to recieve and handle
>toaster/build logs from different YP releases?

Yes, but you would need to create a Toaster project for each release.
Currently, for each Toaster project, you must select the YP release you
want to use. A project can only use a single release at any given time.


>Normally we've at least
>one active release branch, and possibly a master (or master-next) branch
>that's going to the next YP release. If possible, I'd like to visualize
>all this in the same Toaster instance.
>
>Apart from that, I think this is really interesting!
>
>Cheers,
>Anders
>
>-- 
>Anders Darander
>ChargeStorm AB / eStorm AB



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] Toaster integration with Jenkins
  2015-03-30 17:47 Barros Pena, Belen
  2015-03-30 18:55 ` Victor Rodriguez
@ 2015-03-31  9:39 ` Anders Darander
  2015-03-31 15:59   ` Barros Pena, Belen
  1 sibling, 1 reply; 7+ messages in thread
From: Anders Darander @ 2015-03-31  9:39 UTC (permalink / raw)
  To: Barros Pena, Belen; +Cc: yocto

Hi,

* Barros Pena, Belen <belen.barros.pena@intel.com> [150330 19:48]:
> We are considering working on integrating Toaster with Jenkins as part of
> the next Yocto Project release. Our thinking so far is collected in this
> Bugzilla feature:

> https://bugzilla.yoctoproject.org/show_bug.cgi?id=7527

Ah, sounds really interesting. I've recently been thinking about how I
should be able to benefit from toaster, as we're running out automated
builds using Jenkins.

> Any thoughts? Are we missing something? Are we going about it in a
> completely wrong way?

Sounds quite good to me.

If there's some project configuration that needs to be done in Toaster,
I'd appreciate if as much as possible could be retrieved from our
current Jenkins setup (i.e. exported from the Jenkins plugin to
Toaster). (Not least as we're running a couple of scripts to source the
environment and handling some extra configurations needed; thus I'd
assume we couldn't just take the freestyle Jenkins project talked about
in b) of Alexandru 's first comment in #YOCTO-7527.

I don't know if this is the right thread but a couple of other things
that we really would need in order to fully be able to utilize this.

1) Some way of getting the built git branch shown in toaster. (As we
discussed on YPDD in Düsseldorf together with Axis). We're building
master and release branches for the same machine and image.

2) In the proposed bug, would toaser be able to recieve and handle
toaster/build logs from different YP releases? Normally we've at least
one active release branch, and possibly a master (or master-next) branch
that's going to the next YP release. If possible, I'd like to visualize
all this in the same Toaster instance.

Apart from that, I think this is really interesting!

Cheers,
Anders

-- 
Anders Darander
ChargeStorm AB / eStorm AB


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] Toaster integration with Jenkins
  2015-03-30 17:47 Barros Pena, Belen
@ 2015-03-30 18:55 ` Victor Rodriguez
  2015-03-31  9:39 ` Anders Darander
  1 sibling, 0 replies; 7+ messages in thread
From: Victor Rodriguez @ 2015-03-30 18:55 UTC (permalink / raw)
  To: Barros Pena, Belen; +Cc: yocto

On Mon, Mar 30, 2015 at 11:47 AM, Barros Pena, Belen
<belen.barros.pena@intel.com> wrote:
> We are considering working on integrating Toaster with Jenkins as part of
> the next Yocto Project release. Our thinking so far is collected in this
> Bugzilla feature:
>
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=7527
>
> Any thoughts? Are we missing something? Are we going about it in a
> completely wrong way?


I think is a great idea and will be really useful for some current
infrastructures

Best regards

Victor Rodriguez

> Let us know.
>
> Thanks!
>
> Belén
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [RFC] Toaster integration with Jenkins
@ 2015-03-30 17:47 Barros Pena, Belen
  2015-03-30 18:55 ` Victor Rodriguez
  2015-03-31  9:39 ` Anders Darander
  0 siblings, 2 replies; 7+ messages in thread
From: Barros Pena, Belen @ 2015-03-30 17:47 UTC (permalink / raw)
  To: yocto

We are considering working on integrating Toaster with Jenkins as part of
the next Yocto Project release. Our thinking so far is collected in this
Bugzilla feature:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=7527

Any thoughts? Are we missing something? Are we going about it in a
completely wrong way?

Let us know.

Thanks!

Belén




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-01 16:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-30 17:46 [RFC] Toaster integration with Jenkins Barros Pena, Belen
2015-03-30 17:47 Barros Pena, Belen
2015-03-30 18:55 ` Victor Rodriguez
2015-03-31  9:39 ` Anders Darander
2015-03-31 15:59   ` Barros Pena, Belen
2015-04-01  8:03     ` Anders Darander
2015-04-01 16:57       ` Barros Pena, Belen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.