]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
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>
10 years agotoaster: hide special code for core vars not present, disable add button
David Reyna [Fri, 27 Feb 2015 03:46:23 +0000 (19:46 -0800)] 
toaster: hide special code for core vars not present, disable add button

Hide the special config variable management sections when the respective
variables are not present. Disable the variable add button after a
variable is added so that blank values cannot be added, and also when a
variable name managed in the project detail page (e.g. BBLAYERS and MACHINE)
is entered.

[YOCTO #7246]
[YOCTO #7371]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
10 years agotoaster: layer rev tooltip only if necessary
Dave Lerner [Thu, 26 Feb 2015 20:29:23 +0000 (14:29 -0600)] 
toaster: layer rev tooltip only if necessary

On the heading for the layer detail page, only show a tool tip on the
heading revision branch/shaid field if the string is too large to fit
in the 13 character field. That is, don't show a hovering tool tip
with exactly the same string that is shown without the tip.

[YOCTO #7312]

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
10 years agotoaster: add sort, search, paging to recipe package page
Dave Lerner [Tue, 24 Feb 2015 22:14:41 +0000 (16:14 -0600)] 
toaster: add sort, search, paging to recipe package page

When selecting the packages tab on a recipe detail page, the page now
includes:
    column sort on package name and size columns,
    search on the package name, and
    pagination.

Column sort is added by splitting the recipe view/html for a recipe's
package list into a new url path, view name and template, so that
the sorting routine, views.reload_params(), interfaces similar to other
views.

Search, sorting,  and pagination are implemented for this detail page
using three new templates.
  templates/detail_pagination_bottom.html
  templates/detail_search_header.html
  templates/detail_sorted_header.html

views.recipe() is optimized since the recipe's package list is no
longer needed by the recipe template, only the recipe's package count
is required for the first page.

The recipe view and template also changes to support tabbing to the
right context on the recipe detail page from the recipe-package page.

[YOCTO #6154]

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
10 years agotoaster: models.py do not use transactions
Alexandru DAMIAN [Mon, 9 Mar 2015 11:23:47 +0000 (11:23 +0000)] 
toaster: models.py do not use transactions

This is the counterpart patch of
do not use transactions if the database autocommits

fix on toasterui, applied to models.py

[YOCTO #7402]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agoxmlrpc server: delete function on errors
Alexandru DAMIAN [Fri, 6 Mar 2015 15:42:03 +0000 (15:42 +0000)] 
xmlrpc server: delete function on errors

This patch makes sure to delete an idle function that
raises an exception for the xmlrpc server.

The counterpart functionality in the process server was
added with:

commit db50630948394bdcd361f3511af40c1896b1a017.
duthor: Richard Purdie <richard.purdie@linuxfoundation.org>
Date:   Wed Aug 20 22:31:06 2014 +0000

    bitbake: process: Deal with infinite looping of the server

This patch fixes

[YOCTO #7316]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agocooker: make sure state is properly used to accept clients
Alexandru DAMIAN [Fri, 6 Mar 2015 15:37:25 +0000 (15:37 +0000)] 
cooker: make sure state is properly used to accept clients

This patch fixes a bug where if the build is force stopped,
subsequent clients cannot connect to the server due to
unnecessary limits on setFeature.

Additionally, we make sure that the state is properly reset
even if the BuildCompleted event firing excepts for some reason.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agoxmlrpcserver: do not connect client on error
Alexandru DAMIAN [Fri, 6 Mar 2015 14:47:28 +0000 (14:47 +0000)] 
xmlrpcserver: do not connect client on error

We roll back the client connection if some error happens,
like during setFeatures, as to leave the server accessible
to other clients.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: delete test data
Alexandru DAMIAN [Thu, 5 Mar 2015 16:33:53 +0000 (16:33 +0000)] 
toaster: delete test data

Toaster used a test fixture to verify page rendering
on known data.

This fixture is outdated due to changes in the data structure,
and we remove it to avoid confusions about its usage.

The tests using this data are now disabled.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agocooker: read file watches on server idle
Alexandru DAMIAN [Mon, 23 Feb 2015 19:24:58 +0000 (19:24 +0000)] 
cooker: read file watches on server idle

The inotify facility monitoring changes to the config files
could be overwhelmed by massive changes to the watched files
while server is running.

This patch adds verification the notification watches to the
server idle functions, in addition to the cooker updateCache
command which executes only infrequently, thus preventing
overflowing the notification buffer.

[YOCTO #7316]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: config var layout fixes
David Reyna [Thu, 26 Feb 2015 21:42:01 +0000 (21:42 +0000)] 
toaster: config var layout fixes

Block duplicates of custom variables regardless of case, fix spacing of
delete icon, no extra error msg on blank DISTRO name

[YOCTO #7359]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: all projects data and sorts
David Reyna [Thu, 26 Feb 2015 21:42:00 +0000 (21:42 +0000)] 
toaster: all projects data and sorts

Implement the 'last build' data methods, enhance variable display,
add empty page and empty sort support.

[YOCTO #6682]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoastergui: add csrf tokens for AJAX calls
Alexandru DAMIAN [Thu, 26 Feb 2015 21:41:59 +0000 (21:41 +0000)] 
toastergui: add csrf tokens for AJAX calls

This patch adds CSRF tokens in pages using AJAX calls in
order to force Django to generate the CSRF cookie used to
authenticate the call.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoasterui: do not use transactions if the database autocommits
Alexandru DAMIAN [Thu, 26 Feb 2015 21:41:58 +0000 (21:41 +0000)] 
toasterui: do not use transactions if the database autocommits

Some databases, notably the SQLite3 adapter, force autocommits even if
the autocommit is turned off. The behavious is tracked in this bug:
http://bugs.python.org/issue8145#msg109965

Django refuses to work with autocommit off in this case, so we have
to take the same precautions when using manual transaction support.

[YOCTO #7363]
[YOCTO #7365]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: order layers with same priority
Alexandru DAMIAN [Thu, 26 Feb 2015 21:41:57 +0000 (21:41 +0000)] 
toaster: order layers with same priority

When we have multiple layers with the same priority, we
need to order them by date, newest first. The layer version
ID is a complete ordering by recent-ness, so it is suitable.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoasterui: fix sstate task identification
Alexandru DAMIAN [Thu, 26 Feb 2015 21:41:56 +0000 (21:41 +0000)] 
toasterui: fix sstate task identification

This patch fixes a problem where set sstate scene tasks
were not identified, causing cache attempt not being recorded.

[YOCTO #7223]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoastergui: stop covered task graph traversal early
Alexandru DAMIAN [Thu, 26 Feb 2015 21:41:55 +0000 (21:41 +0000)] 
toastergui: stop covered task graph traversal early

This patch stops the breadth-frist graph traversal for
finding covering tasks after the finding the first level
of executed tasks.

The reasoning is that the first level of executed tasks is the
actually relevent information on how a task was covered.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: fix typo in models.py
Belen Barros Pena [Thu, 26 Feb 2015 21:41:54 +0000 (21:41 +0000)] 
toaster: fix typo in models.py

The typo caused the tasks table to break when a task has no
help text.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake-layers: fix wildcard support in remove-layer
Paul Eggleton [Wed, 25 Feb 2015 15:29:58 +0000 (15:29 +0000)] 
bitbake-layers: fix wildcard support in remove-layer

The recent refactoring caused use of wildcards to trigger a traceback
because the old variable name was being used.

Fixes [YOCTO #7367].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoasterui: fix ETA calculation
Alexandru DAMIAN [Tue, 24 Feb 2015 17:21:00 +0000 (17:21 +0000)] 
toasterui: fix ETA calculation

This patch fixes the ETA calculation.

[YOCTO 7349]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoastergui: performance improvements in task details page
Alexandru Damian [Tue, 24 Feb 2015 17:20:58 +0000 (17:20 +0000)] 
toastergui: performance improvements in task details page

This patch brings better forward and reverse dependency computing in
tasks page (offloading python code to the database), as well as
replacing the recursive depth-first covered-by tree search with
breadth-first search.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoasterui: disable autocommit for build logging
Alexandru DAMIAN [Tue, 24 Feb 2015 17:20:57 +0000 (17:20 +0000)] 
toasterui: disable autocommit for build logging

This patch disables autocommit for inserting build data,
effectively updating all build data in a single transaction.

This is a purely performance improvement patch, as the transaction
will always be commited.

Similar manual transaction handling in the layer source update
method. Added feedback messages during update method.

[YOCTO #7140]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: update requirement for Django 1.6
Alexandru Damian [Tue, 24 Feb 2015 17:20:56 +0000 (17:20 +0000)] 
toaster: update requirement for Django 1.6

In order to bring in transaction.set_commit support,
we need Django 1.6, discarding support for Django 1.5

This patch removes 1.5 from the list of acceptable Django
versions.

Signed-off-by: Alexandru Damian <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoasterui: improving the latest builds consistency
Belen Barros Pena [Tue, 24 Feb 2015 17:20:55 +0000 (17:20 +0000)] 
toasterui: improving the latest builds consistency

We have 2 pages where we have a 'latest builds' section:
the 'all builds / all projects' page and the 'project'
page. Unfortunately, we are currently using different
code base in both, which means that some inconsistencies
between the two in behaviour and presentation have sneaked
in.

This patch addresses some of such inconsistencies.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: Add machine selection notification
Michael Wood [Tue, 24 Feb 2015 17:20:54 +0000 (17:20 +0000)] 
toaster: Add machine selection notification

This adds a notification to the project page to notify users of the
change in project configuration.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoasterui: style the Toaster version information
Belen Barros Pena [Tue, 24 Feb 2015 17:20:53 +0000 (17:20 +0000)] 
toasterui: style the Toaster version information

When debugging is turned on, we show some Toaster version
information in the top bar. Present it so that it can
be easily copied and pasted.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: layerdetails Fix pagination controls
Michael Wood [Tue, 24 Feb 2015 17:20:52 +0000 (17:20 +0000)] 
toaster: layerdetails Fix pagination controls

Bring the pagination controls into line with others in toaster by
limiting the number of page buttons to 5

[YOCTO #7195]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: layerdetails Add link to machines file
Michael Wood [Tue, 24 Feb 2015 17:20:51 +0000 (17:20 +0000)] 
toaster: layerdetails Add link to machines file

In the machines table for a layer add a link/icon to the machine
definition file.

[YOCTO #7241]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: layerdetails summary/descriptions to be searchable
Michael Wood [Tue, 24 Feb 2015 17:20:50 +0000 (17:20 +0000)] 
toaster: layerdetails summary/descriptions to be searchable

Allow the descriptions of the machine summary and layer description to
be searchable in their respective tables.

[YOCTO #7199]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoastergui: fix spacing and input field sizes
Belen Barros Pena [Tue, 24 Feb 2015 17:20:49 +0000 (17:20 +0000)] 
toastergui: fix spacing and input field sizes

The revision label was missing the projec-form class (which
controls the spacing in the form), and the revision text
field was a bit too long, so changed it from span4 to
span3.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake-layers: add ability to fetch layers and their dependencies from layer index
Chong Lu [Fri, 20 Feb 2015 17:52:43 +0000 (17:52 +0000)] 
bitbake-layers: add ability to fetch layers and their dependencies from layer index

Add a command to query layer dependencies from a layer index such as the
OpenEmbedded Layer Index at http://layers.openembedded.org. Fetches the
layer and its dependencies and adds them into conf/bblayers.conf.

[YOCTO #5348]

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake-layers: fix logging
Paul Eggleton [Fri, 20 Feb 2015 17:52:42 +0000 (17:52 +0000)] 
bitbake-layers: fix logging

Logging output was simply not getting printed.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobitbake-layers: refactor to use argparse instead of cmd
Paul Eggleton [Fri, 20 Feb 2015 17:52:41 +0000 (17:52 +0000)] 
bitbake-layers: refactor to use argparse instead of cmd

This makes help formatting and option handling a lot more standardised
and allows us to drop a bunch of code. We also gain slightly more
straightforward error handling.

One side-effect however is that the old subcommand syntax using
underscores is no longer supported. The dashed form has been supported
(and displayed in the help text) for quite a while now so I wouldn't
imagine that will be much of an issue.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoaster: importlayer Remove description input field
Michael Wood [Wed, 18 Feb 2015 15:18:51 +0000 (15:18 +0000)] 
toaster: importlayer Remove description input field

This wasn't required or working due to a typo and adds ambiguity between
the summary and description. The correct method for changing the description
or summary is via the layerdetails page.

[YOCTO #7190]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoasterui: remove layer directory in managed mode
Belen Barros Pena [Mon, 16 Feb 2015 16:49:40 +0000 (16:49 +0000)] 
toasterui: remove layer directory in managed mode

Removes the layer directory information from the packages
built page when in managed mode.

[YOCTO #7221]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoasterui: style the Toaster version information
Belen Barros Pena [Mon, 16 Feb 2015 17:52:51 +0000 (17:52 +0000)] 
toasterui: style the Toaster version information

In debug mode, we show the Toaster version and mode in the
top bar. Display them inside a tooltip that appears when
you hover over a nice info icon to make them less conspicuous.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
10 years agotoaster: layerdetails Don't show None type in description/summary
Michael Wood [Wed, 18 Feb 2015 15:09:44 +0000 (15:09 +0000)] 
toaster: layerdetails Don't show None type in description/summary

When the result for the summary or description is None don't output the
result as the string version of None, use an empty value so that the
"Not set" mechanism works.

[YOCTO #7244]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: landing page when no build module
David Reyna [Wed, 18 Feb 2015 05:54:15 +0000 (21:54 -0800)] 
toaster: landing page when no build module

Add landing page for managed build pages when build module not installed.

Some wording and whitespace changed.

[YOCTO #6483]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: get proper version string
Alexandru DAMIAN [Wed, 18 Feb 2015 18:28:18 +0000 (18:28 +0000)] 
toaster: get proper version string

This patch brings in the toaster tree commit ID in
the version string to allow users properly report their
toaster version when submitting issues.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: UI query performance improvements
Alexandru DAMIAN [Tue, 17 Feb 2015 17:24:29 +0000 (17:24 +0000)] 
toasterui: UI query performance improvements

We reduce the number of queries by using "select_related"
to bring in more data in a single query. Improvements in
project page refresh, recipes table and tasks table.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: fix time estimation in project page
Alexandru Damian [Tue, 17 Feb 2015 15:02:26 +0000 (15:02 +0000)] 
toasterui: fix time estimation in project page

This patch fixes the time estimation to build completion
in project page. Additionally it fixes the Most Recent Builds
section used in various pages in managed mode, and proper
time to build estimation in all pages.

[YOCTO #7004]

Signed-off-by: Alexandru Damian <alexandru.damian@intel.com>
10 years agotoaster: properly detect starting in rolling log file
Alexandru DAMIAN [Tue, 17 Feb 2015 12:57:29 +0000 (12:57 +0000)] 
toaster: properly detect starting in rolling log file

This patch brings in properly detection of system start in
a rolling toaster_ui log file.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: bitbake cooker log saving and downloading
Alexandru DAMIAN [Mon, 16 Feb 2015 17:47:07 +0000 (17:47 +0000)] 
toaster: bitbake cooker log saving and downloading

This patch brings in cooker log saving and proper download links.

* toasterui will now write the cooker log file if running in managed
mode
* the BuildRequest has a new state, REQ_ARCHIVE, indicating that the
build is completed, and the artifacts are ready to be grabbed
* the runbuild test execution commands will gather needed artifacts,
and save them to a storage directory selected during Toaster setup.
* the build dashboard, project builds and all builds pages have
permanent links for the cooker log

[YOCTO #7220]
[YOCTO #7206]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
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>