summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui
AgeCommit message (Collapse)Author
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-21depexp: add sorting of all package listsBob Foerster
Without sorting, it's very difficult to find the information you're looking for. Now, the lists are all sorted alphabetically for easy viewing. Signed-off-by: Bob Foerster <robert@erafx.com>
2010-12-17logger usage cleanupChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-17Revert "build: stop injecting os/bb into __builtins__"Chris Larson
Temporary revert, will resurrect. This reverts commit 566657c13de3fefb5043b71de953fb805799da95.
2010-12-17Fix logging level names for post-server-ui-splitChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-17build: stop injecting os/bb into __builtins__Chris Larson
For one, we should be able to avoid this via _context in bb.utils. For two, __builtins__ only has to exist for CPython, so this causes problems running bitbake under other python implementations (though we could change to doing setattr()s against the __builtin__ module, let's avoid this instead). 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-08bitbake/goggle: interaction tweaksJoshua Lock
Set the goggle window to a more sane default size (640x480) and hook up the close button. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/depexp: Factor ProgressBar into a separate class in crumbs/Joshua Lock
ProgressBar will be useful in other UI elements so make it it's own class. Make ProgressBar a subclass of gtk.Dialog, rather than gtk.Window, so that we can suggest the window manager parent the ProgressBar to the widget passed at as parent. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/crumbs: add optional pbar parameter to RunningBuild.handle_event()Joshua Lock
Defaults to None, but if set will pass the ParseProgress sofar and total to pbar's update() method. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/goggle: add a ProgressBar for parse progressJoshua Lock
Construct a ProgressBar and pass it to the RunningBuild.handle_event() so that goggle users are notified of metadata parsing progress. UI's with status make users less nervous Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/goggle: automatically show most recently added messageJoshua Lock
It seems likely that the user would want to view the most recently emitted messages so this patch sets the message dislay treeview to scroll to any newly added rows. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/crumbs: fix the event name determinationJoshua Lock
Due to some recent change *somewhere* we need to explicitly look at the name attribute on the instances class, rather than the name attribute of the instance. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/crumbs: do the test for ignored messages soonerJoshua Lock
Move the test for ignored messages to the start of the message handling loop to avoid doing work for messages which are only going to be ignored. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-12-08bitbake/crumbs: Fix crumbs UI for bitbake event class name changesJoshua Lock
Some of the events we where trying to look for have had their class names changed, fix these references. Signed-off-by: Joshua Lock <josh@linux.intel.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-213.0 prepChris Larson
2010-06-21Apply some 2to3 refactoringsChris Larson
2010-06-21Drop a couple usages of readlinesChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
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-04-09Fix an error in the ncurses UIChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-09Fix the task event handling in the ncurses UIChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-23crumbs: fix hassattr typoChris 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-19ui: Convert remaining event handlers to use isinstanceRichard Purdie
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>