]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
10 years agotoaster: projectapp Implement machine select command
Michael Wood [Tue, 21 Apr 2015 10:38:03 +0000 (11:38 +0100)] 
toaster: projectapp Implement machine select command

Use the project page to select the machine rather than setting it and
then redirecting to the project page. This will also avoid having to have a
special handler in the machines page it's self.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: Move project context variables to common scope
Michael Wood [Fri, 10 Apr 2015 17:15:03 +0000 (18:15 +0100)] 
toaster: Move project context variables to common scope

We have a bunch of context data which are used in multiple pages so it
makes more sense to have this in a single place libtoaster.ctx that's
accessible from each page rather than request it from every page.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoasterui: close build on BuildCompleted event
Alexandru DAMIAN [Fri, 1 May 2015 15:42:39 +0000 (16:42 +0100)] 
toasterui: close build on BuildCompleted event

Moving the code to close the build and instantiate a fresh
buildinfohelper object to BuildCompleted event, as the
CommandCompleted/Failed/Exit events come in too early.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: proper exit code on toaster errors
Alexandru DAMIAN [Fri, 1 May 2015 15:20:33 +0000 (16:20 +0100)] 
toasterui: proper exit code on toaster errors

This patch modifies the toasterui to properly return the exit
code based on the errors found in the toaster itself.

The upload event file API call will not delete event logs for which
toasterui showed an error. This will facilitate debugging.

Minor enhancement in the buildinfohelper to reduce the number
of lookups on unknown layer objects (prevented testing of the patch).

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agobitbake: reset build mtime cache before the build
Ed Bartosh [Tue, 21 Apr 2015 15:48:49 +0000 (18:48 +0300)] 
bitbake: reset build mtime cache before the build

Introduced build mtime cache structure. Reset it before the build
to prevent bitbake from crashing when build/tmp/stamps hierarchy
is removed.

