]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
11 years agotoaster: Add counters to filters
Ravi Chintakunta [Wed, 12 Mar 2014 18:47:41 +0000 (18:47 +0000)] 
toaster: Add counters to filters

Added count to filters in Build, Tasks and Config variables.

[YOCTO #5821]

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoaster: add license manifest path to database
Cristiana Voicu [Wed, 12 Mar 2014 18:47:40 +0000 (18:47 +0000)] 
toaster: add license manifest path to database

Based on image_name, the target is obtained, and the path
is added to the database.

[YOCTO #5649]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoaster: populate target image file table
Cristiana Voicu [Wed, 12 Mar 2014 18:47:39 +0000 (18:47 +0000)] 
toaster: populate target image file table

Using ImageFileSize Metadata event, the image output file and its
size are populated into target_image_file table.

[YOCTO #5189]
[YOCTO #5228]

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue: Improve sigchld handler
Richard Purdie [Tue, 11 Mar 2014 18:09:37 +0000 (18:09 +0000)] 
runqueue: Improve sigchld handler

The sigchld handler was reaping any processes and this was leading to
confusion with any other process handling code that could be active.
This patch:

a) Ensures we only read any process results for the worker processes
   we want to monitor
b) Ensures we pass the event to any other sigchld handler if
   it isn't an event we're interested in so the functions are properly
   chained.

Together this should resolve some of the reports of unknown processes
people have been reporting.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake-worker: Ensure children have default sigterm handler
Richard Purdie [Wed, 12 Mar 2014 03:16:12 +0000 (03:16 +0000)] 
bitbake-worker: Ensure children have default sigterm handler

The children of the worker should have the default SIGTERM handler,
else they'll try and do cleanup which should only happen in the
parent leading to all kinds of bizarre build failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fix typo in variable name
Ross Burton [Mon, 10 Mar 2014 15:28:48 +0000 (15:28 +0000)] 
bitbake: fix typo in variable name

When passing -t with an incorrect server type, the error message was using a
variable that doesn't exist.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoaster: fix 'show all' labels for tasks and variables
David Reyna [Sat, 8 Mar 2014 05:48:59 +0000 (21:48 -0800)] 
toaster: fix 'show all' labels for tasks and variables

Fix the 'Show all' button label to indicate 'variables' and 'tasks'
instead of the internal page label for the variables page and the
Disk I/O, CPU Usage, and Time pages.

[YOCTO #5915]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
11 years agotoaster: add 'bblayers.conf' files to local config filter
David Reyna [Sat, 8 Mar 2014 05:58:29 +0000 (21:58 -0800)] 
toaster: add 'bblayers.conf' files to local config filter

In the variables table, add to the local configuration
filter the 'bblayers.conf' in addition to the 'local.conf'
files.

[YOCTO #5912]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
11 years agotoaster: add empty outcome support to task page
David Reyna [Fri, 7 Mar 2014 06:15:58 +0000 (22:15 -0800)] 
toaster: add empty outcome support to task page

Add the new "empty" outcome value to the task detail page,
with help text, help notice, plus sorting for empty in the
tasks page.

[YOCTO #5917]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
11 years agotoaster: Fix help text for task details outcome
Belen Barros Pena [Fri, 21 Feb 2014 08:58:01 +0000 (08:58 +0000)] 
toaster: Fix help text for task details outcome

Changes made to models.py and task.html to make sure the
help text for the task outcome is displayed.

[YOCTO #5917]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: erase checks for stop command
Alexandru DAMIAN [Fri, 7 Mar 2014 15:10:50 +0000 (15:10 +0000)] 
toaster: erase checks for stop command

We remove the checks for the stop command, since we assume
the user really means it wants to shutdown the system when
he issues the command.

[YOCTO #5376]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: add commands to list and delete builds
Alexandru DAMIAN [Thu, 6 Mar 2014 16:34:50 +0000 (16:34 +0000)] 
toaster: add commands to list and delete builds

We add Django commands for the manage.py to manage the database
content.

The two commands added are:
* buildslist - produces a list of current builds
* builddelete - deletes a build and all associated data from the database

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: write files-in-image to the database
Alexandru DAMIAN [Thu, 6 Mar 2014 16:31:40 +0000 (16:31 +0000)] 
toaster: write files-in-image to the database

Adding code to write files-in-image data from the metadata
event to the database.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: update database schema
Alexandru DAMIAN [Thu, 6 Mar 2014 18:22:38 +0000 (18:22 +0000)] 
toaster: update database schema

This is a schema update to account for

* relaxing constraints in Target_Image_File table
* modifying permission filed to string value
* adding license_manifest_path field
* adding image_size field

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agorunqueue: Use SIGCHLD instead of polling waitpid
Richard Purdie [Mon, 10 Mar 2014 00:59:53 +0000 (17:59 -0700)] 
runqueue: Use SIGCHLD instead of polling waitpid

Instead of a significant number of calls to waitpid, register a SIGCHLD
handler instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoserver/process: Optimise latency when finishing idle functions
Richard Purdie [Mon, 10 Mar 2014 00:59:10 +0000 (17:59 -0700)] 
server/process: Optimise latency when finishing idle functions

When idle functions finish, its likely we have some other work
to do, so don't sleep in the select call but instead, skip it.
This removes small amounts of latency in common commands.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoserver/process: Drop unnecessary exit delay
Richard Purdie [Mon, 10 Mar 2014 00:58:36 +0000 (17:58 -0700)] 
server/process: Drop unnecessary exit delay

When the server exits, we no longer appear to need this delay. This
is likely due to improvements in the various exit codepaths. There
is therefore no longer any point in taking the latency hit.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoserver/process: Use a pipe for quit events instead of Event()
Richard Purdie [Mon, 10 Mar 2014 00:58:02 +0000 (17:58 -0700)] 
server/process: Use a pipe for quit events instead of Event()

Its not possible to notice the change of status of an Event() in
the select call we sleep in. It would be possible in python 3.3 but
for now use a pipe instead. This removes small latency when bitbake
commands finish since the system doesn't sit in the select call.

(Debugging these kind of issues is apparent by setting a long sleep
for the select call)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoknotty: Remove latency when exiting
Richard Purdie [Mon, 10 Mar 2014 00:57:11 +0000 (17:57 -0700)] 
knotty: Remove latency when exiting

There is no point in waiting 0.25s for when we should be processing
the shutdown. This simply reordering removes latency from the
bitbake command.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoknotty: Add missing continue statement for runQueueExitWait event
Richard Purdie [Mon, 10 Mar 2014 00:56:18 +0000 (17:56 -0700)] 
knotty: Add missing continue statement for runQueueExitWait event

The continue statement was missing for this event and the event was then
listed in the "known safe to ignore list". Clean this up.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoproviders/runqueue/taskdata: Optimise logger.debug calls
Richard Purdie [Mon, 10 Mar 2014 00:55:45 +0000 (17:55 -0700)] 
providers/runqueue/taskdata: Optimise logger.debug calls

A run of "bitbake bash -c unpack" when the task has already been
completed resulted in about 9000 calls to logger.debug(). With this
patch which comments out some noisy/less usefull logging and moves
other logging calls outside loops, this number is reduced to 1000
calls. This results in cleaner logs and gives a small but
measurable 0.15s speedup. The log size dropped from 900kb to 160kb.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocooker: Handle SIGTERM more gracefully
Richard Purdie [Sun, 9 Mar 2014 17:05:54 +0000 (10:05 -0700)] 
cooker: Handle SIGTERM more gracefully

If the cooker receives a SIGTERM it currently hangs using 100% CPU,

This patch adds in an intercept for the event and puts the cooker into
shutdown mode allowing it to exit cleanly/safely and avoiding the hang.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoserver/process: Deal more gracefully with SIGTERM
Richard Purdie [Sun, 9 Mar 2014 17:04:41 +0000 (10:04 -0700)] 
server/process: Deal more gracefully with SIGTERM

Currently a SIGTERM to the UI process causes the UI simply to lock up.

By setting an exit flag, the waitEvent can raise a SIGINT, allowing the
UI to break out the event loop and exit. Currently this is results in a
traceback but that is more desirable than a hanging process.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoserver/process: Use the setFeatures command on the server instead of a manger
Richard Purdie [Sun, 9 Mar 2014 17:02:50 +0000 (10:02 -0700)] 
server/process: Use the setFeatures command on the server instead of a manger

The use of a manager in the process server causes some issues since it remains
around for the lifetime of the server even though its only used during
initialisation and the system doesn't respond well to SIGTERM events
to the extra process (and two threads) the implementation involves.

Switching to a dedicated command simplifies the server process structure.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocooker/command: Add setFeatures command
Richard Purdie [Sun, 9 Mar 2014 17:02:08 +0000 (10:02 -0700)] 
cooker/command: Add setFeatures command

Add a command to allow backends to set particular 'features' on the
cooker (server).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue.py: Gracefully handle a missing worker process
Richard Purdie [Sun, 9 Mar 2014 17:01:19 +0000 (10:01 -0700)] 
runqueue.py: Gracefully handle a missing worker process

If the worker has already gone missing (e.g. SIGTERM), we should
gracefully handle the write failures at exit time rather than throwing
ugly tracebacks.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue.py: Handle worker disappearing gracefully
Richard Purdie [Sun, 9 Mar 2014 17:00:17 +0000 (10:00 -0700)] 
runqueue.py: Handle worker disappearing gracefully

If the worker (or fakeworker) process disappears for some reason, the
system doesn't currently even notice. To fix this, we call waitpid
periodically, looking for exit events of our children. If these
occur, we can gracefully shutdown the server.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake-worker: Gracefully handle SIGTERM
Richard Purdie [Sun, 9 Mar 2014 16:59:19 +0000 (09:59 -0700)] 
bitbake-worker: Gracefully handle SIGTERM

Currently if bitbake-worker handles a SIGTERM, it leaves the child
processes to complete or hang. It shouldn't do this so hook the SIGTERM
event and gracefully shutdown any children.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoknotty: Deal with exceptions not resetting terminal configuration
Richard Purdie [Sun, 9 Mar 2014 16:58:01 +0000 (09:58 -0700)] 
knotty: Deal with exceptions not resetting terminal configuration

When an exception occurred, the terminal parameters (such as echo)
may not be reset correctly. This change ensures they do get
atexit time in all cases, avoiding the terminal corruption issues
that could sometimes occur.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual: Review edits applied throughout from Paul Eggleton.
Scott Rifenbark [Fri, 7 Mar 2014 18:41:08 +0000 (12:41 -0600)] 
user-manual: Review edits applied throughout from Paul Eggleton.

Applied review edits from Paul Eggleton spanning the entire book.
Small areas affected in all chapters except the "Hello World"
Appendix.

Noteworthy changes in the variables chapter where I added two new
variables: BBINCLUDELOGS_LINES and BB_CONSOLELOG.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual: Review edits applied from Paul Eggleton.
Scott Rifenbark [Thu, 6 Mar 2014 15:48:37 +0000 (09:48 -0600)] 
user-manual: Review edits applied from Paul Eggleton.

Review of the entire manual by Paul.  I have implemented his
suggestions throughout.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual: removed SVK references - all types.
Scott Rifenbark [Tue, 4 Mar 2014 20:10:36 +0000 (14:10 -0600)] 
user-manual: removed SVK references - all types.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Edits to BB_GENERATE_MIRROR_TARBALLS variable
Scott Rifenbark [Tue, 4 Mar 2014 20:05:45 +0000 (14:05 -0600)] 
user-manual-ref-variables.xml: Edits to BB_GENERATE_MIRROR_TARBALLS variable

Added some clarification around who would like to set this
variable and why.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Added BB_ORIGENV example.
Scott Rifenbark [Tue, 4 Mar 2014 20:03:01 +0000 (14:03 -0600)] 
user-manual-metadata.xml: Added BB_ORIGENV example.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Grammar fix.
Scott Rifenbark [Tue, 4 Mar 2014 19:58:37 +0000 (13:58 -0600)] 
user-manual-metadata.xml: Grammar fix.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-execution.xml: Review edits for "Execution" chapter.
Scott Rifenbark [Tue, 4 Mar 2014 17:52:01 +0000 (11:52 -0600)] 
user-manual-execution.xml: Review edits for "Execution" chapter.

Applied various changes from Richard Purdie's review of the
"Execution" chapter.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual: Review edits from Richard (second draft)
Scott Rifenbark [Tue, 25 Feb 2014 23:56:24 +0000 (17:56 -0600)] 
user-manual: Review edits from Richard (second draft)

Applied the comprehensive set of review comments from Richard
Purdie.  All files affected.  One major point here was that the
"BitBake Command" chapter was eliminated.  This information was
folded into various areas of the book.  Consequently, the bits
including the file for make had to be updated.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual: Added "Hello World" Appendix.
Scott Rifenbark [Wed, 19 Feb 2014 22:15:38 +0000 (16:15 -0600)] 
user-manual: Added "Hello World" Appendix.

I took Bill's chapter and made it into an appendix.  I did some
re-writing to make it not so much like a getting-started feel,
although it still leans way that way for an appendix.  The content
is not complete.

Had to add in a line to the user-manual.xml file so that the
new appendix would be part of the book.

Had to use a different form of the command in the
user-manual-cusomization.xsl file in order to not through a bunch
of errors for an unrecognized parameter value.  I commented out
the existing one.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-fetching.xml: Re-write of the Fetching chapter.
Scott Rifenbark [Tue, 18 Feb 2014 23:43:15 +0000 (17:43 -0600)] 
user-manual-fetching.xml: Re-write of the Fetching chapter.

Based on a Richard Purdie re-write.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Title change, sections lifted.
Scott Rifenbark [Tue, 18 Feb 2014 20:50:13 +0000 (14:50 -0600)] 
user-manual-metadata.xml: Title change, sections lifted.

Changed the title of the chapter to "Syntax and Operators".  It
was called "Metadata".

Removed the bulk the "Checksums (Signatures)" section and the
placeholder for "Setscene".  These are now in the "Execution"
chapter.

Created a more appropriate overview blurb to start the chapter.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-fetching.xml: Removed a link.
Scott Rifenbark [Tue, 18 Feb 2014 20:48:46 +0000 (14:48 -0600)] 
user-manual-fetching.xml: Removed a link.

The link no longer applied as it was linking to a removed
section from the "Execution" chapter.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-execution.xml: Review edits applied.
Scott Rifenbark [Tue, 18 Feb 2014 20:46:13 +0000 (14:46 -0600)] 
user-manual-execution.xml: Review edits applied.

Significant review changes implemented from Richard Purdie.

* Eliminated the lifted text from the "Closer Look" chapter
  of the YP ref-manual.

* Added the "BitBake" chapter in from the YP ref-manual.

* Significant re-writes and suggestions throughout the
  entire chapter.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-intro.xml: Review edits to Introduction chapter.
Scott Rifenbark [Tue, 18 Feb 2014 13:49:12 +0000 (07:49 -0600)] 
user-manual-intro.xml: Review edits to Introduction chapter.

Applied review edits to the introduction chapter as suggested
by Richard Purdie.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-execution.xml: Draft of "Execution" chapter
Scott Rifenbark [Fri, 14 Feb 2014 19:55:42 +0000 (13:55 -0600)] 
user-manual-execution.xml: Draft of "Execution" chapter

This is a rough draft of the chapter.  Major sections are in
place.  We need to scrub content now.

Seems like the discussion of BBFILES fit better in this
execution flow chapter.  So, I moved it above the parsing
section.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-intro.xml: Added sections
Scott Rifenbark [Fri, 14 Feb 2014 19:55:03 +0000 (13:55 -0600)] 
user-manual-intro.xml: Added sections

Added the append files and layer subsections.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-bitbakecommand.xml: Added anchor tag for the chapter.
Scott Rifenbark [Fri, 14 Feb 2014 13:46:01 +0000 (07:46 -0600)] 
user-manual-bitbakecommand.xml: Added anchor tag for the chapter.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-fetching.xml: Re-write of "File Download Support" chapter.
Scott Rifenbark [Wed, 12 Feb 2014 02:00:02 +0000 (20:00 -0600)] 
user-manual-fetching.xml: Re-write of "File Download Support" chapter.

Basic re-write to clean up text and flow.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual: Added new chapter to cover BB execution.
Scott Rifenbark [Tue, 11 Feb 2014 19:45:54 +0000 (13:45 -0600)] 
user-manual: Added new chapter to cover BB execution.

This commit added need files, cleaned up bogus links, and
adjusted the build file, which is user-manual.xml.

The new chapter file is "user-manual-execution.xml". The file
has base text from the bitbake section from the "Closer Look"
chapter of the YP ref-manual.  This means that I had to initially
include some figures from that book for now.  I am not including
them as part of this commit though as they will likely get renamed.
I made sure that all links were removed that were specific to the
YP ref-manual.

Another change was in the user-manual.xml file to include
the new chapter as part of the build.

Another block of text for the new chapter was the "Running a Task"
section from the user-manual-metadata.xml file.  Consequently, that
section was deleted from the "Metafile" chapter.

Another block of text for the new chapter was the "Parsing
and Execution" section from the user-manual-metadata.xml file.
Consequently, that section was deleted from the "Metafile chapter.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-intro.xml: Added an introduction to the manual.
Scott Rifenbark [Tue, 11 Feb 2014 13:21:58 +0000 (07:21 -0600)] 
user-manual-intro.xml: Added an introduction to the manual.

Describes purpose and qualifies some stuff.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Added a note qualifying the variables.
Scott Rifenbark [Tue, 11 Feb 2014 13:11:07 +0000 (07:11 -0600)] 
user-manual-ref-variables.xml: Added a note qualifying the variables.

The note provides some information in general about the variables
that are part of the glossary.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: WIP - Some edits in the checksum area.
Scott Rifenbark [Tue, 11 Feb 2014 13:02:14 +0000 (07:02 -0600)] 
user-manual-metadata.xml: WIP - Some edits in the checksum area.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Rewrite "Accessing Datastore Variables Using Python"
Scott Rifenbark [Tue, 11 Feb 2014 02:25:53 +0000 (20:25 -0600)] 
user-manual-metadata.xml: Rewrite "Accessing Datastore Variables Using Python"

Rewrote this section.  Used a table instead of the funky list
that was there.  I still need to format it some.

Also fixed up the term "datastore".  It should not be "data store"

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Re-write the "Dependencies" section.
Scott Rifenbark [Mon, 10 Feb 2014 22:18:47 +0000 (16:18 -0600)] 
user-manual-metadata.xml: Re-write the "Dependencies" section.

General edits and dumping of the useless "Overview" section.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Re-write of "Variants - Class Extension Mechanism" section.
Scott Rifenbark [Mon, 10 Feb 2014 18:31:56 +0000 (12:31 -0600)] 
user-manual-metadata.xml: Re-write of "Variants - Class Extension Mechanism" section.

Some general rewrites here.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Added BBVERSIONS variable.
Scott Rifenbark [Mon, 10 Feb 2014 18:31:21 +0000 (12:31 -0600)] 
user-manual-ref-variables.xml: Added BBVERSIONS variable.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Re-write of "Events" section.
Scott Rifenbark [Mon, 10 Feb 2014 14:11:58 +0000 (08:11 -0600)] 
user-manual-metadata.xml: Re-write of "Events" section.

General cleanup of the text.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: General cleanup to "Parsing and Execution"
Scott Rifenbark [Fri, 7 Feb 2014 23:31:43 +0000 (17:31 -0600)] 
user-manual-metadata.xml: General cleanup to "Parsing and Execution"

I went through and created links for variables we reference that
are in the glossary.  I also re-wrote much of the text to just
clean it up.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Edits to "Variable Flags" section
Scott Rifenbark [Fri, 7 Feb 2014 20:39:47 +0000 (14:39 -0600)] 
user-manual-metadata.xml: Edits to "Variable Flags" section

Worked through this section with Richard providing an interactive
review.  The changes are after the review.  There was also a
small edit to the "Tasks" section.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Rewrite of the "Tasks" section.
Scott Rifenbark [Wed, 5 Feb 2014 22:31:46 +0000 (16:31 -0600)] 
user-manual-metadata.xml: Rewrite of the "Tasks" section.

I cleaned up this section with some general improvements.

I also broke this up into a couple sub-sections where it seemed
to logically fall.  Also, stole some metadata concept from the
next section ("Running Tasks") that really should be lumped under
"Tasks".

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Rewrite of the "Functions" section.
Scott Rifenbark [Wed, 5 Feb 2014 22:29:54 +0000 (16:29 -0600)] 
user-manual-metadata.xml: Rewrite of the "Functions" section.

Re-organized this around the 3 types of functions that we seem
to be show-casing here.  The original organization was not very
good.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Edits to SRC_URI.
Scott Rifenbark [Wed, 5 Feb 2014 14:15:37 +0000 (08:15 -0600)] 
user-manual-ref-variables.xml: Edits to SRC_URI.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Edits to BBCLASSEXTEND.
Scott Rifenbark [Wed, 5 Feb 2014 14:06:59 +0000 (08:06 -0600)] 
user-manual-ref-variables.xml: Edits to BBCLASSEXTEND.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Edits to "Sharing Functionality"
Scott Rifenbark [Tue, 4 Feb 2014 19:36:11 +0000 (13:36 -0600)] 
user-manual-metadata.xml: Edits to "Sharing Functionality"

Applied some review edits from Paul to the section.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Add bare bones of a scheduler section
Richard Purdie [Mon, 10 Mar 2014 01:48:14 +0000 (18:48 -0700)] 
user-manual-metadata.xml: Add bare bones of a scheduler section

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata.xml: Add details about general variables used by BitBake
Richard Purdie [Mon, 10 Mar 2014 01:47:48 +0000 (18:47 -0700)] 
user-manual-metadata.xml: Add details about general variables used by BitBake

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata.xml: Add details about environment variables used by BitBake
Richard Purdie [Mon, 10 Mar 2014 01:47:30 +0000 (18:47 -0700)] 
user-manual-metadata.xml: Add details about environment variables used by BitBake

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoasterui: fix task identification
Alexandru DAMIAN [Wed, 5 Mar 2014 14:59:55 +0000 (14:59 +0000)] 
toasterui: fix task identification

This patch adds extra checks when selecting and writing
task and recipe objects to the database.

The patch fixes several issues where tasks may have been
misidentified between virtual-native and target tasks,
or spurious task objects may have been created.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: fix issues in the build table
Alexandru DAMIAN [Fri, 21 Feb 2014 15:23:52 +0000 (15:23 +0000)] 
toaster: fix issues in the build table

This patches fixes minor issues in the sorting functionality
of the build table.

[YOCTO #5455]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoasterui: fix status update on failed sstate tasks
Alexandru DAMIAN [Fri, 21 Feb 2014 11:59:38 +0000 (11:59 +0000)] 
toasterui: fix status update on failed sstate tasks

This patch fixes a logical error when updating task information
based on the corresponding sstate task state.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: update database schema
Alexandru DAMIAN [Thu, 20 Feb 2014 12:47:55 +0000 (12:47 +0000)] 
toaster: update database schema

This patch updates the database schema to resolve a
number of issues discovered while implementing the
UI interface.

We do not expect that all the data will come in valid
at this point.

[YOCTO #5453]
[YOCTO #5833]
[YOCTO #5836]
[YOCTO #5811]
[YOCTO #5812]
[YOCTO #5820]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Move long content toggle to main.js
Belen Barros Pena [Wed, 19 Feb 2014 21:08:15 +0000 (21:08 +0000)] 
toaster: Move long content toggle to main.js

I have move all javascript needed for toggling very long
values for bitbake variables to main.js. I have changed the
names of the classes involved to make them more generic,
since I hope we'll be able to reuse them in other parts
of the Toaster interface.

.full-variable is now .full
.full-variable-hide is now full-hide
.full-variable-show is now full-show

I have also removed all the inline scripting in base.html, since
it is no longer needed.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: implement the configuration pagedreyna/configure-detail-view
David Reyna [Fri, 28 Feb 2014 13:55:46 +0000 (05:55 -0800)] 
toaster: implement the configuration pagedreyna/configure-detail-view

Update the configuration page with the file list pop-up, implement the file and description filters.

[YOCTO #4259]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
11 years agotoaster: View detailed information about a task
Ravi Chintakunta [Tue, 18 Feb 2014 04:30:41 +0000 (23:30 -0500)] 
toaster: View detailed information about a task

Information about a task is displayed depending on it's execution
status and outcome status.

Edited to iterate through all possible entries for related setscene
tasks.

[YOCTO #4282]

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Bug fix in reload page with parameters
Ravi Chintakunta [Tue, 18 Feb 2014 04:26:10 +0000 (23:26 -0500)] 
toaster: Bug fix in reload page with parameters

Fix the bug in reload_params function that was failing when
the page URL did not have any parameters.

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
11 years agotoaster: Fix breadcrumb date format in detail pages
Belen Barros Pena [Wed, 19 Feb 2014 10:57:56 +0000 (10:57 +0000)] 
toaster: Fix breadcrumb date format in detail pages

The template basebuilddetailpage.html had the completed
on date in the breadcrumb set to naturaltime. Changed to
d/m/y H:i to match the date format in the basebuildpage.html
template, so that breadcrumbs display the same date format across
all pages.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: Sort packages and dependencies in recipe.html
Belen Barros Pena [Wed, 19 Feb 2014 10:35:27 +0000 (10:35 +0000)] 
toaster: Sort packages and dependencies in recipe.html

The tables in the Packages, Build dependencies and
Reverse build dependencies tabs in the recipe details
pages (template recipe.html) should be sorted by package
name and recipe name respectively.

This change adds the sorting.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: Change popover headings in recipes table
Belen Barros Pena [Wed, 19 Feb 2014 09:54:47 +0000 (09:54 +0000)] 
toaster: Change popover headings in recipes table

In the recipes table, dependencies and reverse dependencies
are shown inside a popover. The popover headings did not
match the table headings, so changed to "dependencies" and
"reverse dependencies" as per the design spec.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: Change help text for Section
Belen Barros Pena [Wed, 19 Feb 2014 09:45:24 +0000 (09:45 +0000)] 
toaster: Change help text for Section

The help text for the Section information in the
recipes table and the recipe details page said
"packages" instead of recipes, and it said there
were 5 possible values for the SECTION variable
(which is not true).

Changed to "The section in which recipes should
be categorised"

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: Hide the applied filter tooltip on click
Belen Barros Pena [Wed, 19 Feb 2014 09:32:23 +0000 (09:32 +0000)] 
toaster: Hide the applied filter tooltip on click

When you apply a filter, we show you a tooltip on hover
that tells you which filter you have applied and allows you
to clear it quickly. That tooltip does not disappear
straight away if you click on the filter button: it hangs
in there because the tooltip has a delay specified on
hide. The effect is quite annoying.

This change to main.js makes sure the tooltip disappears when
you click the filter button.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: Add .muted class to disabled checkboxes
Belen Barros Pena [Wed, 19 Feb 2014 00:38:28 +0000 (00:38 +0000)] 
toaster: Add .muted class to disabled checkboxes

In the edit columns menu, the checkboxes for the columns in the
minimum table are disabled. To better communicate visually
the disabled state, this change applies the .muted class
to the labels of those checkboxes.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: Set the right styles for definition lists
Belen Barros Pena [Tue, 18 Feb 2014 14:29:26 +0000 (14:29 +0000)] 
toaster: Set the right styles for definition lists

In the task details page, our labels are quite long and
the default width of the dt elements in the .dl-horizontal
class is too small. Changing the width to 200px, and the
left margin of the dd element to 220px.

Changing the bootstrap.min.css file is not ideal (ok, is
a pretty bad hack), but it is the only way to keep the
nice responsive styles for those definition lists.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: Set correct string for missed sstate attempts
Belen Barros Pena [Tue, 18 Feb 2014 12:08:40 +0000 (12:08 +0000)] 
toaster: Set correct string for missed sstate attempts

Replace 'Missed' with 'File not in cache'in models.py

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: Remove inline styles in h1
Belen Barros Pena [Thu, 6 Feb 2014 18:57:56 +0000 (18:57 +0000)] 
toaster: Remove inline styles in h1

The templates bpackage.html, recipes.html and build.html included
an inline style declaration in the div containing the h1
tag to add a top margin of 40px. The extra top margin
is unnecessary in bpackage.html and recipes.html, but nicely
separates the Recent builds and All builds sections in build.html.

The changes remove the inline style declaration and create
a .top-air class in default.css to include the extra top margin
when needed, i.e. in the build.html template.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
11 years agotoaster: extend Tasks to include Time, Disk IO, and CPU Usage
David Reyna [Fri, 14 Feb 2014 22:58:20 +0000 (14:58 -0800)] 
toaster: extend Tasks to include Time, Disk IO, and CPU Usage

Update the All Tasks page to also cover the Time, Disk I/O, and
CPU Usage pages. Add filter count header support, and fix minor column
enablements.

[YOCTO #4387]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
11 years agotoasterui: add asserts on expected values
Alexandru DAMIAN [Wed, 19 Feb 2014 17:26:18 +0000 (17:26 +0000)] 
toasterui: add asserts on expected values

We add assert statements that validate expectations of
correct values and context when the data collection code is running.

These checks will help pinpointing unexpected data or
call flows, reducing debugging time.

Also contains a couple of very small fixes discovered through
these checks, including a virtual:native conflict with
regular tasks.

[YOCTO #5553]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoasterui: task data structure in toasterui
Alexandru DAMIAN [Tue, 18 Feb 2014 18:41:47 +0000 (18:41 +0000)] 
toasterui: task data structure in toasterui

We update the structure used to hold interm task data,
before it is written to the database, to lower the changes
of key collision.

This will also lead to a cleaner data structure and easier
inspection.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agobb/ui: store_dependency_information optimization
Marius Avram [Tue, 18 Feb 2014 14:39:24 +0000 (16:39 +0200)] 
bb/ui: store_dependency_information optimization

This optimization is in support of the bug #5485. The function called
at the beginning of every build: store_dependency_information was taking
approximately 20sec and it was delaying the arrival of events from the
event queue. The change minimizes the calls to _save_a_task(),
reducing the time to half.

Signed-off-by: Marius Avram <marius.avram@intel.com>
11 years agotoaster: array-assignment fix from Chome
Alexandru DAMIAN [Mon, 10 Feb 2014 14:24:48 +0000 (14:24 +0000)] 
toaster: array-assignment fix from Chome

Apparently the JS engine in Chrome can't handle assignments to an array,
so I'm patching this up by using an intermediate array to hold the
values.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: mark dependency packages
Alexandru DAMIAN [Mon, 10 Feb 2014 14:26:12 +0000 (14:26 +0000)] 
toaster: mark dependency packages

We need to mark the package entries that are
created solely for dependency tracking purposes.

In order to avoid altering the database schema,
we mark the dependency targets with size = -1, since
this is not a valid size anyway and makes for easy
filtering.

[YOCTO #5803]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoasterui: adding new task outcome empty
Alexandru DAMIAN [Thu, 13 Feb 2014 13:12:39 +0000 (13:12 +0000)] 
toasterui: adding new task outcome empty

In order to separate tasks with invalid states from the
no exec tasks, we add a new value OUTCOME_EMPTY for the tasks.

OUTCOME_EMPTY has the same value as OUTCOME_NA as to maintain
compatibility with already existing builds. New value for
OUTCOME_NA can be used to detect tasks with invalid states, i.e.
it should never appear after finishing a build.

Fixing noexec tasks outcomes.

[YOCTO #5763]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoastergui: fix task executed status display
Alexandru DAMIAN [Thu, 13 Feb 2014 13:36:54 +0000 (13:36 +0000)] 
toastergui: fix task executed status display

The proper way to get a display-able value
in Django is to use a model method instead of clutter
the template with if/else.

[YOCTO #5641]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agofetch2/wget: Fix downloadfilename functionality
Richard Purdie [Sun, 9 Mar 2014 18:11:30 +0000 (11:11 -0700)] 
fetch2/wget: Fix downloadfilename functionality

Some of the previous cleanups broke the downloadfilename functionality.
This change fixes the code to ensure the commandline is correctly built.

Thanks Kristof Robot <krirobo@gmail.com> for reporting the issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue: Fix typo
Richard Purdie [Thu, 6 Mar 2014 22:34:33 +0000 (22:34 +0000)] 
runqueue: Fix typo

slef.self is clearly meant to be self, fix typo.

Otavio spotted and reported, thanks.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodata: add vardepvalueexclude varflag
Paul Eggleton [Mon, 3 Mar 2014 16:54:31 +0000 (16:54 +0000)] 
data: add vardepvalueexclude varflag

On rare occasions it's useful to be able to exclude a part of a
variable's value from the variable's signature; for example if you want
to add an item to a list sometimes and not have the signature of the
variable change depending on whether the item is in the list or not. The
initial intended use case for this in OpenEmbedded is to allow adding a
function to SSTATEPOSTINSTFUNCS in buildhistory.bbclass and not have
that change any task signatures (so adding and removing
INHERIT += "buildhistory" won't lead to any rebuilds).

Part of the fix for [YOCTO #5897].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2: Drop svk fetcher
Richard Purdie [Fri, 28 Feb 2014 17:43:49 +0000 (17:43 +0000)] 
fetch2: Drop svk fetcher

The svk fetcher never appears to be used by anyone and the development
on svk appears to have stopped in 2010. We might as well drop support
for it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocodeparser: Fix var_execs to append to execs, not references
Richard Purdie [Fri, 28 Feb 2014 17:38:15 +0000 (17:38 +0000)] 
codeparser: Fix var_execs to append to execs, not references

When using the "execs" information in new code, it became clear that
the returned data was incorrect and there were missing exec'd functions.
This corrects the error and changes one of the test results to match
the correct behaviour.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch/wget: Separate out download and checkstatus functions
Richard Purdie [Fri, 28 Feb 2014 17:26:20 +0000 (17:26 +0000)] 
fetch/wget: Separate out download and checkstatus functions

These two functions have little in common, separate them out.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch/wget: Start to clean up command construction
Richard Purdie [Fri, 28 Feb 2014 17:25:21 +0000 (17:25 +0000)] 
fetch/wget: Start to clean up command construction

Start to clean up wget fetcher command construction to allow clearer
and more extensible code structure. Drops support for ${URI} and
${FILE} directly in the commands.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agowget: Drop usage of old style *COMMAND variables
Richard Purdie [Fri, 28 Feb 2014 17:56:04 +0000 (17:56 +0000)] 
wget: Drop usage of old style *COMMAND variables

These variables were dropped from OE-Core some time ago, drop their
usage from the fetcher as well.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch/svk: Drop usage of old style *COMMAND variable and MKTEMPDIRCMD
Richard Purdie [Fri, 28 Feb 2014 17:24:24 +0000 (17:24 +0000)] 
fetch/svk: Drop usage of old style *COMMAND variable and MKTEMPDIRCMD

Clean up some horrible old code and drop usage of the old style *COMMAND
variable and MKTEMPDIRCMD whilst in here. This means we don't need to touch
OVERRIDES either.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>