summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/knotty.py
AgeCommit message (Collapse)Author
2011-06-09bitbake/event/ast: Add RecipePreFinalise eventRichard Purdie
One of the implications is we need to register the event handlers before executing the anonymous python functions. I can't find any issue with making that change in any existing metadata use cases. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08knotty: If any error messages are seen, set our exit code accordinglyRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-08bitbake/server/process: Move implementation knowledge of event queue into ↵Richard Purdie
the server Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-06bitbake/cache.py: Ensure skipped recipes make it into the cache to avoid ↵Richard Purdie
reparsing (From Poky rev: 001a555c2f755d4f8a69b113656d9307ca7ee597) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-12bitbake/knotty.py: Ensure task note messages are only surpressed at default ↵Richard Purdie
log levels (From Poky rev: 3f08b7f1eadc8d181c76339d14c7abb4f49cad57) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-10bitbake/knotty.py: Don't show log messages of NOTE and below for task processesRichard Purdie
This cleans up the knotty console messages to be a lot quieter and cleaning, in keeping with the expectations of most users. (From Poky rev: b22e345e05efcc3f66278af8f09fb083afe32b68) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-12-29Add support for 'noexec' tasksRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-17logger usage cleanupChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-17Fix logging level names for post-server-ui-splitChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-17Resurrect alternative UIsBob Foerster
The various alternative UIs have been updated to once again be functional with the latest bitbake internals. Each of the UIs still have much room for functional improvement. In particular, they have been updated to: - interact with the new process based server - handle the current set of events and notifications fired from the server and its associated subsystems Signed-off-by: Bob Foerster <robert@erafx.com>
2010-12-16Show the user progress when loading the cacheBob Foerster
Signed-off-by: Bob Foerster <robert@erafx.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-16Run the server and UI in separate processesBob Foerster
This uses the python multiprocessing module, both to spawn the server process and for communication between the processes. Signed-off-by: Bob Foerster <robert@erafx.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-15knotty: exit with 1 if we see a critical log messageChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-13Move the runq task start/failed messages to the UIChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10Rename command events, adjust compareRevisionsChris Larson
- Moved the logic for comparing revisions from cooker into command - Removed 'Cooker' from the event names - Renamed the 'ExitCode' event into CommandExit, and changed CommandFailed to be a subclass of CommandExit Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-10build: send logging messages to the log file for python functionsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-09Rename the ui 'init' method to 'main'Chris Larson
As these may run the UI in a blocking fashion and then return the exit code, 'init' was an inappropriate name, and 'main' is more appropriate. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-06knotty: use enumerate for task waitingChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-06knotty: shift non-interactive progress into a classChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-30cooker: no cached in progressbar and add ETAChris Larson
Rather than updating the progress bar based on the recipe being processed (whether cached or parsed), consider only parsed recipes. This reduces the instability in progress rate introduced by the cached entries, and allows the ETA to be resurrected and be a bit more useful. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-23knotty: drop the ETA from the progressbar for nowChris Larson
Currently, the progress bar is an indication of the processing of our recipes, which includes loading the cache file, then for each recipe, either adding the existing cached information to the CacheData or parsing the recipe from disk. These tasks clearly take different amounts of time, so the ETA is unreliable today. We'll resurrect this functionality after we revamp the progress handling, fully incorporating the load of the cache file. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-21Split up the ParseProgress eventChris Larson
We now have ParseStarted, ParseProgress, and ParseCompleted. I think this clarifies matters, and avoids sending all our statistics with every parse progress event. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-21Experimental usage of the 'progressbar' moduleChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-27Use logging in the knotty ui, and pass the log record across directlyChris Larson
This kills firing of Msg* events in favor of just passing along LogRecord objects. These objects hold more than just level and message, but can also have exception information, so the UI can decide what to do with that. As an aside, when using the 'none' server, this results in the log messages in the server being displayed directly via the logging module and the UI's handler, rather than going through the server's event queue. As a result of doing it this way, we have to override the event handlers of the base logger when spawning a worker process, to ensure they log via events rather than directly. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-27Use the python logging module under the hood for bb.msgChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-21Apply some 2to3 refactoringsChris Larson
2010-06-10knotty: use the future division to prep for 3.xChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-10knotty: stop freaking out and dying when bb.build has removed the empty logfileChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-08Move the output of no provider and multiple provider messages into the UIChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-08Make knotty ignore the NoProvider eventChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-11Apply some 2to3 transforms that don't cause issues in 2.6Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Apply the 2to3 print function transformChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Formatting cleanupsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-02-25knotty: tweak failure phraseBernhard Reutner-Fischer
..to make copy and paste of the logfile easier. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-01-21knotty: Improve task failure message handling using the uihelper codeRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-20Improve BBCLASSEXTEND handling for skipped packages and report better ↵Richard Purdie
parsing statistics Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-19event.py: Convert to using pickle for events and isinstance in knotty UI handlerRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-10-17knotty: Add new event from compare reivions codeRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
2009-09-14Add a RecipeParsed event, which can be used as an alternative to anonymous ↵Chris Larson
functions. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-05-11[ui] Fix import statements reported by pyflakesHolger Hans Peter Freyther
We ignore the following kind of warnings import gtk import gtk.glade... as glade is not imported by default and need that extra line, pyflakes does not know...
2008-12-06Update the UIs against the core changes and allow dynamic loading of the UI ↵Richard Purdie
so UIs become truly plugable.
2008-12-06command.py: Standardise to getVariable and setVariable functions for ↵Richard Purdie
consistent naming
2008-04-06knotty.py: Rename frontend to server to make things a bit clearerRichard Purdie
2008-03-16Add return value handling (thanks pH5)Richard Purdie
2008-03-13ui/knotty.py: Ignore StampUpdate eventsRichard Purdie
2007-08-19knotty.py: Improve BBINCLUDELOGS_LINES handling (#97)Richard Purdie
2007-08-18knotty.py: Implement INCLUDELOGS handlingRichard Purdie
2007-08-18cooker.py: Handle error cases (e.g. no targets specified) more neatlyRichard Purdie
2007-08-18Add the start of several UI modulesRichard Purdie