]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
10 years agotoasterui: empty state for pages
Alexandru DAMIAN [Fri, 13 Feb 2015 13:08:26 +0000 (13:08 +0000)] 
toasterui: empty state for pages

Toaster needs to properly prompt the user and display
actionable help texts when the database is void of
meaningful information. This patch brings in the
"empty" states for pages.

[YOCTO #6755]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: Set the machines page default pagesize to 100
Michael Wood [Thu, 12 Feb 2015 15:47:34 +0000 (15:47 +0000)] 
toaster: Set the machines page default pagesize to 100

This brings it into line with the all layers and targets pages

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: Remove filtering from layers,machines and targets
Michael Wood [Thu, 12 Feb 2015 15:45:52 +0000 (15:45 +0000)] 
toaster: Remove filtering from layers,machines and targets

The filter counts are unreliable so for consistency the filter feature
here is removed.

[YOCTO #7060]
[YOCTO #7052]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: Remove Layer source from machines, layers and targets
Michael Wood [Thu, 12 Feb 2015 15:08:24 +0000 (15:08 +0000)] 
toaster: Remove Layer source from machines, layers and targets

From the bug: The layer source reveals too much of the implementation model,
without explaining what is going on behind the scenes. It will confuse more
than inform, so let's get rid of it.

[YOCTO #7302]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: New build button allow arbitrary build targets
Michael Wood [Fri, 6 Feb 2015 19:22:49 +0000 (19:22 +0000)] 
toaster: New build button allow arbitrary build targets

Target input field needed to support both selecting suggestions and
typing targets, since Toaster doesn't always know about all the targets
provided by the layers in the project.

[YOCTO #7187]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: Additional fixes for the project variable page
David Reyna [Thu, 12 Feb 2015 11:40:53 +0000 (03:40 -0800)] 
toaster: Additional fixes for the project variable page

Fix IMAGE_FSTYPES, IMAGE_INSTALL_append, and DISTRO editing management, plus other usability details.

[YOCTO #7231]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: layerdetails use new vcs reference api
Michael Wood [Fri, 13 Feb 2015 15:53:34 +0000 (15:53 +0000)] 
toaster: layerdetails use new vcs reference api

Use the new layer_version api so that we return the vcs reference whether
that be the commit hash, branch name or the upstream branch to which the
layer is associated with.

[YOCTO #7192]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: fix git checkout command
Alexandru DAMIAN [Fri, 13 Feb 2015 10:22:35 +0000 (10:22 +0000)] 
toaster: fix git checkout command

This patch fixes the git checkout command that would fail to
properly rebase the working tree in some cases.

[YOCTO #7309]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: properly detect failed server start
Alexandru DAMIAN [Tue, 10 Feb 2015 16:25:17 +0000 (16:25 +0000)] 
toaster: properly detect failed server start

This patch brings in reading the server log if the server
fails to start. This is the first step in displaying the errors
in a manner that is actionable by the user.

[YOCTO #7285]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: Use on input event for validation rather than keyup
Michael Wood [Fri, 6 Feb 2015 19:18:19 +0000 (19:18 +0000)] 
toaster: Use on input event for validation rather than keyup

Avoid using keyup event to trigger form validation as this won't fire
for events such as pasting or autofill from the browser.

[YOCTO #7292]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotests/fetch.py: latest_versionstring add set of PN
Aníbal Limón [Fri, 13 Feb 2015 21:58:14 +0000 (15:58 -0600)] 
tests/fetch.py: latest_versionstring add set of PN

Add set of PN in data because now latest_versionstring use it for
validate version directory searching.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofetch2: wget remove scape of - in regexes don't needed
Aníbal Limón [Fri, 13 Feb 2015 21:58:13 +0000 (15:58 -0600)] 
fetch2: wget remove scape of - in regexes don't needed

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofetch2: wget _modelate_version improvments
Aníbal Limón [Fri, 13 Feb 2015 21:58:12 +0000 (15:58 -0600)] 
fetch2: wget _modelate_version improvments

Fix sustition for rc, beta and alpha releses from -N to N weight.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofetch2: wget latest_versionstring improvments in get version by dir
Aníbal Limón [Fri, 13 Feb 2015 21:58:11 +0000 (15:58 -0600)] 
fetch2: wget latest_versionstring improvments in get version by dir

Add support for scan every version directory using _check_latest_version
makes code more robust because sometimes upstream projects publish
new directories without files, causing don't find version.

To support this new behaviour remove _check_latest_dir and replace for
_check_latest_version_by_dir,

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofetch2: wget add _check_latest_version_by_dir
Aníbal Limón [Fri, 13 Feb 2015 21:58:10 +0000 (15:58 -0600)] 
fetch2: wget add _check_latest_version_by_dir

Add _check_latest_version_by_dir this function provides support
for scan every directory newer than current dir in order to get
latest_versionstring, example:

http://somedoamin.com/project/v2.1/
http://somedoamin.com/project/v3.0/

Change return of _vercmp from True/False to -1/0/1 to provide test
when current directory is equal to newer directory this helps to
scan the same directory to get minor versions, example:

http://somedoamin.com/project/v2.1/project-v2.1.2.tgz
http://somedoamin.com/project/v2.1/project-v2.1.6.tgz

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofetch2: wget latest_versionstring _check_latest_version improvments
Aníbal Limón [Fri, 13 Feb 2015 21:58:09 +0000 (15:58 -0600)] 
fetch2: wget latest_versionstring _check_latest_version improvments

In order to reduce code duplication now compile package_regex in
_init_regexes instead of make this decision at _check_latest_version,

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofetch2: wget latest_versionstring improve _parse_path
Aníbal Limón [Fri, 13 Feb 2015 21:58:08 +0000 (15:58 -0600)] 
fetch2: wget latest_versionstring improve _parse_path

Add support for get group only if exist in regex, this enables to use
this function in _check_latestversion regardless if the regex is generic
or specified by REGEX_URI.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocooker: rework LAYERDEPENDS versioning so that it is actually useful
Paul Eggleton [Tue, 10 Feb 2015 18:13:25 +0000 (18:13 +0000)] 
cooker: rework LAYERDEPENDS versioning so that it is actually useful

We've had versioned dependency support in LAYERDEPENDS for quite a long
time, but I can say with pretty good certainty that almost nobody has
used it up to now because it was too strict - the specified version had
to exactly match the version in your configuration or you would get an
error; there was no "greater than or equal" option, which is usually
what you will want given that LAYERVERSION does get bumped from time to
time.

However, users mismatching layer branches and then having their builds
fail later on with some incomprehensible error is still a pretty common
problem. We can't simply use the git branch because not everyone is
always on a branch and the branch names don't always match up (and
that's not an issue). To provide a practical means to address branch
mismatching, I have reworked LAYERDEPENDS version specifications to use
the more familiar "dependency (>= version)" syntax as used with package
dependencies, support non-integer versions, and clarified the error
message a little. If we then take care to bump the version on every
breaking change, it is at least possible to have layers depend on these
changes when they update to match; we can now even support a major.minor
scheme to allow retrospectively adding a version limiter to old branches
when a new branch is created and yet still allow the old branch minor
version to be bumped if needed.

Fixes [YOCTO #5991].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotests: add tests for OE pre-release version formatting
Paul Eggleton [Tue, 10 Feb 2015 18:13:24 +0000 (18:13 +0000)] 
tests: add tests for OE pre-release version formatting

This scheme is used for versioning recipes that are pre-release (alpha,
beta, etc.) within OpenEmbedded, so add some tests to ensure the
appropriate comparison results still hold true.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoutils: ensure explode_dep_versions2 raises an exception on invalid/missing operator
Paul Eggleton [Tue, 10 Feb 2015 18:13:23 +0000 (18:13 +0000)] 
utils: ensure explode_dep_versions2 raises an exception on invalid/missing operator

We really want an error rather than the version to just be silently
skipped when the operator is missing (e.g. "somepackage (1.0)" was
specified instead of "somepackage (>= 1.0)".)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodepexp.py: Fix segfault if DISPLAY is not set
Maxin B. John [Mon, 16 Feb 2015 08:25:02 +0000 (09:25 +0100)] 
depexp.py: Fix segfault if DISPLAY is not set

bitbake -g -u depexp <package> segfaults when DISPLAY is not set
properly. Fix it with a proper check.

[YOCTO #7299]

Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake-user-manual: Removed errant writer note line.
Scott Rifenbark [Tue, 10 Feb 2015 15:00:00 +0000 (07:00 -0800)] 
bitbake-user-manual: Removed errant writer note line.

Removed a note to myself in the BB_ORIGENV example.

Reported-by: Paul Eggleton <paul.eggleton@intel.com>
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake-user-manual: Added some links to some new variables.
Scott Rifenbark [Mon, 9 Feb 2015 21:16:51 +0000 (13:16 -0800)] 
bitbake-user-manual: Added some links to some new variables.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake-user-manual: Added five new repo variables and links.
Scott Rifenbark [Mon, 9 Feb 2015 21:14:06 +0000 (13:14 -0800)] 
bitbake-user-manual: Added five new repo variables and links.

Added the following variables to the glossary:

  CVSDIR
  GITDIR
  SVNDIR
  HGDIR
  BZRDIR

Several areas in the main manual mentioned these variables.  For
each, I added the appropriate link to the glossary term.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoMakefile: Updated the script to not create PDF version by default
Scott Rifenbark [Mon, 9 Feb 2015 20:44:24 +0000 (12:44 -0800)] 
Makefile: Updated the script to not create PDF version by default

For this release, we are dropping automatic creation of PDF manual.
The user can still create them by specifically using the 'pdf' target.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoastergui: links outside Toaster should open in a new window
Belen Barros Pena [Mon, 2 Feb 2015 15:01:31 +0000 (15:01 +0000)] 
toastergui: links outside Toaster should open in a new window

Make sure all links going to pages outside Toaster in
the layer details page (to web repos and the like)
open in a new tab/window.

[YOCTO #7193]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoaster: All machines Fix filter counts
Michael Wood [Mon, 9 Feb 2015 13:54:14 +0000 (13:54 +0000)] 
toaster: All machines Fix filter counts

Filter counts needed to take into account the filters that had
previously been applied.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: All machines show results count if filtering or searching
Michael Wood [Thu, 5 Feb 2015 18:54:48 +0000 (18:54 +0000)] 
toaster: All machines show results count if filtering or searching

Show the number of results returned if filtering as well as when
searching.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: All machines reset order_by if removing that column
Michael Wood [Thu, 5 Feb 2015 18:50:20 +0000 (18:50 +0000)] 
toaster: All machines reset order_by if removing that column

When you remove a column from a table that is currently being sorted by
that value we also need to remove the sort.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: all Machines exclude de-prioritised layer source items
Michael Wood [Thu, 5 Feb 2015 18:19:57 +0000 (18:19 +0000)] 
toaster: all Machines exclude de-prioritised layer source items

If a duplicate layer exists from another layer source and provides a
machine we don't want to show it if that layer comes from a low priority
layer source.

Signed-off-by: Michael Wood <michael.g.wood@intel.com
10 years agotoaster: All Machines fix reset search link
Michael Wood [Thu, 5 Feb 2015 14:26:10 +0000 (14:26 +0000)] 
toaster: All Machines fix reset search link

In firefox this link wasn't valid as it was inside a button element.
Remove this and add a click handler for the button.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: models Allow the machine's layer name to be searched
Michael Wood [Thu, 5 Feb 2015 14:24:01 +0000 (14:24 +0000)] 
toaster: models Allow the machine's layer name to be searched

Make the layer name searchable. If you know the name of the layer you are
interested in, searching for it is a fast way of getting the list of
machines provided by it.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: All machines Add filtering based on layer in project
Michael Wood [Wed, 4 Feb 2015 18:06:30 +0000 (18:06 +0000)] 
toaster: All machines Add filtering based on layer in project

Add a filter so that we can filter machines which are already being provided
by a layer in the current project.
Also make sure that we're only showing layers which are compatible with
the current project.
Also handle no results returned and page heading reflecting the number of
results returned from a search.

AlexD solved conflicts while merging the patch.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: All machines Add layer name order by functions
Michael Wood [Tue, 3 Feb 2015 17:48:45 +0000 (17:48 +0000)] 
toaster: All machines Add layer name order by functions

Allow the layer name to be sorted alphabetically in the machines table.
Also fix the default ordering to be machine name

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: layerdetails Don't remove alert from dom on dismissal
Michael Wood [Tue, 3 Feb 2015 16:08:47 +0000 (16:08 +0000)] 
toaster: layerdetails Don't remove alert from dom on dismissal

When dismissing the alert we actually want to keep the alert area still
in the dom for the use of future alerts. The default behaviour is to
remove it from the dom. Hide it again instead.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: All machines Update layer notifications
Michael Wood [Tue, 3 Feb 2015 16:05:15 +0000 (16:05 +0000)] 
toaster: All machines Update layer notifications

Update layer notifications to the new wording for layer add remove
notifications.
Fix bug where the the alert area is being removed from the dom on
dismiss instead of re-hidden

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: All machines add a column to link back to machine conf
Michael Wood [Tue, 3 Feb 2015 15:40:41 +0000 (15:40 +0000)] 
toaster: All machines add a column to link back to machine conf

Add a column with the "path" to the machine file and add a link back to
the vcs web to view the machine configuration file.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: machines Make sure we don't overwrite the pagesize
Michael Wood [Mon, 2 Feb 2015 17:27:54 +0000 (17:27 +0000)] 
toaster: machines Make sure we don't overwrite the pagesize

The pagesize was accidentally being over written and should be set to
the value returned from the cookie if there was one.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: Add add/select functionality to machines page
Michael Wood [Fri, 30 Jan 2015 18:21:05 +0000 (18:21 +0000)] 
toaster: Add add/select functionality to machines page

This feature for the machines page allows the user to add a layer and
it's dependencies to the current project and then if successful select
the machine(s) which become available due to being provided by the
layer.

AlexD merged the changes into the submission queue.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: machines Fix undefined variables
Michael Wood [Fri, 30 Jan 2015 18:18:44 +0000 (18:18 +0000)] 
toaster: machines Fix undefined variables

pagesize and orderby were undefined causing an error to be thrown when
browsing to the all machines page

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoastergui: add download task log icon to recipe details page
Belen Barros Pena [Mon, 9 Feb 2015 11:48:39 +0000 (11:48 +0000)] 
toastergui: add download task log icon to recipe details page

When a task fails, we keep the log and allow users to
download it. Make sure the download is provided in the
tasks table of the recipe details page.

[YOCTO #7207]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: add the word 'compatible' to 'all' pages
Belen Barros Pena [Fri, 6 Feb 2015 17:55:46 +0000 (17:55 +0000)] 
toastergui: add the word 'compatible' to 'all' pages

Labels for the 'all' pages don't really convey what's provided in them.
The team has suggested we add the word 'compatible' to them,
to make clear they will show all layers / targets / machines that
can be built with the version of the build system you are
using in a certain project. A link like 'view all targets'
becomes 'view all compatible targets'.

I've also added some help text.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: set column heading to 'Revision'
Belen Barros Pena [Wed, 4 Feb 2015 13:10:07 +0000 (13:10 +0000)] 
toastergui: set column heading to 'Revision'

Replace the column heading 'Branch, tag or commit' with
'Revision'. This also fixes 7023.

[YOCTO #7023]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: display Toaster mode and version in debug mode
Alexandru DAMIAN [Fri, 6 Feb 2015 15:32:18 +0000 (15:32 +0000)] 
toaster: display Toaster mode and version in debug mode

This patch displays the current running mode and checked-out git branch
as Toaster version when running in debug mode.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: improve logging facilities for toaster
Alexandru DAMIAN [Thu, 5 Feb 2015 13:18:06 +0000 (13:18 +0000)] 
toaster: improve logging facilities for toaster

This patch improves the logging facilities for toaster in order
to help diagnose bugs that happen on user machines.

The logs are stored now under "/tmp/toaster_$$" where $$ is a
PID-based unique identifier. On shutdown, toaster will automatically
erase all logs unless errors are listed in the log file.

On error, Toaster provides suggestions on what to do.

This patch includes a minor fix found as a result of logging
improvements.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: enhancements for the startup sequence
Alexandru DAMIAN [Thu, 5 Feb 2015 12:07:44 +0000 (12:07 +0000)] 
toaster: enhancements for the startup sequence

This patch brings fixes and enhancements in the startup sequence.

- the dependency version checking is now correctly enforced when
starting in both modes
- fixed errors in looking up environment variables
- added message with 'daemon' program start location
- presenting menu for selecting config file

[YOCTO #7283]
[YOCTO #7291]
[YOCTO #7273]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: improvements in layer selection logic
Alexandru DAMIAN [Mon, 2 Feb 2015 17:57:36 +0000 (17:57 +0000)] 
toastergui: improvements in layer selection logic

This patch clearers and bring fixes for the layer selection
logic in order to enable information collected during build to be used
in configuring projects, specifically targeting the recipes
learned through the building process.

The patch also adds tests to verify the layer selection logic.

[YOCTO #7189]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: enable server-side caches and debug-panel
Alexandru DAMIAN [Tue, 3 Feb 2015 18:28:20 +0000 (18:28 +0000)] 
toaster: enable server-side caches and debug-panel

This patch enables the server-side caches for Django using
file cache in /tmp/ directory.

Patch enables django debug panel if available.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: fix loadconf error message
Alexandru DAMIAN [Tue, 3 Feb 2015 18:25:14 +0000 (18:25 +0000)] 
toastergui: fix loadconf error message

Toaster crashes in loadconf if it needs to raise an Exception due
to poorly formatted error message. This patch fixes the formatting

[YOCTO #7276]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: correct typo in toaster script
Belen Barros Pena [Tue, 3 Feb 2015 17:11:51 +0000 (17:11 +0000)] 
toaster: correct typo in toaster script

A small typo slipped in the message included in
the fix for [YOCTO #6023].

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoasterui: use text() instead of html()
Belen Barros Pena [Mon, 2 Feb 2015 17:40:21 +0000 (17:40 +0000)] 
toasterui: use text() instead of html()

Use the text() jQuery function instead of the html()
one for security reasons.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoastergui: remove time link for failed build requests
Belen Barros Pena [Mon, 2 Feb 2015 14:41:07 +0000 (14:41 +0000)] 
toastergui: remove time link for failed build requests

Failed build requests do not have a build time page where
you can look at the time spent on each task. Therefore,
their build time information cannot be a link to such
a page.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agodata_smart: split expanded removal values when handling _remove
Ross Burton [Mon, 2 Feb 2015 15:09:25 +0000 (15:09 +0000)] 
data_smart: split expanded removal values when handling _remove

Given these assignments:

 TEST="a b c d"
 TEST_remove = "b d"

TEST evaluates to "a c".  However, if the _remove override is given as a
variable:

 TEST="a b c d"
 FOO = "b d"
 TEST_remove = "${FOO}

TEST evaluates to "a b c d", because when FOO is expanded it isn't split into a
list.

Solve this by splitting all members of removeactive once they've been expanded.

[ YOCTO #7272 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotests/data: add test for incorrect remove behaviour
Ross Burton [Mon, 2 Feb 2015 15:09:24 +0000 (15:09 +0000)] 
tests/data: add test for incorrect remove behaviour

The _remove operator isn't working correctly when used with a variable that
expands to several items, so add a test case to exercise this path.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: proper setup for build configuration
Alexandru DAMIAN [Mon, 2 Feb 2015 12:13:58 +0000 (12:13 +0000)] 
toaster: proper setup for build configuration

This patch makes sure that all the toaster conf files are actually
written from the build enviroment controllers.

Additionally, toaster checks that the 'daemon' program, which is used
to start the build system, is available (currently for localhost).

[YOCTO #7171]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: new layer checkout logic
Alexandru DAMIAN [Wed, 28 Jan 2015 13:18:09 +0000 (13:18 +0000)] 
toaster: new layer checkout logic

This patch implements a new layer checkout logic that brings more
flexibility in getting layers under different commits work with
Toaster.

The new hibrid logic will checkout separately each layer and commit id;
the task execution will be delegated to the checkedout bitbake, but the
data logger will be executed from the current toaster version as to
bring in enough data to sustain the updates in UI models.

[YOCTO #7171]
[YOCTO #6892]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: update texts for the startup sequence
Alexandru DAMIAN [Tue, 27 Jan 2015 17:59:25 +0000 (17:59 +0000)] 
toaster: update texts for the startup sequence

This patch updates the prompts to the user to better explain
what Toaster is doing and the information it needs from the user.

Additionally, fixes a check in loadconf command.

[YOCTO #6785]
[YOCTO #7251]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agodata_smart: Don't use mutable objects as default args
Richard Purdie [Thu, 29 Jan 2015 14:35:37 +0000 (14:35 +0000)] 
data_smart: Don't use mutable objects as default args

These only have one instance created which means your subsequent datastores
can contain echos of previous ones. Obviously this is not the behaviour
we want/expect. It doesn't affect bitbake too badly as we only have one
datastore, it does massively potentially break our selftests though.

Thanks to Tim Amsell for pointing out the now obvious problem!

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoparse/ast: Fix issue if path contains '&'
Pascal Bach [Thu, 29 Jan 2015 08:52:04 +0000 (09:52 +0100)] 
parse/ast: Fix issue if path contains '&'

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoastergui: update project build listing
Alexandru DAMIAN [Fri, 23 Jan 2015 17:36:14 +0000 (17:36 +0000)] 
toastergui: update project build listing

We update the build listings in the project mode to enable
proper display and selection of build requests that do not have
an actual build object because the bitbake process did not start.

We add a page to display error details for build requests that
did not start a build.

Fixing errors and misspelling in build sections.

Sorting by "timespent" is disabled for build-listing pages.

[YOCTO #7165]
[YOCTO #7156]
[YOCTO #7196]
[YOCTO #7188]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: do not filter images by extension
Alexandru Damian [Fri, 23 Jan 2015 11:15:31 +0000 (11:15 +0000)] 
toasterui: do not filter images by extension

ToasterUI filters build artifacts by extension in order
to determine if a build artifact is an image or not.

Using IMAGE_FSTYPES for this purpose is not correct as
the varible value holding image extensions is just a coincidence.

So we just look if the filename contains the "rootfs" magic
string, which is a pretty good approximation.

[YOCTO #7213]

Signed-off-by: Alexandru Damian <alexandru.damian@intel.com>
10 years agotoastergui: alignment fix
Belen Barros Pena [Mon, 26 Jan 2015 17:29:02 +0000 (17:29 +0000)] 
toastergui: alignment fix

Align horizontally the pagination and show rows
controls at the bottom of the layer details page.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: remove recipe id links to the layer index
Belen Barros Pena [Mon, 26 Jan 2015 16:37:05 +0000 (16:37 +0000)] 
toastergui: remove recipe id links to the layer index

Toaster cannot use the recipe id to link to the layer
index, because recipe ids can change. We need to search
by the recipe name instead.

This patch removes the recipe id link from the layer
details page and replaces it with a search by the
recipe name.

It also makes sure links to the layer index open in
a new tab/window.

[YOCTO #7194]
[YOCTO #7193]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoastergui: consistent capitals in button
Belen Barros Pena [Mon, 26 Jan 2015 16:08:35 +0000 (16:08 +0000)] 
toastergui: consistent capitals in button

Capitalise correctly the 'Build target' button label in
the layer details page: it should match the table heading.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoastergui: hide table controls when when less than 10 entries
Belen Barros Pena [Mon, 26 Jan 2015 16:02:24 +0000 (16:02 +0000)] 
toastergui: hide table controls when when less than 10 entries

The 'show rows' and pagination controls in the layer details
page should only show when there are more than 10 entries
in a table.

[YOCTO #7217]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoastergui: set column width in layer details page
Belen Barros Pena [Mon, 26 Jan 2015 15:48:45 +0000 (15:48 +0000)] 
toastergui: set column width in layer details page

Set the width of the action columns to span2 to stop
the buttons from wrapping as much as possible.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoastergui: add 'show all' link to no results page
Belen Barros Pena [Mon, 26 Jan 2015 15:37:30 +0000 (15:37 +0000)] 
toastergui: add 'show all' link to no results page

When you search for targets or machines in the layer details
page and your search returns no results, you should
see a 'show all' link that you can click to clear the
search and display all table entries.

[YOCTO #7218]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoastergui: give the add dependencies form some breathing space
Belen Barros Pena [Mon, 26 Jan 2015 15:25:05 +0000 (15:25 +0000)] 
toastergui: give the add dependencies form some breathing space

In the editable version of the layer details page, the form to
add dependencies needs some distance from the dependency list.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoastergui: consistent add / remove layer notifications
Belen Barros Pena [Mon, 26 Jan 2015 15:11:54 +0000 (15:11 +0000)] 
toastergui: consistent add / remove layer notifications

In my struggle to ensure consistency in the format and content
of the notifications we show when you add and remove layers to
a project, I've:

* added the project name to the notifications
in the layer details page

* removed the 'Go to project configuration' link
from the notifications in the layer details page

This changes align the notifications we show in the layer
details page with the ones we show in the 'all' pages.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoastergui: remove redundant style declaration
Belen Barros Pena [Mon, 26 Jan 2015 13:53:29 +0000 (13:53 +0000)] 
toastergui: remove redundant style declaration

The bottom margin for dd tags nested inside forms is
set twice. Delete one of them.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoastergui: Generic message for the layer details empty states
Belen Barros Pena [Mon, 26 Jan 2015 13:42:44 +0000 (13:42 +0000)] 
toastergui: Generic message for the layer details empty states

In the layer details page, change the message you see when
the number of targets or machines provided by a layer is
0, either because that's what's reported by a layer index
instance, or because Toaster does not have any information
about the layer.

The new message is more generic, in order to fit layers from
all layer sources.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoaster: apply common styles to right hand column of detail pages
Belen Barros Pena [Wed, 14 Jan 2015 17:27:00 +0000 (17:27 +0000)] 
toaster: apply common styles to right hand column of detail pages

Layer, recipe and package details pages have a right column
with additional information. This commit standardises the
formatting of the content in that right column across
all these pages by creating a new css class .item-info
in default.css

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoaster: make layouts consistent
Belen Barros Pena [Mon, 26 Jan 2015 12:17:18 +0000 (12:17 +0000)] 
toaster: make layouts consistent

The layer details page should have the same layout as all
other detail pages (recipes, packages). For this to happen,
the basebuilddetailpage.html and baseprojectpage.html
templates should use the same layout, and so should the
layerdetails.html and recipe.html templates.

This patch also capitalises the string 'All layers' in the
breadcrumb of layerdetails.html as all other breadcrumb elements.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agosiggen: Ensure taskdata default functions exist in base class
Richard Purdie [Fri, 23 Jan 2015 14:38:12 +0000 (14:38 +0000)] 
siggen: Ensure taskdata default functions exist in base class

The get/set_taskdata functions are now part of the API of the class,
ensure they exist in the base class definition so the noop handler
works.

[YOCTO #7233]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocooker: Use expanded_data for ASSUME_PROVIDED
Richard Purdie [Wed, 21 Jan 2015 16:08:06 +0000 (16:08 +0000)] 
cooker: Use expanded_data for ASSUME_PROVIDED

Users expect operators like _remove to work on this variable. We need
to use expanded_data to ensure this happens correctly.

[YOCTO #7135]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocooker: Rename event_data -> expanded_data
Richard Purdie [Wed, 21 Jan 2015 16:07:19 +0000 (16:07 +0000)] 
cooker: Rename event_data -> expanded_data

event_data would be better named expanded_data, then we can widen its scope
to other places in cooker where we need to access an expanded data store.
We certainly don't want multiple expanded data stores.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agoserver/process: Fix select call
Richard Purdie [Wed, 21 Jan 2015 17:43:51 +0000 (17:43 +0000)] 
server/process: Fix select call

There was a report that bitbake -e | less would use 100% cpu when it shouldn't
really. The issue appears to be a bogus file descriptor in the select call. We
shouldn't be blocking if there is event data pending to a *reader* from server
context.

[YOCTO #7138]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoastergui: enable re-ordering when columns are hidden
Alexandru DAMIAN [Wed, 21 Jan 2015 12:59:51 +0000 (12:59 +0000)] 
toastergui: enable re-ordering when columns are hidden

This patch enables table re-ordering when a sorted-by column is hidden.
This is default functionality in toaster table pages, but was not
enabled for all columns in this situation.

[YOCTO #7125]
[YOCTO #7022]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: all projects column show/hide
Alexandru DAMIAN [Wed, 21 Jan 2015 10:34:46 +0000 (10:34 +0000)] 
toastergui: all projects column show/hide

This patch fixes the show/hide in all projects page.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: fix the second 'view all targets' link
Belen Barros Pena [Tue, 20 Jan 2015 17:47:31 +0000 (17:47 +0000)] 
toastergui: fix the second 'view all targets' link

The project page has 2 links to the all targets page.
The one at the top of the page is working, but not
the one further down. This patch sorts that out.

[YOCTO #7147]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoastergui: minor fixes
Alexandru DAMIAN [Tue, 20 Jan 2015 18:08:16 +0000 (18:08 +0000)] 
toastergui: minor fixes

This is a minor fixes patch.

- legacy sorting by "timespent" does not crash the builds pages
- missing xhr_configvaredit view in observer mode is added

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastegui: project page build selected targets
Alexandru DAMIAN [Tue, 20 Jan 2015 16:56:35 +0000 (16:56 +0000)] 
toastegui: project page build selected targets

Fixing the action on the "Build selected targets" button.
Remove "build-button" duplicate id from the build page.

[YOCTO #7047]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: fix all targets page search
Alexandru DAMIAN [Tue, 20 Jan 2015 16:37:53 +0000 (16:37 +0000)] 
toastergui: fix all targets page search

This fixes the display of layers in all-targets page search/filtering
usage pattern by displaying layer-equivalence class.

The significant impact is the correct display of the list size
for search/filtering actions

[YOCTO #7051]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: fix all-targets redirect
Alexandru DAMIAN [Tue, 20 Jan 2015 15:57:11 +0000 (15:57 +0000)] 
toastergui: fix all-targets redirect

Fixes the all targets redirect to /api/1.0/targets.

[YOCTO #7147]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: newproject default release selection fix
Alexandru DAMIAN [Tue, 20 Jan 2015 12:55:19 +0000 (12:55 +0000)] 
toaster: newproject default release selection fix

This patch fixes the default project release selection to
obey the DEFAULT_RELEASE name set in ToasterSettings.

[YOCTO #7035]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: "Run again" button in build pages
Alexandru DAMIAN [Mon, 19 Jan 2015 17:27:35 +0000 (17:27 +0000)] 
toastergui: "Run again" button in build pages

This patch fixes the "Run again" button for the completed builds.

[YOCTO #7173]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: fix duplicate IDs all builds page
Alexandru DAMIAN [Mon, 19 Jan 2015 17:15:02 +0000 (17:15 +0000)] 
toastergui: fix duplicate IDs all builds page

This patch fixes the duplicate IDs found in the all builds page,
originating in the "Project" column filter.

Also fix misspell "Log1" instead of "Log".

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: save event backlog to build
Alexandru DAMIAN [Mon, 19 Jan 2015 16:28:19 +0000 (16:28 +0000)] 
toasterui: save event backlog to build

We add a call that saves any queued events to the build

[YOCTO #7021]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: save cookie for orderby/page size settings
Alexandru DAMIAN [Mon, 19 Jan 2015 15:14:39 +0000 (15:14 +0000)] 
toastergui: save cookie for orderby/page size settings

We save the current settings as cookies on the server side
for the layers, targets and machines pages under Project pages.

[YOCTO #6961]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agoprserv/serv: Improve exit handling
Richard Purdie [Wed, 21 Jan 2015 13:53:59 +0000 (13:53 +0000)] 
prserv/serv: Improve exit handling

Currently, I'm not sure how the prserver managed to shut down cleanly. These
issues may explain some of the hangs people have reported.

This change:

* Ensures the connection acceptance thread monitors self.quit
* We wait for the thread to exit before exitting
* We sync the database when the thread exits
* We do what the comment mentions, timeout after 30s and sync the database
  if needed. Previously, there was no timeout (the 0.5 applies to sockets,
  not the Queue object)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: project configuration variables page
David Reyna [Fri, 16 Jan 2015 16:42:41 +0000 (16:42 +0000)] 
toaster: project configuration variables page

Implement the project configuration variables page.

AlexD made whitespace changes and a minor fix.

[YOCTO #6588]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: project builds page
Alexandru DAMIAN [Fri, 16 Jan 2015 16:42:40 +0000 (16:42 +0000)] 
toaster: project builds page

This is a complete re-write of the "Project builds" page
based on the "All builds" page in managed mode.

[YOCTO #6589]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofetcher: use os.path.splitext() instead of string.split()
Ross Burton [Fri, 16 Jan 2015 17:53:23 +0000 (17:53 +0000)] 
fetcher: use os.path.splitext() instead of string.split()

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobin/bitbake: only check that /dev/shm is writable on Linux
Ross Burton [Wed, 21 Jan 2015 14:13:38 +0000 (14:13 +0000)] 
bin/bitbake: only check that /dev/shm is writable on Linux

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobb/fetch2/wget.py: latest_versionstring escape packagename when built regex
Aníbal Limón [Mon, 19 Jan 2015 23:34:25 +0000 (17:34 -0600)] 
bb/fetch2/wget.py: latest_versionstring escape packagename when built regex

When built package regex for use in searching upstream version in sites,
the package name need to be escaped to avoid usage of special regex
char.

For example when search for gtk+, '+' need to be escaped.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocooker.py: trap the ENOSPC error and translate it
Robert Yang [Tue, 20 Jan 2015 07:29:16 +0000 (23:29 -0800)] 
cooker.py: trap the ENOSPC error and translate it

Trap the ENOSPC error and translate it into a human readable error
message, which is good for debugging.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocooker: Further optimise pyinotify
Richard Purdie [Wed, 21 Jan 2015 11:16:20 +0000 (11:16 +0000)] 
cooker: Further optimise pyinotify

We currently add crazy numbers of watches on files. The per user limit is 8192
by default and on a system handling multiple builds, this can be an issue.

We don't need to watch all files individually, we can watch the directory containing
the file instead. This gives better resource utilisation and better performance
further reverting some of the performance regression seen with the introduction
of pyinotify.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocommand/cooker/knotty: Fix memres handling of command environment changes
Richard Purdie [Wed, 21 Jan 2015 10:49:01 +0000 (10:49 +0000)] 
command/cooker/knotty: Fix memres handling of command environment changes

If the environment changes, we need memory resident bitbake to adapt to those
changes. This adds in functionality to handle this alongside the configuration
option handling code. This means that the common usage:

MACHINE=X bitbake Y

now works with the memory resident server.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agolib/fetch2: Tweak get_srcrev() function description
Richard Purdie [Thu, 30 Oct 2014 18:23:21 +0000 (18:23 +0000)] 
lib/fetch2: Tweak get_srcrev() function description

Tweak the comments on get_srcrev() to better describe its function.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoasterui: fix variable data error
Alexandru DAMIAN [Wed, 14 Jan 2015 12:46:55 +0000 (12:46 +0000)] 
toasterui: fix variable data error

A bug slipped in the toaster ui that prevented saving of
build configuration despite the data being retrieved
from the server. This patch fixes the shaming mistake.

[YOCTO #7117]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>