]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
10 years agotoastergui: new project page
Alexandru DAMIAN [Wed, 26 Nov 2014 12:18:55 +0000 (12:18 +0000)] 
toastergui: new project page

Patch that brings in to new project page according to specifications.

[YOCTO #6596]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: fix loadconf path calculation
Alexandru DAMIAN [Tue, 25 Nov 2014 16:12:05 +0000 (16:12 +0000)] 
toaster: fix loadconf path calculation

Fixing the path calculation for local layer sources, as the
path need to be absolute.

Added tests for pieces of code.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: fix layer identification for managed builds
Alexandru DAMIAN [Tue, 25 Nov 2014 13:40:38 +0000 (13:40 +0000)] 
toasterui: fix layer identification for managed builds

If we have a managed build, we match the layers used for build
with the layers configured for project, as we know where the layers
are coming from

[YOCTO #6962]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: display Toaster exceptions and other fixes
Alexandru DAMIAN [Tue, 25 Nov 2014 10:12:46 +0000 (10:12 +0000)] 
toaster: display Toaster exceptions and other fixes

Changing ToasterUI to log toaster exceptions on a different level than
build errors.

Updating the build dashboard to show Toaster exceptions.

We add extra logging to console for exceptions.

Fixed a problem where packages database entries were created instead of
being looked up in the database, conficting with entries created to
satisfy dependency information.

Toaster now checks for invalid states at startup and performs needed
cleanups.

Removed loading reference to jquery-ui.min.css as we do not have this
file.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: do not show project info in interactive mode
Alexandru DAMIAN [Tue, 25 Nov 2014 11:21:53 +0000 (11:21 +0000)] 
toastergui: do not show project info in interactive mode

The most recent builds section showed the project name and the Run Again
buttons regardless whenever the Toaster was in interactive or managed
modes. These widgets have no meaning in interactive mode, and this
patch disables the widgets if toaster is not running in Managed mode.

[YOCTO #6776]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: update layer search criteria
Alexandru DAMIAN [Mon, 24 Nov 2014 12:52:49 +0000 (12:52 +0000)] 
toastergui: update layer search criteria

In order to accomodate the designs around imported layer,
we add a "project" field for in the layer versions.

The field must be set if and only if the layer is manually
imported in the project. This will prevent information leakage
between different projects.

The views have been updated to perform relevant layer queries
in a single location.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: base Only show New Build button when there are > 0 projects
Michael Wood [Thu, 20 Nov 2014 15:06:28 +0000 (15:06 +0000)] 
toaster: base Only show New Build button when there are > 0 projects

Only show new build button if we have defined at least one project as we
can't select a project to build against if there are no projects created
yet.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: use http proxies to fetch data
Alexandru DAMIAN [Fri, 21 Nov 2014 13:58:51 +0000 (13:58 +0000)] 
toaster: use http proxies to fetch data

Under some network configurations http proxies are used
for Internet access. This patch makes Toaster obey
the http_proxy environment variable when fetching
information from layer indexes.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: do not show target if target name is empty
Belen Barros Pena [Tue, 18 Nov 2014 14:16:57 +0000 (14:16 +0000)] 
toaster: do not show target if target name is empty

In the all targets table, all entries should have a target
name. If a target does not have a name, something has not
gone to plan, so don't show it.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
10 years agotoaster: fix dependencies dialog layout
Belen Barros Pena [Thu, 13 Nov 2014 11:16:56 +0000 (11:16 +0000)] 
toaster: fix dependencies dialog layout

Remove the bottom margin of forms inside dependencies
modal dialogs.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: add no results state to all layers page
Belen Barros Pena [Thu, 13 Nov 2014 11:34:01 +0000 (11:34 +0000)] 
toaster: add no results state to all layers page

When you search for a layer and your search returns no results,
we should show you an alert and a link to show back all layers,
as we do in all other tables.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
10 years agotoaster: Tiny refinements to the new build button dialog
Belen Barros Pena [Tue, 18 Nov 2014 12:02:22 +0000 (12:02 +0000)] 
toaster: Tiny refinements to the new build button dialog

* Get rid of the display:block attribute for the "View
all projects" link, to stop it from firing when you
click outside (but next to) the link

* Give some margin to the incomplete configuration
alert

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
10 years agotoaster: project page remove additional tooltip for Change pencil
Michael Wood [Fri, 14 Nov 2014 15:44:55 +0000 (15:44 +0000)] 
toaster: project page remove additional tooltip for Change pencil

We have a global pencil icon tooltip so avoid two tooltips appearing by
removing them from the project page. This also means it's one less place to
update it.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: Add New Build Button feature
Michael Wood [Tue, 11 Nov 2014 16:30:22 +0000 (16:30 +0000)] 
toaster: Add New Build Button feature

This adds a quick access dropdown menu feature for running builds on a
selected project.

[YOCTO #6677]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: libtoaster: Add getProjectInfo utility function
Michael Wood [Fri, 14 Nov 2014 18:12:20 +0000 (18:12 +0000)] 
toaster: libtoaster: Add getProjectInfo utility function

Add a utility function to return a specified project's info/config
This re-uses the existing server code path for the project edit
except that it allows any project id to be used as a parameter

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: Create libtoaster.js with some utility functions
Michael Wood [Tue, 11 Nov 2014 16:23:58 +0000 (16:23 +0000)] 
toaster: Create libtoaster.js with some utility functions

Replace main.js with libtoaster. This can be a place for common
functionality for toaster. Calling it lib... makes it more obvious as
well as helps with code readability due to the namespacing.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: layer name correlation
Alexandru DAMIAN [Fri, 14 Nov 2014 17:07:06 +0000 (17:07 +0000)] 
toastergui: layer name correlation

This patch modifies how layers are identified and matched.

Layers were primarely organized by the source of layer information,
and Releases were separated by both layer git branches and originating
source of layer information. This setup prevented mixing layers from
different sources for a certain release, which didn't match the way
people use Yocto Project / bitbake.

This patch brings name-based indentification, where layers with the
same name are assumed to be equivalent, in the sense of being able
to substitute one another. To facilitate this identification to
humans, layers are differentiated by GIT URI instead of layer sources,
which was a rather arbitrary abstraction.

Additional changes include modification to models in order accomodate
for the new data structure, and to config file loading to match
the new toasterconf.json layout.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: skip virtualenv when searching for django apps
Michael Wood [Mon, 27 Oct 2014 19:03:06 +0000 (19:03 +0000)] 
toaster: skip virtualenv when searching for django apps

If we are using a virtualenv in the current search path we end up trying
to add modules to the django apps list which do not have the correct
load path or are internal to other modules. Fix this by skipping the
virtualenv path.

[YOCTO #6896]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: fix file name collision
Belen Barros Pena [Tue, 18 Nov 2014 15:02:17 +0000 (15:02 +0000)] 
toaster: fix file name collision

When toaster is used by multiple users on the same machine,
it is possible that files in /tmp have a name race.

This patch makes sure that the files have unique names.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
10 years agobitbake-worker: exit normally when SIGHUP
Robert Yang [Mon, 17 Nov 2014 10:27:36 +0000 (02:27 -0800)] 
bitbake-worker: exit normally when SIGHUP

Fixed:
1) Run "bitbake recipe" in the terminal
2) Close the terminal while building
3) $ ps aux | grep bitbake-worker
There will be many processes, and they will keep the resources (e.g.,
memory), and won't exit unless kill or kill -9.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agobb.codeparser.py: Remove reference for oe.utils.contains
Otavio Salvador [Wed, 12 Nov 2014 10:33:23 +0000 (08:33 -0200)] 
bb.codeparser.py: Remove reference for oe.utils.contains

The oe.utils.contains function has been removed from OE-Core metadata
as the references for it has been replaced to use the
bb.utils.contains.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agodepexp: use stateForceShutdown instead of stateStop
Ross Burton [Thu, 13 Nov 2014 16:33:18 +0000 (16:33 +0000)] 
depexp: use stateForceShutdown instead of stateStop

This state was renamed in bitbake 12e9d3 but this use of it wasn't changed.

[ YOCTO #5445 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agocooker.py: fix loginfo op being set to an invalid value
Brendan Le Foll [Wed, 12 Nov 2014 11:42:39 +0000 (11:42 +0000)] 
cooker.py: fix loginfo op being set to an invalid value

loginfo "op" was being set to invalid values in saveConfigurationVar it was
working because set is a python global but append is not. This replaces both
the "op" with strings and removes the crash when calling appendConfigurationVar

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agotoastergui: fix XSS injection points in projects page
Alexandru DAMIAN [Tue, 11 Nov 2014 17:01:09 +0000 (17:01 +0000)] 
toastergui: fix XSS injection points in projects page

We close XSS injection points in Projects page.

* modify the json filter to properly escape HTML tags in strings
* enable $sanitize to automatically sanitize dangerous HTML in
user-supplied input
* clean dangerous characters in targets field, as that field contents
will be directly passed to a shell command

Based on the vulnerability discovered and the patch provided by Michael Wood.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: importing angular service
Alexandru DAMIAN [Tue, 11 Nov 2014 16:29:44 +0000 (16:29 +0000)] 
toaster: importing angular service

We import angular services ngRoute and
ngSanitize that helps performing user-input
sanitization in order to prevent XSS.

Both services are version 1.2.23.

License is MIT.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoastergui: Silly UI fixes
Belen Barros [Tue, 11 Nov 2014 12:22:46 +0000 (12:22 +0000)] 
toastergui: Silly UI fixes

Small fixes to the UI of the project.html and targets.html templates.

In project.html:

* Remove some inline styles and replace them with declarations
in default.css

* Make sure that the 'add' and 'build' buttons in the project
configuration areas have nice, rounded corners

* Add some space between the machine name and the change icon

* Remove the input-prepend class from the build form (we don't
need it)

* Apply the success class to target names in completed builds

* Bold machine and project name in the change notifications to
match all other notifications

* There is a bug in Twitter Boostrap in tooltips inside buttons, so
moving the tooltip in the 'build' button outside the button tag

In targets.html, just add a missing space between the semicolon
and the first layer name in the add layer notification.

Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: Replace bootstrap js with the correct version
Michael Wood [Thu, 6 Nov 2014 15:27:24 +0000 (15:27 +0000)] 
toaster: Replace bootstrap js with the correct version

The bootstrap version we are working with is 2.3 not 3

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoastergui: changes for the Project page, round 3 of reviews
Alexandru DAMIAN [Fri, 7 Nov 2014 13:26:45 +0000 (13:26 +0000)] 
toastergui: changes for the Project page, round 3 of reviews

This patch implements the round 3 of reviews for the Project
page, including fixing the time display, fixing the build list
display, with fade-in and fade-out animations, and various
small layout fixes.

[YOCTO #6587]
[YOCTO #6731]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: separate the load configuration file command
Alexandru DAMIAN [Thu, 6 Nov 2014 12:57:58 +0000 (12:57 +0000)] 
toaster: separate the load configuration file command

We separate the load configuration command as to allow
system administrators load toasterconf.json file as part of the
setup process.

[YOCTO #6895]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: Update filter count labels when Add/Remove layers
Michael Wood [Fri, 31 Oct 2014 16:18:04 +0000 (16:18 +0000)] 
toaster: Update filter count labels when Add/Remove layers

When the user has added/removed a layer but no page reload/requery has
happened we need to update the filter count labels client side.

[YOCTO #6861]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoaster: Fix the table data so that it matches the column order
Michael Wood [Wed, 29 Oct 2014 17:44:33 +0000 (17:44 +0000)] 
toaster: Fix the table data so that it matches the column order

This fixes the issue where the column is under the wrong table header.

[YOCTO #6684]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
10 years agotoastergui: Various fixes for projects, layers and targets page
Alexandru DAMIAN [Thu, 2 Oct 2014 16:58:15 +0000 (17:58 +0100)] 
toastergui: Various fixes for projects, layers and targets page

This is a combined set of fixes for the project, layers and targets
pages in the project section of toaster.

The fixes correct behaviour and look in various parts of the page,
including submitting XHR commands and updating the DOM with the correct
info.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agoadding angular-animate plugin
Alexandru DAMIAN [Fri, 7 Nov 2014 13:23:58 +0000 (13:23 +0000)] 
adding angular-animate plugin

We add a static copy of the Angular's animate plugin,
version 1.2.23

Licensed under MIT.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: update Release model to pinpoint to specific Branch
Alexandru DAMIAN [Wed, 5 Nov 2014 14:47:51 +0000 (14:47 +0000)] 
toaster: update Release model to pinpoint to specific Branch

We update the release model to pinpoint to specific branch,
instead of holding a branch name that needs to be matched.

This is needed because we move away from mixing branches on different
layer sources.

Various minor changes to models file.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster: SQL query logging
Alexandru DAMIAN [Wed, 5 Nov 2014 13:30:31 +0000 (13:30 +0000)] 
toaster: SQL query logging

We add a logger, enabled through the settings.py, that
logs all SQL queries, with timestamp and duration, to console.

This is helpful in profiling the SQL queries.

The facility is disabled by default.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoasterui: performance improvements
Alexandru DAMIAN [Tue, 4 Nov 2014 16:47:36 +0000 (16:47 +0000)] 
toasterui: performance improvements

Improve the performance of data logging in toasterui.
We modify the data queries used to:

 * cache searching in memory
 * insert in bulk (i.e. multiple values per insert, where possible)

On development test rig (networked mysql), on no-op build,
time for data recording is reduced from 4:10 to 1:30 (minutes).

We also improve the logging, so it is easier to detect
toasterui errors.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agotoaster script: webport option and other improvements
Alexandru DAMIAN [Mon, 3 Nov 2014 13:47:16 +0000 (13:47 +0000)] 
toaster script: webport option and other improvements

We add the "webport=" command line option as to allow starting
the web server on a custom port.

The bitbake server port is now auto-allocated. This is needed
to be able to run multiple toaster environments on a single machine.

We tackle bug 6023 (toaster refusing to start when lock file is present)
by using more specific checks, and automatically recover from
bitbake server down / webserver up error mode.

Command line parameters are now read on both interactive and managed
modes.

The localhost and ssh controllers are updated to work with the modified
toaster launcher script.

[YOCTO #6023]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
10 years agoprogressbar: use '/usr/bin/env' in shebangs with python
Martin Hundebøll [Thu, 30 Oct 2014 10:43:24 +0000 (11:43 +0100)] 
progressbar: use '/usr/bin/env' in shebangs with python

To support yocto on systems with python3 as default version, scripts
should use /usr/bin/env python in the shebang, as this allows the use of
a fake env to mimic python2 as default version.

This patch simply replaces occurrences of #!/usr/bin/python with
 #!/usr/bin/env python and was done with this oneliner:

     git grep -lE '^#!/usr/bin/python' | xargs \
         sed -i 's|/usr/bin/python|/usr/bin/env python|'

Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
10 years agofetch/wget: Add latest_versionstring method
Aníbal Limón [Wed, 5 Nov 2014 18:10:29 +0000 (12:10 -0600)] 
fetch/wget: Add latest_versionstring method

Being able to query whether updated versions of a url are available
is useful, not least for the package reporting system. Since such code
is closely linked to the url type and the url itself, the fetcher
makes a locical place to contain this code.

For wget based urls this means taking upstream directory listings
and searching those for later versions, returning those that are
found.

The patch also adds unittests for this function so that if
improvements are made, the original test urls can be used
to evaulate the those changes.

This is based on code from Irina Patru <irina.patru@intel.com>.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch/git: Add latest_versionstring method
Aníbal Limón [Wed, 5 Nov 2014 18:10:28 +0000 (12:10 -0600)] 
fetch/git: Add latest_versionstring method

Being able to generate a version string representing the most recent git commit
given git is useful, not least for the package reporting system.

This adds in a latest_versionstring method to the git fetcher
which allows users to query the latest version using ls-remote
and filtering the responses.

The patch also adds unittests for this function so that if
improvements are made, the original test urls can be used
to evaulate the those changes.

This is based on code from Irina Patru <irina.patru@intel.com>.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodata_smart.py: fix variable splitting at _remove mechanism
Stefan Müller-Klieser [Thu, 6 Nov 2014 12:03:38 +0000 (13:03 +0100)] 
data_smart.py: fix variable splitting at _remove mechanism

If we split variables only at whitespaces, a slipped in tab will render
a value unremovable.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosiggen: Fix shared work checksum mismatch/rebuild issues
Richard Purdie [Fri, 7 Nov 2014 17:47:37 +0000 (17:47 +0000)] 
siggen: Fix shared work checksum mismatch/rebuild issues

Similar to the last shared work task signature bug, we've found another
one. Looking at the improved output of diffsigs in this case:

runtaskdeps changed from [
'autoconf_2.69.bb.do_populate_sysroot:virtual:native',
'gnu-config_20120814.bb.do_populate_sysroot:virtual:native',
'libgcc-initial_4.9.bb.do_patch:virtual:nativesdk'
] to [
'autoconf_2.69.bb.do_populate_sysroot:virtual:native',
'gcc-crosssdk-initial_4.9.bb.do_patch',
'gnu-config_20120814.bb.do_populate_sysroot:virtual:native'
]

so we can get a different task hash since libgcc sorts before gnu-config
and gcc sorts after it. We could do with a way of fixing this, the best
I can come up with is to include a single parent directory. Since
recipes are never at the top of any metadata trees I've seen, this
should suffice for now.

I'm planning to burn the concept of shared work within bitbake
and do something at the metadata level in the 1.8 timeframe as its just
too fragile as things stand and hard to fix well.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosiggen: Add computed hash code to verify hash computation to dumpsig
Richard Purdie [Fri, 7 Nov 2014 17:46:05 +0000 (17:46 +0000)] 
siggen: Add computed hash code to verify hash computation to dumpsig

This is useful code to double check the computed checksum value if nothing
else. Might as well have it in tree.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosiggen: Ensure we output if the ordering of runtaskdeps changes
Richard Purdie [Fri, 7 Nov 2014 17:45:07 +0000 (17:45 +0000)] 
siggen: Ensure we output if the ordering of runtaskdeps changes

Order of runtaskdeps is important. If the hashes differ we should print output.
This is complicated by shared work where the filenames themselves can differ,
but the checksum should not.

This fixes a case where two different checksums could show no output with
bitbake-diffsigs.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoastergui: fix invalid build url usage
Alexandru DAMIAN [Fri, 31 Oct 2014 19:17:02 +0000 (19:17 +0000)] 
toastergui: fix invalid build url usage

We need to pass the URL for the build action as javascript
parameter, since the project ID is different for each build,
instead of using the project id of the most-recently-used project.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoasterui: improvements in data reading
Alexandru DAMIAN [Fri, 31 Oct 2014 19:17:01 +0000 (19:17 +0000)] 
toasterui: improvements in data reading

We add improvements in data reading, following
issues discovered in testing.

- elapsed_time is now read from buildstats
- we add safeguards to not fail logging if the build was triggered
with a toaster_brbe configuration, but it's running in
1.6 mode
- added log markups for build finish to let other programs
known when the work is done.

[YOCTO #6833]
[YOCTO #6685]
[YOCTO #6887]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoprserv: Use WAL mode
Richard Purdie [Wed, 5 Nov 2014 16:58:13 +0000 (16:58 +0000)] 
prserv: Use WAL mode

Ideally, we want the PR service to have minimal influence from
queued disk IO. sqlite tends to be paranoid about data loss and
locks/fsync calls. There is a "WAL mode" which changes the journalling
mechanism and would appear much better suited to our use case.

This patch therefore switches the database to use WAL mode. With this
change, write overhead appears significantly reduced.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: Make printed 'runqueue' be consistently capitalized
Gary Thomas [Wed, 5 Nov 2014 15:08:24 +0000 (08:08 -0700)] 
bitbake: Make printed 'runqueue' be consistently capitalized

This has always bothered me:
  NOTE: Preparing runqueue
  NOTE: Executing RunQueue Tasks

This patch changes the messages to be consistent.

Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobs4: Add beautifulsoup 4.3.2 to assist the fetcher
Aníbal Limón [Wed, 5 Nov 2014 18:10:27 +0000 (12:10 -0600)] 
bs4: Add beautifulsoup 4.3.2 to assist the fetcher

Added Beautifulsoup module because fetch/wget latest_versionstring
method depends on it.

This provides support to fetch/wget.py module for search new package
versions in upstream sites.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2/git: Allow other namespaces than refs/heads to be searched.
Fredrik Svensson [Tue, 4 Nov 2014 11:29:32 +0000 (12:29 +0100)] 
fetch2/git: Allow other namespaces than refs/heads to be searched.

This makes it possble to fetch Gerrit review references which are
normally stored under refs/changes.

Please disregard previous patch with the same topic.

Signed-off-by: Fredrik Svensson <fredrik.svensson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoprserv/serv: Ensure sync happens in the correct thread
Richard Purdie [Tue, 4 Nov 2014 14:02:32 +0000 (14:02 +0000)] 
prserv/serv: Ensure sync happens in the correct thread

The sync/commit calls are happening in the submission thread which can
race against the handler. The handler may start new transactions which
then causes the submission thread to error with "cannot start a
transaction within a transaction".

The fix is to move the calls to the correct thread.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: clarify startup message
Alexandru DAMIAN [Thu, 23 Oct 2014 14:00:01 +0000 (15:00 +0100)] 
bitbake: clarify startup message

Fix the startup message by making clear which
server runs on which port.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: update web vcs fields for layers
Alexandru DAMIAN [Mon, 20 Oct 2014 15:26:14 +0000 (16:26 +0100)] 
toaster: update web vcs fields for layers

We update the layer vcs web fields to record extra URLs
for directory and file viewing. Updating the layers
view to show this data.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoastergui: provide download file capability
Alexandru DAMIAN [Tue, 14 Oct 2014 12:57:33 +0000 (13:57 +0100)] 
toastergui: provide download file capability

We add, for the localhost environments, the capability to
download build artifacts. This is a pontentially dangerous API,
because it gives unrestricted read access to the build environment
file system - do not expose the functionality directly to the
web layer, but use filtering/translation code, such as
exemplified in the build_artifact view.

The capability for remote build environments is dependent
on bug 6835, as to use the collect storage as intermediary
storage for serving files.

[YOCTO #6834]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: change startup parameter passing to avoid race
Alexandru DAMIAN [Mon, 13 Oct 2014 16:10:39 +0000 (17:10 +0100)] 
toaster: change startup parameter passing to avoid race

We avoid a race between the setting the TOASTER_BRBE variable
and reading the variable in toaster ui by supplying the variable
at server startup time through the toaster.conf post-read file.

Additional small changes are included, including marking the
build request with the environment id of where the build took place.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: improvements for admin pages
Alexandru DAMIAN [Thu, 9 Oct 2014 11:37:30 +0000 (12:37 +0100)] 
toaster: improvements for admin pages

The default django URL validator marks git URLs as not valid,
so we change the default validators to a URLValidator-derived
that adds git and ssh protocol schemas and inhibits the
frontend URL validator.

We update the branch names based on the white-listed
branch names in the Releases name.

Adds proper class string to ease usage in admin section.

Other small improvements.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Conflicts:
bitbake/lib/toaster/orm/admin.py

11 years agotoaster: use modified validators for git url fields
Alexandru DAMIAN [Thu, 9 Oct 2014 11:37:30 +0000 (12:37 +0100)] 
toaster: use modified validators for git url fields

The default django URL validator marks git URLs as not valid,
so we change the default validators to a URLValidator-derived
that adds git and ssh protocol schemas and inhibits the
frontend URL validator.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: changes to the landing page
Alexandru DAMIAN [Fri, 3 Oct 2014 17:03:37 +0000 (18:03 +0100)] 
toaster: changes to the landing page

This patch brings in a new landing page to be shown
when there are no builds and no projects available.

The builds page now displays only only the builds part,
without the landing page bits.

There is a new projects page that displays the All Projects
table as specified in the design.

[YOCTO #6682]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoastergui: protect variable value reads
Alexandru DAMIAN [Tue, 30 Sep 2014 12:45:51 +0000 (13:45 +0100)] 
toastergui: protect variable value reads

We make sure we don't throw an exception when reading
non-existent variables from the database, and we return
empty data that can be displayed without ill effects.

This fixes the Configuration page on empty builds.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoastergui: refactor objects get in views.py
Alexandru DAMIAN [Tue, 30 Sep 2014 12:31:57 +0000 (13:31 +0100)] 
toastergui: refactor objects get in views.py

We refactor the objects.filter()[0] pattern to the proper
Django QuerySet usage of objects.get() to make sure we
get one and only one object for a query.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoastergui: project edit capabilities in all layers page
Alexandru DAMIAN [Mon, 29 Sep 2014 19:20:33 +0000 (20:20 +0100)] 
toastergui: project edit capabilities in all layers page

This patch definitivates the all layers page, providing interactivity
for adding and removing layers inside the project from this page.

[YOCTO #6590]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: fix Project page in order to trigger builds
Alexandru DAMIAN [Tue, 9 Sep 2014 10:47:13 +0000 (11:47 +0100)] 
toaster: fix Project page in order to trigger builds

This patch rewrites the Project page and the additional
infrastructure in order to fix a bug that makes triggering
builds through UI impossible, and to introduce data feeds
for suggestions for the user.

11 years agotoaster: fix layer source update code
Alexandru DAMIAN [Tue, 23 Sep 2014 15:48:52 +0000 (16:48 +0100)] 
toaster: fix layer source update code

We fix problems in the layer source update code related to
non-null field restrictions.

We add missing layer dependency update.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: we add static copies of AngularJS and related libraries
Alexandru DAMIAN [Fri, 5 Sep 2014 12:13:09 +0000 (13:13 +0100)] 
toaster: we add static copies of AngularJS and related libraries

We add the Angular JS library, release 1.2.23
https://angularjs.org/

We add the Bootstrap directives for AngularUI, release 0.11.0
http://angular-ui.github.io/bootstrap/

The license ued for all libraries is MIT

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoastergui: update breadcrumb in analysis pages
Alexandru DAMIAN [Tue, 30 Sep 2014 12:57:14 +0000 (13:57 +0100)] 
toastergui: update breadcrumb in analysis pages

If we are in managed mode, and we inspect a build that comes
from a project, we modify the breadcrumb as to display
the project from where the build originated.

[YOCTO #6776]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoasterui: save build id in build request on first chance
Alexandru DAMIAN [Mon, 29 Sep 2014 14:35:59 +0000 (15:35 +0100)] 
toasterui: save build id in build request on first chance

We change the saving of the build id to the build request as
soon is the build is created, as to allow for a consistent
display of build data while build is in progress.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoastergui: Show failed tasks in the build dashboard
Belen Barros Pena [Mon, 29 Sep 2014 14:37:29 +0000 (15:37 +0100)] 
toastergui: Show failed tasks in the build dashboard

The build dashboard is supposed to show failed
tasks (if any) in the "Tasks" section.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoastergui: Tiny change to help text
Belen Barros Pena [Mon, 29 Sep 2014 13:44:03 +0000 (14:44 +0100)] 
toastergui: Tiny change to help text

Modify the help text we show for the "Task covered by"
information to indicate that a task can be covered by
more than one task.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
11 years agotoastergui: Remove extra <div> from build dashboard
Belen Barros Pena [Mon, 29 Sep 2014 13:23:22 +0000 (14:23 +0100)] 
toastergui: Remove extra <div> from build dashboard

For builds that generate no rootfs files, an extra <div>
was being added between the build status and the build
summary section. This commit removes the extra <div> and the
white space it created.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
11 years agotoastergui: Remove sorting from "Size over total" column
Belen Barros Pena [Mon, 29 Sep 2014 13:13:11 +0000 (14:13 +0100)] 
toastergui: Remove sorting from "Size over total" column

The sorting in this column is tied to the sorting by
"Size". If we make both columns sortable, when you sort
by one of them it also sorts the other, and the table looks
as if you have sorted by 2 columns at the same time.

This was fixed in YOCTO #6061, but turned up again.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
11 years agotoastergui: Fix blue highlight for failed tasks
Belen Barros Pena [Mon, 29 Sep 2014 13:00:36 +0000 (14:00 +0100)] 
toastergui: Fix blue highlight for failed tasks

Change the background colour of table rows with the .error
class from white to transparent, to make sure the blue
highlight animation works when you click on the order
number in the task details page.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
11 years agotoastergui: Fix reverse dependencies tab for packages included
Belen Barros Pena [Mon, 29 Sep 2014 11:10:15 +0000 (12:10 +0100)] 
toastergui: Fix reverse dependencies tab for packages included

Make sure the reverse dependencies tab for included packages
shows a notification when the number of reverse dependencies
is 0, instead of an empty table.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
11 years agotoastergui: Add missing task descriptions
Belen Barros Pena [Fri, 26 Sep 2014 16:23:23 +0000 (17:23 +0100)] 
toastergui: Add missing task descriptions

The "Prebuilt task could be based on" table we provide in the task
details page for prebuilt tasks is missing the task descriptions.
This patch adds them.

[YOCTO #6328]

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoastergui: Amend show rows options
Belen Barros [Fri, 29 Aug 2014 12:46:41 +0000 (13:46 +0100)] 
toastergui: Amend show rows options

In the templates basetable_bottom.html and basetable_top.html
remove the '2' and '5' options from the 'show rows' menu, and
add the '150' option as per design specs.

Alex edited conflicts.

Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoastergui: Fix help text in packages 'Reverse runtime dependencies' tab
Belen Barros Pena [Fri, 26 Sep 2014 13:13:09 +0000 (14:13 +0100)] 
toastergui: Fix help text in packages 'Reverse runtime dependencies' tab

For those packages renamed at packaging time, the help text
in the 'Reverse runtime dependencies' tab was missing the
original package name.

[YOCTO #6327]

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
11 years agotoasterbld: update checksettings command
Alexandru DAMIAN [Mon, 6 Oct 2014 10:02:36 +0000 (11:02 +0100)] 
toasterbld: update checksettings command

We update the checksettings command to allow for upstream
git url detection at runtime by looking up a named remote
of a local repository.

Also various small fixes in check settings.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agobuildinfohelper: Make sure we use the orm defined value for loglevel
Michael Wood [Tue, 28 Oct 2014 17:47:12 +0000 (17:47 +0000)] 
buildinfohelper: Make sure we use the orm defined value for loglevel

We need to consistently use LogMessage.INFO/WARNING/ERROR to make sure toaster knows
how to categories these rather than passing in the "raw" loglevel value
which in best case comes from python logging but worst case any value.

[YOCTO 6885]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoprserv: don't wait until exit to sync
Ben Shelton [Mon, 27 Oct 2014 17:27:23 +0000 (12:27 -0500)] 
prserv: don't wait until exit to sync

In the commit 'prserv: Ensure data is committed', the PR server moved to
only committing transactions to the database when the PR server is
stopped.  This improves performance, but it means that if the machine
running the PR server loses power unexpectedly or if the PR server
process gets SIGKILL, the uncommitted package revision data is lost.

To fix this issue, sync the database periodically, once per 30 seconds
by default, if it has been marked as dirty.  To be safe, continue to
sync the database at exit regardless of its status.

Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoutils.py: don't use len() for truth value testing.
Oscar Utbult [Sun, 26 Oct 2014 22:43:32 +0000 (23:43 +0100)] 
utils.py: don't use len() for truth value testing.

Signed-off-by: Oscar Utbult <oscar@oscr.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2: add .lz compression support
Koen Kooi [Sun, 26 Oct 2014 15:09:47 +0000 (16:09 +0100)] 
fetch2: add .lz compression support

See http://www.nongnu.org/lzip/lzip.html for details on the compression
format.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetcher: fix getVar call due to incorrect argument datatype
Alejandro Hernandez [Fri, 10 Oct 2014 18:13:46 +0000 (13:13 -0500)] 
fetcher: fix getVar call due to incorrect argument datatype

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetcher: fix BB_STRICT_CHECKSUM datatype check
Alejandro Hernandez [Tue, 30 Sep 2014 16:21:58 +0000 (11:21 -0500)] 
fetcher: fix BB_STRICT_CHECKSUM datatype check

Forcing strict to be a string, to avoid problems when performing comparisons

[YOCTO #6762]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoastergui fix size rendering in dirinfo page
Alexandru DAMIAN [Thu, 25 Sep 2014 15:10:33 +0000 (16:10 +0100)] 
toastergui fix size rendering in dirinfo page

We fix the rendering of the size field in dirinfo-related pages
by directly calling filtered_filesizeformat and not rendering
it through the template engine.

Additionally, we enable error dumping into logs if an
Exception happens.

[YOCTO #6669]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoprserv/serv: Improve error message when prserver cannot bind to supplied host address
Konrad Scherer [Wed, 24 Sep 2014 13:06:42 +0000 (09:06 -0400)] 
prserv/serv: Improve error message when prserver cannot bind to supplied host address

If localhost resolves to a remote address (due to a misconfigured network),
starting the pr server will fail without useful information.

To reproduce, add '<bogus ip> localhost' to /etc/hosts and run
'bitbake -p'. The error message will be:

ERROR: Timeout while attempting to communicate with bitbake server
ERROR: Could not connect to server False:

Running 'bitbake-prserv --host=localhost --port=0 --start' will fail with:

error: [Errno 99] Cannot assign requested address

Since these errors does not show the IP address of the attempted socket
binding, this results in a lot of wasted time looking at firewall rules, etc.

This patch results in the following error message if the socket binding fails:

PR Server unable to bind to <bogus ip>:0

Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: Fix sstate mirrors mangling
Richard Purdie [Wed, 24 Sep 2014 16:51:47 +0000 (16:51 +0000)] 
hob: Fix sstate mirrors mangling

hob was adding the redundant characters "\1" in SSTATE_MIRRORS variable. If
needed it is expected the user will add this instead so remove the code
that was doing this.

[YOCTO #6600]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch: Extend testing of subdir unpack parameter and fix
Richard Purdie [Wed, 24 Sep 2014 14:16:52 +0000 (14:16 +0000)] 
fetch: Extend testing of subdir unpack parameter and fix

This fixes urls of the form file://some/path/file;subdir=b. It also
adds in a couple of tests so we now tests these corner cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch: SRC_URI parameter "subdir" does not work for local files
Roxana [Thu, 31 Jul 2014 10:29:24 +0000 (13:29 +0300)] 
fetch: SRC_URI parameter "subdir" does not work for local files

Check if the 'subdir' parameter exists and assign it to 'destdir' so that
files are copied in ${WORKDIR}/destdir. This fixes urls that are of the form
file://a;subdir=b.

Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agomonitordisk: don't log when not monitoring a filesystem for inodes
Ross Burton [Thu, 25 Sep 2014 14:28:52 +0000 (15:28 +0100)] 
monitordisk: don't log when not monitoring a filesystem for inodes

Writing a log that the filesystem isn't being monitored for inode usage just
confuses users who are not aware about the nature of inodes in their filesystem,
so don't say anything, just silently disable the monitor.  In general this only
happens on filesystems which don't have a limit on inodes.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobin/bitbake: Update to version 1.24.0
Richard Purdie [Tue, 23 Sep 2014 20:45:49 +0000 (21:45 +0100)] 
bin/bitbake: Update to version 1.24.0

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2/perforce: Use replace (1 line) instead of find (3 lines)
Chad Nelson [Mon, 15 Sep 2014 13:01:42 +0000 (08:01 -0500)] 
fetch2/perforce: Use replace (1 line) instead of find (3 lines)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2/perforce: Fix localfile name if labels are used
Chad Nelson [Fri, 12 Sep 2014 20:42:21 +0000 (15:42 -0500)] 
fetch2/perforce: Fix localfile name if labels are used

I could apply the label "release_1.0" to a super project that contains
many sub projects.  If my recipes have SRC_URI's that use that label but
grab different sub-folders, than there's a bug where the cached localfile
(tar.gz) will not be unique and reused at the wrong times.

SRC_URI = "p4://perforce::1234@//depot/SuperProject/MiniProjectAAA/...;label=release_1.0 \
                     p4://perforce::1234@//depot/SuperProject/MiniProjectBBB/...;label=release_1.0"

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoknotty: Ensure commandline parameters are updated in memres server
Richard Purdie [Tue, 23 Sep 2014 11:58:22 +0000 (12:58 +0100)] 
knotty: Ensure commandline parameters are updated in memres server

When using options like -k, -f, -v and so on with the memory resident
server, they'd currently only be set on the initial values passed to
the original command. This ensures they now match those specified
on the commandline for the options where this makes sense.

To make this work, a command to update the options on the server side
is required so this is added.

[YOCTO #5292]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake-worker: Fix bitbake -n
Richard Purdie [Mon, 22 Sep 2014 14:51:59 +0000 (15:51 +0100)] 
bitbake-worker: Fix bitbake -n

Without this you see:

File "bitbake/bin/bitbake-worker", line 201, in fork_off_task
    os._exit(child())
TypeError: an integer is required

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodata_smart: Clarify what 'computed' means in the data store history context
Richard Purdie [Mon, 15 Sep 2014 14:43:56 +0000 (14:43 +0000)] 
data_smart: Clarify what 'computed' means in the data store history context

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodata_smart: Fix remove operator and its interaction with data expansion
Richard Purdie [Sat, 13 Sep 2014 07:50:26 +0000 (08:50 +0100)] 
data_smart: Fix remove operator and its interaction with data expansion

If you have:

FOO = "${bindir}/X Y"
FOO_remove = "${bindir}/X"

the expected result is "Y". Currently this doesn't work since the removed
expressions are not expanded first. This patch adjusts things so the
expressions are expanded before being processed for removal.

Also add a test to ensure this case continues to work.

[YOCTO #6624]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobin/bitbake: Update to version 1.23.2
Richard Purdie [Thu, 11 Sep 2014 16:31:09 +0000 (17:31 +0100)] 
bin/bitbake: Update to version 1.23.2

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosiggen/runqueue/bitbake-worker: Improve siggen data transfer interface
Richard Purdie [Fri, 5 Sep 2014 09:34:41 +0000 (10:34 +0100)] 
siggen/runqueue/bitbake-worker: Improve siggen data transfer interface

We need to transfer some of the siggen data from the core/cooker into
the worker instances. There was a partial API created for this but
its ugly and its not possible to extend it from the siggen class.

This patch completes the interface/abstraction for the data and
means the class can extend/customise it in any siggen class.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotinfoil: add a means of enabling variable history tracking
Paul Eggleton [Wed, 3 Sep 2014 16:06:42 +0000 (17:06 +0100)] 
tinfoil: add a means of enabling variable history tracking

Unfortunately it seems like the external use of the cooker
enableDataTracking() function broke at some point since the code that
reads it now runs within BBCooker's constructor. Since this now has to
be done early, add a parameter to Tinfoil's constructor to allow
enabling variable history tracking.

Fixes [YOCTO #6676].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoaster: fix some code spacing issues
Marius Avram [Fri, 29 Aug 2014 12:51:26 +0000 (15:51 +0300)] 
toaster: fix some code spacing issues

Code is related to the basetable templates files.
It had mixed tabs and spaces and was miss aligned in various places,
making it hard to read.

Signed-off-by: Marius Avram <marius.avram@intel.com>
11 years agotoaster: use cookies for count and sorting in templates tables
Marius Avram [Fri, 29 Aug 2014 12:51:01 +0000 (15:51 +0300)] 
toaster: use cookies for count and sorting in templates tables

Until now cookies were used to save which columns were shown and which
were hidden in toaster tables. The tables from the templates also have
functionalities like sorting the entries on a certain column and
limiting the number of entries displayed on a page. The later however
were not saved using cookies. This patch brings this new feature.

The cookies are not saved only in the front-end. They are saved both
in the frontend in case the user uses the inputs/buttons to change
a parameter and also in the backend in case the user specifies manually
using GET variables the value of the parameters.

When no GET parameters are given the views will redirect the url to one
containg the parameters saved as cookies. When no cookies exist, default
values will be used.

[YOCTO #6126]

Signed-off-by: Marius Avram <marius.avram@intel.com>