[YOCTO: #7562]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: use sys.exit to simplify the code
Ed Bartosh [Tue, 28 Apr 2015 12:52:18 +0000 (15:52 +0300)] 
bitbake: use sys.exit to simplify the code

Used sys.exit instead of assigning exit code to
variable. This way it's more clear when bitbake
exists and which exit code is used.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: Check if bitbake versions match
Ed Bartosh [Tue, 28 Apr 2015 12:15:57 +0000 (15:15 +0300)] 
bitbake: Check if bitbake versions match

Bitbake program and core versions must match.

Moved __version__ from main.py back to bin/bitbake.
Implemented check for version match in bin/bitbake.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
tbs

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake: Handle BBMainException
Ed Bartosh [Tue, 28 Apr 2015 11:27:34 +0000 (14:27 +0300)] 
bitbake: Handle BBMainException

Some error messages were lost because BBMainException was
inherited from bb.BBHandledException. When bb.BBHandledException
is processed error messages are not printed as they suppose to
be printed before raising this exception.

Stopped to inherit BBMainException from bb.BBHandledException.
Handled BBMainException in bin/bitbake and printed error message
to the stderr.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/bb/utils: add safeguard against recursively deleting things we shouldn't
Paul Eggleton [Fri, 17 Apr 2015 14:26:59 +0000 (15:26 +0100)] 
lib/bb/utils: add safeguard against recursively deleting things we shouldn't

Add some very basic safeguard against recursively deleting paths such
as / and /home in the event of bugs or user mistakes.

Addresses [YOCTO #7620].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocookerdata: Allow ~ in bblayers
Ed Bartosh [Sat, 18 Apr 2015 15:09:46 +0000 (18:09 +0300)] 
cookerdata: Allow ~ in bblayers

Implemented processing of ~ in bblayer's paths if HOME
environment variable is approved.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake-user-manual: Cleaned up parallelism note and formatted user input
Scott Rifenbark [Thu, 16 Apr 2015 20:15:29 +0000 (13:15 -0700)] 
bitbake-user-manual: Cleaned up parallelism note and formatted user input

I updated the note in the second chapter that discusses the role for
BB_NUMBER_THREADS.  The updates make it a bit clearer.

Also scrubbed the manual for instances of user-supplied values to check
how they are being formatted.  I fixed the formatting to use the
<replaceable></replaceable> tags so they are in italics.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake-diffsigs: consider the situation where sigdata and siginfo files having the...
Chen Qi [Wed, 11 Mar 2015 03:21:06 +0000 (11:21 +0800)] 
bitbake-diffsigs: consider the situation where sigdata and siginfo files having the same hash values

For now, `bitbake-diffsigs -t <recipe> <task>' doesn't work. It always outputs
nothing.

The problem is that bitbake-diffsigs are comparing sigdata and siginfo files
that have the same hash value. This is not what we want. These two files are
actually duplicates considering the purpose of bitbake-diffsigs. So we need
to remove one of them so that bitbake-diffsigs could actually compare the
correct signature files.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: date range filter for project builds page
David Reyna [Thu, 16 Apr 2015 03:37:38 +0000 (20:37 -0700)] 
toaster: date range filter for project builds page

Port date range filter initialization code to the project builds page.

[YOCTO #7578]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
10 years agotoaster: recipe path broken in recipe detail page
David Reyna [Mon, 30 Mar 2015 14:12:01 +0000 (07:12 -0700)] 
toaster: recipe path broken in recipe detail page

The recipe paths in managed mode are not processed correctly. They need
any prefix tags removed, and then any build path prefix removed only if
present.

[YOCTO #7523]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
10 years agotoasterui: remove 'targets' from project notification
Belen Barros Pena [Tue, 31 Mar 2015 14:37:48 +0000 (15:37 +0100)] 
toasterui: remove 'targets' from project notification

Remove the last remnant of the "targets" wording, which was
lurking in the notification we show you when you create
a project.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoaster: searching all projects table resets page count
David Reyna [Tue, 31 Mar 2015 01:26:19 +0000 (18:26 -0700)] 
toaster: searching all projects table resets page count

Add missing '_save_parameters_cookies' to preserve page count.

[YOCTO #7483]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
10 years agotoaster: add layer source in admin throws an error
David Reyna [Tue, 31 Mar 2015 08:58:11 +0000 (01:58 -0700)] 
toaster: add layer source in admin throws an error

Preset uninitialized object members to bootstrap new layer source creation.

[YOCTO #7437]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
10 years agotoasterui: correct terminology in landing page
Belen Barros Pena [Tue, 31 Mar 2015 14:59:17 +0000 (15:59 +0100)] 
toasterui: correct terminology in landing page

Change the introductory description of Toaster
we provide on first use, to make sure it mentions
all the bits that make up the build system, and
not just BitBake.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoaster: BuildButton target input allow building targets with tasks
Michael Wood [Fri, 27 Mar 2015 15:49:54 +0000 (15:49 +0000)] 
toaster: BuildButton target input allow building targets with tasks

Allow the input for targets to contain tasks in the form target:task

[YOCTO #7501]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: base.js minor jshint fixes
Michael Wood [Fri, 27 Mar 2015 15:49:55 +0000 (15:49 +0000)] 
toaster: base.js minor jshint fixes

Fixing errors identified by jshint, some missing semicolons and
preference for === operator. Also pass the urldata in libtoaster as an
object rather than constructing a query string.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agofetch/git: Remove a possible trailing '/' in subpath
Anders Darander [Fri, 17 Apr 2015 05:49:42 +0000 (07:49 +0200)] 
fetch/git: Remove a possible trailing '/' in subpath

If the subpath parameter to the git fetcher ends with a trailing '/',
 bb.utils.prunedir() will be called on '/'...

Fixes [YOCTO #7620].

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoastergui: minor spelling fixes
Andre McCurdy [Thu, 16 Apr 2015 23:03:50 +0000 (16:03 -0700)] 
toastergui: minor spelling fixes

  RRECOMENDS -> RRECOMMENDS
  TRECOMENDS -> TRECOMMENDS

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake-layers: ensure non-extended recipe name is preferred
Richard Purdie [Tue, 7 Apr 2015 13:14:04 +0000 (14:14 +0100)] 
bitbake-layers: ensure non-extended recipe name is preferred

In show-recipes and show-overlayed, we only list one variant of each
recipe where multiple exist, therefore we should show the main one (e.g.
in OpenEmbedded, we now show openssl and not nativesdk-openssl which
would otherwise sort first.)

Fixes [YOCTO #7514].

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agorunqueue: pass finalized metadata to scenequeue callbacks
Christopher Larson [Fri, 3 Apr 2015 22:04:10 +0000 (15:04 -0700)] 
runqueue: pass finalized metadata to scenequeue callbacks

This ensures that _append, _prepend, overrides, etc are functional when used
on sstate variables (e.g. SSTATE_DIR).

[YOCTO #7564]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobin/image-writer: Add ext4 as a deployable image type
Richard Purdie [Tue, 31 Mar 2015 21:35:27 +0000 (22:35 +0100)] 
bin/image-writer: Add ext4 as a deployable image type

This is particularly problematic since qemu images switched to ext4 by
default and now cannot work properly with UIs like hob.

This patch adds in ext4 to the appropriate variable fixing this.

[YOCTO #7426]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocooker: Ensure bbappend files are processed in a determistic order
Richard Purdie [Mon, 30 Mar 2015 12:29:33 +0000 (13:29 +0100)] 
cooker: Ensure bbappend files are processed in a determistic order

self.appendlist is a dict and as such unordered. This can lead to cases
where appends with different names (e.g. x_%.bbappend vs. x_123.bbappend)
can be reordered in application which in turn reorders the variables
that those bbappend files might touch. Reorderd variables changes the sstate
cache signatures causing real world issues.

To avoid this, use a list for the append files instead.

This patch is conservative and just adds a new data structure alongside
the existing one and uses it to resolve the core issue. Later patches
(post release) can handle some of the wider but less problematic ones
(e.g. issues in bitbake-layers flatten).

[YOCTO #7511]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoRevert "toaster: machine not searchable in all builds/projects"
Alexandru DAMIAN [Tue, 31 Mar 2015 13:59:28 +0000 (14:59 +0100)] 
Revert "toaster: machine not searchable in all builds/projects"

This reverts commit 1a86ed8f95649c5f5a3a66984ce36978d93b0e01.

Bug [YOCTO #7334] was incompletly fixed, and the proper fix is
not straightfoward. Consequently we revert the partial fix, as
a incomplete fix is worse than no fix.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoastergui: add ext4 option for IMAGE_FSTYPES
Alexandru DAMIAN [Tue, 31 Mar 2015 12:57:40 +0000 (13:57 +0100)] 
toastergui: add ext4 option for IMAGE_FSTYPES

This patch adds "ext4" as a selectable option in IMAGE_FSTYPES,
to keep in sync with the OE-Core capabilities.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoasterui: rename 'targets' to 'recipes'
Belen Barros Pena [Thu, 26 Mar 2015 16:47:02 +0000 (16:47 +0000)] 
toasterui: rename 'targets' to 'recipes'

A recent round of informal user feedback has revealed
that the term 'target' is quite problematic. For
all the users we spoke to the word refers to the
target arch. In Toaster, it refers to the software
you build.

This patch replaces the word 'target' with 'recipe'
across the Toaster interface. This is by no means
self-explanatory, but at least it cannot be confused
with target hardware, and it is also consistent with
the terminology we use in the analysis portion of
the interface.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoastergui: prevent error on empty build list
Alexandru DAMIAN [Wed, 25 Mar 2015 13:34:27 +0000 (13:34 +0000)] 
toastergui: prevent error on empty build list

This patch prevents errors being thrown on date limit
computations if the build list is empty.

[YOCTO #7513]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoUpdate to version 1.27.0 post 1.26 release
Richard Purdie [Wed, 25 Mar 2015 12:49:39 +0000 (12:49 +0000)] 
Update to version 1.27.0 post 1.26 release

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoUpdate to version 1.26.0
Richard Purdie [Wed, 25 Mar 2015 12:49:06 +0000 (12:49 +0000)] 
Update to version 1.26.0

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoasterui: enable sanity checker
Alexandru DAMIAN [Thu, 19 Mar 2015 16:05:03 +0000 (16:05 +0000)] 
toasterui: enable sanity checker

Since toasterui acts as the user-facing UI, we need
to run sanity checks in order to let the GUI display proper
warnings and stop the build if something is wrong.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: most-build-targets bug fixes
Dave Lerner [Sat, 14 Mar 2015 14:00:15 +0000 (09:00 -0500)] 
toaster: most-build-targets bug fixes

Fixes for the following for the "Most built targets" section of the
project page:
1) limit the number of most built targets to 5,
2) order the list of most built targets by build count,
3) select only those builds that had build status of 'fail', 'success',
or a BuildRequest of 'failed',
4) if there are no layers in the project then (on refresh) all of the
checkboxes in the 'Most built targets' list are disabled.

Note that per agreement with UI designer, the only sort on the most
target list is build count as described in (3) above; secondary sorting
is random.

[YOCTO #7177]

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
10 years agotoaster: PACKAGE_CLASSES variable does not show current value when editing
David Reyna [Sun, 22 Mar 2015 08:40:14 +0000 (01:40 -0700)] 
toaster: PACKAGE_CLASSES variable does not show current value when editing

A typo in some element selectors caused the package_rpm setup to break.

[YOCTO #7448]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
10 years agotoasterui: small changes to empty states
Belen Barros Pena [Mon, 23 Mar 2015 17:15:01 +0000 (17:15 +0000)] 
toasterui: small changes to empty states

This commit:

* Makes some changes to the layout and styles of the
landing.html template

* Adds the empty state to layers.html

* Changes the message of the empty state of machines.html
to use the same wording used in all other pages

* Adds the project name and the right styles to
the empty state of the project.html template

* Makes small changes in style and wording to the
empty state of targets.html

* Updates all "configure a layer source" links to point
to the new Toaster manual.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: hide right column if empty
Belen Barros Pena [Sun, 22 Mar 2015 19:35:11 +0000 (19:35 +0000)] 
toasterui: hide right column if empty

In the layer details page, if the background
information about the layer that shows in the
right hand column is completely empty, remove
it altogether.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
10 years agotoasterui: Improve messaging for empty layer details
Belen Barros Pena [Sun, 22 Mar 2015 19:17:31 +0000 (19:17 +0000)] 
toasterui: Improve messaging for empty layer details

Explain that, if information is found during the build
process, it will appear in the layer details page.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
10 years agotoasterui: hide release when only one exists
Belen Barros Pena [Sun, 22 Mar 2015 17:18:31 +0000 (17:18 +0000)] 
toasterui: hide release when only one exists

If only one release has been set up in Toaster,
any project you create defaults to that release,
and we simply don't show the release selection
menu when creating projects.

However, we were still showing the release information
in the project page, which would leave users wondering
what that release thing is since they never were
exposed to it.

This patch hides the release information in the
project page when only one release has been set
up in Toaster.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
10 years agotoasterui: update links to Toaster manual
Belen Barros Pena [Mon, 23 Mar 2015 15:26:02 +0000 (15:26 +0000)] 
toasterui: update links to Toaster manual

Set the links to the Toaster manual in the base.html
and landing_not_managed.html templates to the URL of
the new Toaster manual.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
10 years agotoastergui: changes to release change notifications
Belen Barros Pena [Thu, 19 Mar 2015 14:29:58 +0000 (14:29 +0000)] 
toastergui: changes to release change notifications

* Remove the branch name from the list of the layers
deleted (it does not apply).

* In the modal dialog that warns you before layer
deletion, use the release description instead of
the release name

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoaster: alert fixes for project release change
Dave Lerner [Wed, 18 Mar 2015 15:52:48 +0000 (10:52 -0500)] 
toaster: alert fixes for project release change

When a project release changes, if there are layers included with the
project, then show the release branch name in the layer list.  If there
aren't any layers in the project, then suppress the statement on the
changed layers.

[YOCTO # 7168]

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
10 years agotoaster: build date range selections
David Reyna [Sun, 22 Mar 2015 01:01:38 +0000 (18:01 -0700)] 
toaster: build date range selections

Enable date range selections for build start and build complete in all
builds page for both managed and interactive mode. Disable the filter
counts.

[YOCTO #6040]
[YOCTO #7249]
[YOCTO #7461]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
10 years agotoaster: build date range selections static sources
David Reyna [Tue, 17 Mar 2015 22:40:25 +0000 (15:40 -0700)] 
toaster: build date range selections static sources

Add the static resources from jquery-ui needed for datepicker

The static files are licensed MIT and produced by jQuery foundation
under the jQueryUI project.

[YOCTO #6040]
[YOCTO #7249]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
10 years agotoaster: machine not searchable in all builds/projects
David Reyna [Wed, 18 Mar 2015 03:13:09 +0000 (20:13 -0700)] 
toaster: machine not searchable in all builds/projects

Add "build__machine" to searchable fields.

[YOCTO #7334]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
10 years agotoastergui: changes to the all projects table
Belen Barros Pena [Thu, 19 Mar 2015 12:29:55 +0000 (12:29 +0000)] 
toastergui: changes to the all projects table

The 'Last build' column in the all projects table
was supposed to provide the completion time stamp
of the latest project build. Instead, it is showing
the time stamp of the latest project activity, which
includes:

* when the project was created and
* when the last build started

but not when you make a change to the configuration.

The result is that the column and the sorting are very
misleading. The template is set so that the time stamp
only shows when the project has builds (if 0 builds, no
time stamp is shown). But of course the sorting still
happens according to the value, even if it doesn't
display. The result is that, when you sort by the
'Last build' column, projects with no builds
appear listed between projects with builds, and you
have no idea why.

This patch:

* changes the column label
* its position in the table
* makes sure the time stamp always displays
* and adds help text

to reflect what the data actually means.

It also makes some small changes to other table
headings.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoaster: Project page fix targets url and tooltip placement
Michael Wood [Thu, 19 Mar 2015 11:09:43 +0000 (11:09 +0000)] 
toaster: Project page fix targets url and tooltip placement

Make sure we point to the all targets page for the notification links.
Also fix the tooltip placements and a minor typo on the targets page.

[YOCTO #7480]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: layer-relative paths for config files
Dave Lerner [Wed, 11 Mar 2015 20:05:08 +0000 (15:05 -0500)] 
toaster: layer-relative paths for config files

Change bitbake variables table to show the path to the file in which
the variable was defined using a layer-relative path instead of the
full path to the file.

The layer-relative path is found by matching on the full defining file
path with entries in a list of layer names, sorted in descending order,
and with 'meta' appended as a built-in layer to the end of the list.

Additional filters are used to reduce false matches, although even if
there is a false match, the actual path to the defining file will be
obvious and not misleading.

[YOCTO #7414]

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
10 years agotoastergui: give button nice rounded corners
Belen Barros Pena [Thu, 19 Mar 2015 10:34:58 +0000 (10:34 +0000)] 
toastergui: give button nice rounded corners

In the 'add variable' form, the submit button had
a class applied that gave it straight corners on the
left, and rounded corners on the right.

Remove the class so that we have 4 nicely rounded corners.

The patch also removes the unncessary inline styles in the
same button.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agouievent: catch and log exceptions in receiving events
Alexandru DAMIAN [Thu, 19 Mar 2015 19:01:47 +0000 (19:01 +0000)] 
uievent: catch and log exceptions in receiving events

This patch prevents tracebacks and instead logs exceptions
that may happen during event processing.

[YOCTO #7216]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agobin/bitbake: Create bitbake_main API
Ed Bartosh [Fri, 20 Mar 2015 13:13:05 +0000 (15:13 +0200)] 
bin/bitbake: Create bitbake_main API

Moved most of functionality of bin/bitbake to lib/bb/main.py
to be able to call bitbake from python code.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: insure IMAGE_INSTALL_append values have a space prefix
David Reyna [Thu, 12 Mar 2015 23:56:12 +0000 (16:56 -0700)] 
toaster: insure IMAGE_INSTALL_append values have a space prefix

When the IMAGE_INSTALL_append value is not empty, it must have a space prefix
in order for the "append" operator to concatenate the values correctly, so we
enforce it in this variable's submit javascript.

[YOCTO #7394]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
10 years agotoaster: display machine and project values in input fields
David Reyna [Sat, 14 Mar 2015 00:10:01 +0000 (17:10 -0700)] 
toaster: display machine and project values in input fields

Explicitly preset the machine and project values in their respective
input fields.

[YOCTO #7170]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
10 years agotoaster: tasks trigger the select related tables before ordering
Michael Wood [Fri, 13 Mar 2015 15:22:32 +0000 (15:22 +0000)] 
toaster: tasks trigger the select related tables before ordering

In two of the cases the data is changed from a QuerySet to a sorted list
so we aren't able to use the QuerySet api at this point, moving it
before the data type is changed fixes this.

[YOCTO #7404]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: Add cancel build to latest build section
Michael Wood [Fri, 13 Mar 2015 14:34:41 +0000 (14:34 +0000)] 
toaster: Add cancel build to latest build section

Add this functionality to the common managed_mrb_section
Make sure we are using the correct version of this template in the
projects template and remove now redundant code.

[YOCTO #7351]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: Incorrect breadcrumb behaviour in the project page
David Reyna [Fri, 13 Mar 2015 04:50:56 +0000 (21:50 -0700)] 
toaster: Incorrect breadcrumb behaviour in the project page

The last item in the breadcrumb for the project page should not be a link.

[YOCTO #7157]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
10 years agotoaster: leave cancel enabled for release change
Dave Lerner [Thu, 12 Mar 2015 18:55:27 +0000 (13:55 -0500)] 
toaster: leave cancel enabled for release change

When you click the 'change' icon to edit the project release, the
"cancel" button, should always be enabled so that the user can
return to the 'not editable' state at any time.

[YOCTO #7151]

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
10 years agotoastergui: recipe and layer identification
Alexandru DAMIAN [Mon, 16 Mar 2015 12:50:11 +0000 (12:50 +0000)] 
toastergui: recipe and layer identification

This patch fixes the recipe and layer identification by path
when Toaster uses relative paths.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: fix error message parameter
Alexandru DAMIAN [Mon, 16 Mar 2015 12:33:39 +0000 (12:33 +0000)] 
toasterui: fix error message parameter

Fix the error message parameter.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: do not throw exception on misconfigured data
Alexandru DAMIAN [Mon, 16 Mar 2015 12:19:56 +0000 (12:19 +0000)] 
toaster: do not throw exception on misconfigured data

We do not want to throw an exception while handling exceptions
that may print information, so replace the exception throwing
with returning data.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: builds and projects outcome filter
Alexandru DAMIAN [Fri, 13 Mar 2015 17:32:34 +0000 (17:32 +0000)] 
toastergui: builds and projects outcome filter

This patch fixes the Outcome filter in the all builds and
all projects pages in Build mode.

[YOCTO #7450]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: fix machines page search
Alexandru DAMIAN [Fri, 13 Mar 2015 17:13:25 +0000 (17:13 +0000)] 
toastergui: fix machines page search

This patch fixes the machine page search.

[YOCTO #7407]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: display bitbake output after process start
Belen Barros Pena [Thu, 12 Mar 2015 11:30:43 +0000 (11:30 +0000)] 
toaster: display bitbake output after process start

If the bitbake server exists after the initial process start,
the only output displayed shows proper server start, with
no debug info.

This patch also brings the server log into the error message,
so the user has better info about what's going on.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoaster: targets page performance improvement
Alexandru DAMIAN [Thu, 12 Mar 2015 14:44:56 +0000 (14:44 +0000)] 
toaster: targets page performance improvement

Yet another performance improvement, this time by forcing
two-step evaluation instead of using subqueries to select data.

This avoid using full-table lookups on un-indexed temporary
tables.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: improve info in the toaster_ui.log
Alexandru DAMIAN [Thu, 12 Mar 2015 12:44:05 +0000 (12:44 +0000)] 
toasterui: improve info in the toaster_ui.log

We improve logging and signalling of errors in the
toaster_ui.log to facilitate debugging on remote systems.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agoknotty.py: fix indent
Robert Yang [Thu, 19 Mar 2015 05:27:36 +0000 (22:27 -0700)] 
knotty.py: fix indent

It used 5 spaces as the indent.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: Fix the orderkey to match the column
Michael Wood [Wed, 11 Mar 2015 18:59:17 +0000 (18:59 +0000)] 
toaster: Fix the orderkey to match the column

If the orderkey doesn't map to the current sort value then when hiding
the column the sort doesn't get removed.

[YOCTO #7262]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: projectconf fix typo of package name
Michael Wood [Wed, 11 Mar 2015 18:19:31 +0000 (18:19 +0000)] 
toaster: projectconf fix typo of package name

The package should be deb rather than dev.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoastergui: replace ETA with percentage
Alexandru DAMIAN [Wed, 11 Mar 2015 14:33:50 +0000 (14:33 +0000)] 
toastergui: replace ETA with percentage

We replace the ETA (which was an inaccurate estimation)
with the percentage of completed tasks.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: fix mrb Run again buttons
Alexandru DAMIAN [Wed, 11 Mar 2015 14:20:00 +0000 (14:20 +0000)] 
toastergui: fix mrb Run again buttons

The button for error-ed builds had invalid javascript markup,
this patch fixes the buttons.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: localhost build increase timeout
Alexandru DAMIAN [Wed, 11 Mar 2015 14:18:36 +0000 (14:18 +0000)] 
toaster: localhost build increase timeout

We increase the timeout for waiting bitbake to start
for localhost builds.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: relative recipe paths
Alexandru DAMIAN [Wed, 11 Mar 2015 14:17:21 +0000 (14:17 +0000)] 
toasterui: relative recipe paths

We modify the toasterui to log relative recipe paths
in order to maintain consistency with data fetched from
the layer sources.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: improve toaster suggestion
Alexandru DAMIAN [Tue, 10 Mar 2015 18:55:54 +0000 (18:55 +0000)] 
toastergui: improve toaster suggestion

Improving the suggestions by ordering entries
based on position of the search string.

Speed improvements in suggestion calls.

[YOCTO #7152]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: dirinfo needs path separation
Alexandru DAMIAN [Tue, 10 Mar 2015 18:31:45 +0000 (18:31 +0000)] 
toastergui: dirinfo needs path separation

In the dirinfo URLs we use the "/" separator for directory
separation which coincides with the "/" separator in HTTP URIs.

This is not a problem, but we must not have consecutive "/"
characters as the web servers will conflate those - we add
a "_" delimitator to separate the Django managed URL from the
dirpath parameter, while maintaining the unique ID of REST urls.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: tables display optimizations
Alexandru DAMIAN [Tue, 10 Mar 2015 17:38:00 +0000 (17:38 +0000)] 
toastergui: tables display optimizations

This patch brings in a new set of optimizations in the tables pages,
with the focus of reducing the number of SQL queries performed per
row.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: project app build command fix
Alexandru DAMIAN [Tue, 10 Mar 2015 17:36:32 +0000 (17:36 +0000)] 
toastergui: project app build command fix

This patch fixes the build command in the angular
project for builds triggered from All targets page.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: update search fields
Alexandru DAMIAN [Tue, 10 Mar 2015 16:20:47 +0000 (16:20 +0000)] 
toastergui: update search fields

We update the search fields for the machine suggestions
and recipes tables.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: identify proper layer in build mode
Alexandru DAMIAN [Wed, 4 Mar 2015 15:52:01 +0000 (15:52 +0000)] 
toasterui: identify proper layer in build mode

In build mode, instead of creating our own layer objects,
we identify the layer objects that the build system set up.

[YOCTO #7378]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: improve performance in the all targets page
Alexandru DAMIAN [Mon, 9 Mar 2015 18:42:17 +0000 (18:42 +0000)] 
toastergui: improve performance in the all targets page

This patch improves performance in the all targets display
by computing the preffered layer only for displayed targets,
instead of computing for all targets.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: improve data suggestion
Alexandru DAMIAN [Mon, 9 Mar 2015 18:39:18 +0000 (18:39 +0000)] 
toastergui: improve data suggestion

We improve the data suggestions in the project page.

The machines suggestions now contain the layer name.

The targets and machine do not show the layer branch.

For targets, the layer name is searchable.
For machines, the description field is searchable.

[YOCTO #7153]
[YOCTO #7154]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: fix project page layer branch names
Alexandru DAMIAN [Mon, 9 Mar 2015 17:24:05 +0000 (17:24 +0000)] 
toastergui: fix project page layer branch names

Change inconsistent branch name usage in project page to
the uniquely defined get_vcs_reference()

[YOCTO #7381]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: suggestion in alphabetical order
Alexandru DAMIAN [Mon, 9 Mar 2015 17:08:53 +0000 (17:08 +0000)] 
toastergui: suggestion in alphabetical order

Patch bringing ordering in alphabetical order for
targets, machines and layers suggestion in typeaheads.

[YOCTO #7152]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: project page - consistent error display
Alexandru DAMIAN [Mon, 9 Mar 2015 16:42:44 +0000 (16:42 +0000)] 
toastergui: project page - consistent error display

We modify the project page to provide a consistent view of the
build errors. The display is now similar with the
managed_mrb_section and links point to the buildrequest
detail view.

[YOCTO #7188]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agobitbake-layers: use stdout instead of stderr for logging
Paul Eggleton [Mon, 16 Mar 2015 10:35:10 +0000 (10:35 +0000)] 
bitbake-layers: use stdout instead of stderr for logging

We use logger.plain() to produce actual output which needs to go to
stdout. We could use more advanced filtering (and probably should in
future) but for the moment let's just fix the regression.

Fixes [YOCTO #7458].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoknotty: Do not log show_versions output
Rob Woolley [Fri, 27 Feb 2015 14:32:23 +0000 (09:32 -0500)] 
knotty: Do not log show_versions output

Every time the bitbake show versions command (bitbake -s) is run it creates
a 100k log file.

The consolelogfile is disabled for show environment and disabling show
versions would make the behaviour match.

Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoknotty: Catch exceptions on broken pipes
Rob Woolley [Fri, 27 Feb 2015 14:32:22 +0000 (09:32 -0500)] 
knotty: Catch exceptions on broken pipes

Any exceptions that occur in calls to logging methods are automatically
suppressed, including exceptions due to broken pipes.

However, the knotty summary messages are printed directly to stdout, which
means that any broken pipes will cause an exception traceback in python.

By wrapping the summary section in a try / catch block we can check for
IOError exceptions caused by broken pipes and let them pass.

Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocooker/server: Fix up 100% CPU usage at idle
Richard Purdie [Tue, 10 Mar 2015 10:29:46 +0000 (10:29 +0000)] 
cooker/server: Fix up 100% CPU usage at idle

The recent inotify changes are causing a 100% cpu usage issue in the
idle handlers. To avoid this, we update the idle functions to optionally
report a float value which is the delay before the function needs to be
called again. 1 second is fine for the inotify handler, in reality its
more like 0.1s due to the default idle function sleep.

This reverts performance regressions of 1.5 minutes on a kernel build
and ~5-6 minutes on a image from scratch.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofetch2: Revalidate checksums, YOCTO #5571
Clemens Lang [Fri, 6 Mar 2015 14:28:54 +0000 (15:28 +0100)] 
fetch2: Revalidate checksums, YOCTO #5571

[YOCTO #5571] -- https://bugzilla.yoctoproject.org/show_bug.cgi?id=5571

The following workflow (whether accidentally or deliberately) would
previously not result in a checksum error, but would be helpful to do
so:
 - Write a recipe with correct checksums
 - Fetch the sources for this recipe using bitbake
 - Change the checksums
Since the bitbake fetcher writes a done stamp after the initial download
and does not verify the checksums again (even if they are changed in the
recipe afterwards), the change of checksums is silently ignored.

Fix this without the overhead of computing the checksums from scratch on
every do_fetch by storing them in pickled format in the done stamp and
verifying that they still match those in the recipe.

Signed-off-by: Clemens Lang <clemens.lang@bmw-carit.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: cached outcome download button
Dave Lerner [Thu, 5 Mar 2015 23:01:55 +0000 (17:01 -0600)] 
toaster: cached outcome download button

When a task is executed successfully without using saved-state cache,
then a button appears allowing the user to download the log file for
that task.  This commit allows the user to download the log file for a
task that is completed by unpacking data from the saved-state cache, a
task with outcome 'Cached'.  The same button 'Download task log' is
shown, which when pressed downloads the '_setscene' log file for that
task.

[YOCTO #7379]

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
10 years agotoaster: projectapp.js - clear up jslint warnings
Alexandru DAMIAN [Mon, 9 Mar 2015 13:03:39 +0000 (13:03 +0000)] 
toaster: projectapp.js - clear up jslint warnings

This patch clears up jslint warnings for the project app,
and improves file readability.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: libtoaster Fix a few warnings picked up by jshint
Michael Wood [Tue, 3 Mar 2015 16:18:24 +0000 (16:18 +0000)] 
toaster: libtoaster Fix a few warnings picked up by jshint

Fix warnings and items that do not conform to strict.
Also add a fairly lenient jshintrc. usage: jshint js_file

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaterui: shorten the unavailable artifact message
Belen Barros Pena [Fri, 27 Feb 2015 17:45:55 +0000 (17:45 +0000)] 
toaterui: shorten the unavailable artifact message

Make it slightly shorter, and separate the 'back' action
so that is more visible and easier to hit.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoasterui: give some space to the download log button
Belen Barros Pena [Fri, 27 Feb 2015 17:29:04 +0000 (17:29 +0000)] 
toasterui: give some space to the download log button

In the build dashboard, the download build log button was
a bit too close to the build time.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoasterui: apply correct class to latest builds targets
Belen Barros Pena [Fri, 27 Feb 2015 17:17:32 +0000 (17:17 +0000)] 
toasterui: apply correct class to latest builds targets

Failed builds were showing the target name with the .success
class applied (cognitive disonance, anyone?).

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoasterui: fix the h1 in the project builds page
Belen Barros Pena [Fri, 27 Feb 2015 15:12:57 +0000 (15:12 +0000)] 
toasterui: fix the h1 in the project builds page

It was not displaying the number of search results.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: don't open layer details in a new tab
Belen Barros Pena [Fri, 27 Feb 2015 14:53:07 +0000 (14:53 +0000)] 
toasterui: don't open layer details in a new tab

In the project page, the project layer links were opening
in a new tab. They should not do that.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoaster: Enforce unique layer names
Michael Wood [Mon, 2 Mar 2015 15:00:49 +0000 (15:00 +0000)] 
toaster: Enforce unique layer names

We had some clever functionality to manage duplicate layer names by
using layer versions and new revisions, unfortunately this was too
opaque to the user.

[YOCTO #7337]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: commit id format on layers page
Dave Lerner [Wed, 25 Feb 2015 20:53:22 +0000 (14:53 -0600)] 
toaster: commit id format on layers page

On the layers page, when a layer revision is a commit id instead of a
an upstream branch name, then follow the same format for displaying the
commit id as on the recipes page.  That format is a button with the
truncated commit SHAID which when pressed expands to the full SHAID.

[YOCTO #7191]

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: bring back base URLs for pages that need them
Alexandru DAMIAN [Mon, 9 Mar 2015 11:57:08 +0000 (11:57 +0000)] 
toastergui: bring back base URLs for pages that need them

Some URLs, although invalid on their own, are used in JS to
build valid page pointers. Previous patch removed two of these URLs,
breaking the display of several patches.

This patch re-adds these URLs with different names, and returns
400 Bad Request empty pages on them, which is consistent with the
intended usage of these URLs.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: reconcile non-manage-mode landing classes
David Reyna [Fri, 27 Feb 2015 08:47:32 +0000 (00:47 -0800)] 
toaster: reconcile non-manage-mode landing classes

Remove obsolete manage-mode URLs, fix not-manage mode landing classes that have
obsolete non-matching parameter lists, remove orphaned landing classes..

[YOCTO #6483]

Signed-off-by: David Reyna <David.Reyna@windriver.com>