aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2016-06-10toaster: fix wrong usage of print_exc and format_exced/toaster/python3Ed Bartosh
First parameter of traceback.print_exc and traceback.format_exc APIs is a 'limit' - a number of stracktraces to print. Passing exception object to print_exc or format_exc is incorrect, but it works in Python 2 and causes printing only one line of traceback. In Python 3 comparison of integer and exception object throws exception: TypeError: unorderable types: int() < <Exception type>() As these APIs are usually used in except block of handling another exception this can cause hard to find and debug bugs. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2016-06-10toaster: changed python version in shebangEd Bartosh
Changed python to python3 in shebang to ensure that manage.py is always run by python3. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2016-06-10toaster: open image files in binary mode when sending in responseElliot Smith
The view code for downloading image files used the "r" flag to read the file, then used the open file object to form the HTTP response. While this worked in Python 2, Python 3 appears to be more strict about this sort of thing, and Django throws a UnicodeDecodeError when a file opened this way is used in a response. Open the file with the "b" flag (binary mode) so that Django can correctly convert the binary file handle to an HTTP response. Signed-off-by: Elliot Smith <elliot.smith@intel.com>
2016-06-10toaster-tests: fix tests for latest Selenium versionElliot Smith
Previously, we didn't specify a specific version of Selenium. When upgrading to Python 3 and installing Selenium to work with it, the JS unit test broke, as the report format produced by Selenium had changed. Modify the test so that it works with the latest Selenium report format. Add a note to the README that the given Selenium version should be used to prevent unexpected test failures. Signed-off-by: Elliot Smith <elliot.smith@intel.com>
2016-06-10toaster: fix broken reference to urllibElliot Smith
The code previously imported urllib to make use of querystring quoting, but was modified to support Python 3. During this process, the reference to urllib was not fixed, which resulted in table filters breaking. Remove the reference to urllib (which is no longer imported) and instead reference the imported unquote_plus() function. Signed-off-by: Elliot Smith <elliot.smith@intel.com>
2016-06-10toaster: fix test_toaster_tablesEd Bartosh
Removed unneeded code as it causes the following error in Python 3: TypeError: expected bytes, bytearray or buffer compatible object Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2016-06-10toaster: fix incorrect file modeEd Bartosh
Python 3 complains about 'wa' mode this way: ValueError: must have exactly one of create/read/write/append mode Fixed by using 'a' mode. [YOCTO #9584] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2016-06-10toaster: decode response contentEd Bartosh
Decoded response content to str to pass it to json.load as it breaks in Python 3 with this error: TypeError: expected bytes, bytearray or buffer compatible object [YOCTO #9584] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2016-06-10toaster: fix migrationsEd Bartosh
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2016-06-10toaster: replace viewkeys() -> keys()Ed Bartosh
Python 3 doesn't have dict.viewkeys method, renaming to keys(). [YOCTO #9584] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2016-06-10bitbake: toaster: use python3 explicitlyEd Bartosh
Explicitly used python3 as default python for oe builds will continue to be python2. [YOCTO #9584] (Bitbake rev: fde5c962cb69a11b072d1f238c2371a5137d030d) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-09toaster: fix typo which prevents filters from workingElliot Smith
'k' was replaced by 'key' at some point but not fixed in the body of the loop. This caused a failure when the the query was constructed for a filtered queryset, due to the variable not being defined. Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toasterui: use BuildInit to capture builds with bad targetsElliot Smith
If a build has bad targets which cause bitbake to fail before BuildStarted is fired, we are unable to represent this in Toaster, as the build was not detected at all. Use the BuildInit event so we can capture these failures. BuildStarted is retained as the event which causes a build object to be created, to support older versions of bitbake which don't have BuildInit. [YOCTO #8440] Signed-off-by: Elliot Smith <elliot.smith@intel.com>
2016-06-09cooker: add BuildInit eventElliot Smith
In situations where a bitbake run fails before the build properly starts and BuildStarted is fired, a UI has no way to get at the targets passed to the build. This makes it difficult for the UI to report on the targets which failed. Fire a BuildInit event before running buildTargets() or buildFile(). This enables a UI to capture targets passed to buildTargets(), even if the build fails (e.g. the targets themselves are invalid). [YOCTO #8440] Signed-off-by: Elliot Smith <elliot.smith@intel.com>
2016-06-09toaster-tests: maximize browser window when running UI testsElliot Smith
In some pages of the UI, the UI tests failed because parts of the UI which should be visible were being reported as not visible by the Selenium PhantomJS driver. On investigation, it turns out that PhantomJS uses a very narrow default window. This meant that some parts of the UI were being clipped and were thus not "visible" to the driver, causing test failures (specifically, on the new custom image page). Ensure that the window is maximized before running tests to prevent this happening. Signed-off-by: Elliot Smith <elliot.smith@intel.com>
2016-06-09toaster: Rework displaying package dependencies across ToasterMichael Wood
After porting the build table to a unified mechanism for showing dependencies in tables it highlighted that the dependencies selected to be shown were un-filtered. i.e. all dependencies from all contexts were shown. The context for a package's dependencies is based on the target that they were installed onto, or if not installed then a "None" target. Depending on where the template for the dependencies are show we need to switch this target which is why a filter and utility function on the model is added. Additionally to use the same templates in the build analysis we also need to optionally add links to the build data for the packages being displayed as dependencies. Customising a Custom image recipes may or may not have a target depending on whether they have been built or not, if not we do a best effort at getting the dependencies by using the last known target on that package to get the dependency information. [YOCTO #9676] Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: widgets ToasterTable Catch template rendering exceptionsMichael Wood
If a cell template rendering causes an exception catch it and carry on, this at least allows the table to show the rest of the data if nothing else. Also improve the error logging so that it's possible what the offending template snippet was. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: tests Add new build tables to testsMichael Wood
- Add new build tables to be tested - Add required data into the fixture and clean up a few empty fields - Fix the SoftwareRecipesTable specific test so as not to rely on two particular defined recipes Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: table.js Add the ability to highlight a particular rowMichael Wood
As in the old build tables it's useful to jump and highlight a particular row in the table using the #hash in the URL. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: port Installed packages table to ToasterTableMichael Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: port Task tables to ToasterTables widgetMichael Wood
Port the Task based tables to ToasterTable. This is the Task, Time, CPU usage and Disk I/O tables. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: port Built recipes table to toastertablesMichael Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: port table for Built packages to ToasterTableMichael Wood
This is the table that displays all the packages built in the build. Build -> Packages. Adds a template snippet for the git revision popover. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: ToasterTable widget add an 'a' to Name in Exception classMichael Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: toaster tables Enable complex empty statesBelen Barros Pena
Make sure we can create empty states for toaster tables that include actions for users to get out of the empty state. Allows a template to be used as an empty state. Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
2016-06-09toaster: Migrate project configuration from bootstrap 2 to bootstrap 3Belen Barros Pena
Convert all the HTML templates, JS and CSS in the project parts of toaster to use bootstrap 3. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: work-around our lack of a synchronous fetch for typeaheadsElliot Smith
The Twitter typeahead.js library expects the developer to use a source which does a local search for matching suggestions, then falls back to a remote search if that doesn't return enough results. However, in Toaster, we don't do any caching of the suggestions for a typeahead, so our source only works in asynchronous mode. Consequently, we see fewer than the expected number of suggestions if the typeahead has already shown suggestions matching a query. For example, searching for "meta-n" in the layers typeahead will show the results for this query; but when the query changes to "meta-ne", a new set of results is fetched, which mostly overlaps with the results for "meta-n". The typeahead assumes that the overlapping items are locally cached and have been delivered synchronously, and just appends the new results which don't overlap with the previous query. But because we don't provide any results synchronously, we just end up with the single non-overlapping result in the drop-down. This can be fixed by hacking typeahead.js so that instead of appending asynchronous results, we always overwrite and redraw the whole typeahead menu. This is a temporary fix, and should be properly fixed (when we have time), perhaps by using typeahead.js's associated Bloodhound library. Added a note about the hack to the license file as an explanation of why the unminified JS file is included in Toaster. Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: migrate typeahead libraryElliot Smith
Migrate from Bootstrap 2's built-in typeahead to Twitter's typeahead library. This is to facilitate moving to Bootstrap 3, which doesn't have a typeahead. Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: tests Add a BuildTest helper classMichael Wood
Add a helper class for running build tests. Subclass this and call the build method to get setup for running tests on the resulting data from a build. Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com>
2016-06-09toaster: tweaks to recipe file downloadsBelen Barros Pena
* In the custom images table, show the recipe file and download icon only when the recipe file exists and can be downloaded. * Also in the custom images table, make sure the download icon tooltip shows on hover. * In the custom image details page, show the correct icon (download) next to the recipe file in the right hand column. * In the custom image details page, show the recipe file and download icon in the right hand column only when the recipe file exists and can be downloaded * Also in the custom image details page, simplify the help text we show when the 'download' button is disabled: it gave so much information about what's actually happening under the hood that it was a bit hard to follow. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com>
2016-06-09toaster: add DL_DIR and SSTATE_DIR to oe toasterconfEd Bartosh
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-06-09toaster: testsjs Add call back to append elements on completion of testsMichael Wood
When the tests are complete add some marker elements to the test page DOM which can then looked at for a selenium browser test. Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com>
2016-06-07testexport.bbclass: Create tarballs for easy releaseMariano Lopez
This create tarballs in the testexport directory in order to make easier to distribute the test in another systems. There are three tarballs, one for the metadata that is not arch dependant, another for packages needed by the DUT (this depends of target MACHINE), and the last one for the SDK needed by the systems that perform the tests. This also create only the tarballs that are needed. [YOCTO #8481] (From OE-Core rev: f8a0456e100b07a966cc24a78f197400c5a2ccab) (From OE-Core rev: a91a603676b088abcb648cc558c33da6292b9be6) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07testexport.bbclass: Add support for testexport-tarballMariano Lopez
Add support to export the SDK tarball needed when a test system doesn't have the required software to perform runtime tests. The support is when exporting the test and when running the test on a remote system. The user of this feature just need to set TEST_EXPORT_SDK_ENABLED to "1" and declare the sdk packages in TEST_EXPORT_SDK_PACKAGES. [YOCTO #7850] (From OE-Core rev: a6041f81b81baa7564e4c712fc88de2b997e52e4) (From OE-Core rev: 05e6c89f0f71311f8bd32cdb86a2deb789c58035) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07testexport-tarball.bb: Add recipeMariano Lopez
This new recipe is used when exporting runtime test outside packages that won't be installed in the testing system but are required for the runtime testing. This new recipe is almost identical to buildtools-tarball, but is able to define the SDK packages in local.conf. [YOCTO #7850] (From OE-Core rev: fbcd1f9ed6144a76ff6a556d23af30f04c39bfa0) (From OE-Core rev: d787cd34da1cba52f5ecf68b7f55aa5550ed5e71) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07testimage.bbclass: Make dependency of cpio when using RPMsMariano Lopez
Exctraction of RPMs needs cpio, not all distros include cpio by default, so we need to build it. [YOCTO #8694] (From OE-Core rev: 95cd427b3887b087533fba11c67ef9bc173f9aa5) (From OE-Core rev: 5a4c73bd3f2bbba2ad5413367fa7ca2f625ffdd7) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07oetest.py: Add install/uninstall functionality for DUTsMariano Lopez
Add the functionality to install/unistall packages in the DUTs without the use of the package manager. This is possible with the extraction introduced in package manager class. testimage and testexport bbclasses has been modified in order to support this new feature. [YOCTO #8694] (From OE-Core rev: b7111d9e9d64d21f57729d1ac1865aea6e54cc8b) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07lib/oeqa/otest.py: Fix import tests from other layers with python3Mariano Lopez
In python3 the functionality to import modules has been changed and this broke the capability to add runtime tests from other layers. This commit returns this capability to testimage and testexport. [YOCTO #9705] (From OE-Core rev: a26f23d3ce8f7e9f59dbc9bf27516377fd7a0a6d) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07oe/lib/pacakge_manager.py: Update missing pipeline decodingMariano Lopez
Adds decoding needed by some commands output later used as strings. [YOCTO #9702] (From OE-Core rev: 0440b5ace411c61f802376d4e1c9eac93e72d65f) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07alsa-plugins: 1.1.0 -> 1.1.1Tanu Kaskinen
Changelog: http://alsa-project.org/main/index.php/Changes_v1.1.0_v1.1.1 Removed upstreamed patch 0001-pph-include-config.h-from-rate_speexrate.c.patch. (From OE-Core rev: 8369070cf6d40732ae9d0e34c2cb2e17669cec11) Signed-off-by: Tanu Kaskinen <tanuk@iki.fi> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07alsa-utils: 1.1.0 -> 1.1.1Tanu Kaskinen
Changelog: http://alsa-project.org/main/index.php/Changes_v1.1.0_v1.1.1 alsabat has now a "standalone" mode, in which analysis with libfftw is not needed. Therefore, it's now possible to enable alsabat without fftw. However, there's no way to explicitly tell the configure script to enable alsabat, but disable fftw. Without support for explicit request to disable fftw, fftw would become a floating dependency, which is why the recipe still only supports the "disable alsabat" and "enable alsabat with fftw" options. Dropped 0001-alsabat-rename-to-avoid-naming-conflict.patch (it's included in the new release). (From OE-Core rev: f54d2d640b0169d9d3f55fd6eeed1c09e849223b) Signed-off-by: Tanu Kaskinen <tanuk@iki.fi> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07alsa-lib: 1.1.0 -> 1.1.1Tanu Kaskinen
Release notes: http://alsa-project.org/main/index.php/Changes_v1.1.0_v1.1.1 Dropped upstreamed patch 0001-topology-Add-missing-include-sys-stat.h.patch. Updated "Upstream-Status" of accepted patch 0001-pcm_plugin-fix-appl-pointer-not-correct-when-mmap_co.patch. Rebased avoid-including-sys-poll.h-directly.patch. (From OE-Core rev: 3693f243a639351083eb29fb1a14916d0ff5990d) Signed-off-by: Tanu Kaskinen <tanuk@iki.fi> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07alsa: update BUGTRACKER linksTanu Kaskinen
The old bug tracker is defunct. (From OE-Core rev: 2190658fa8d7e391df61aa3f2253cfae1ca2b5df) Signed-off-by: Tanu Kaskinen <tanuk@iki.fi> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07opkg-utils: update SRCREVAlejandro del Castillo
Drop patches now included in newer SRCREV. Update HOMEPAGE and PV version to better align with opkg. Current revision include: * Python 3 compatibility * Improved error handling (From OE-Core rev: 4b0b43f473ef12631daa577cdba39906f7d67cab) Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07rm_work: exclude all kernel recipesMartin Jansa
* otherwise kernel is rebuilt every single time and often it fails when building external modules [YOCTO #9352] (From OE-Core rev: 9d23daf03ece06185224f869e9b7f73789689c2d) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07gobject-introspection: move to Python 3Alexander Kanavin
(From OE-Core rev: db702fb12f7b34928a52e522ad269ac43f1dcace) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07db: add RECIPE_NO_UPDATE_REASONMaxin B. John
db-6.2.23 does not work with RPM-5.x due to changes in locking semantics (From OE-Core rev: 8ea6be55b795ae5306606f7d4cdacdf3c2afa5ae) Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07linux-yocto/4.4: mmc backportsBruce Ashfield
Backporting the following mcc commits to the 4.4 repo. These fix issues being seen on broxton based boads: 1f3e98df094c mmc: core: Add a facility to "pause" re-tuning b27fcd162327 mmc: block: Pause re-tuning while switched to the RPMB partition 9aa07b4e274e mmc: block: Always switch back to main area after RPMB access (From OE-Core rev: 9161b0856ef48275df9fedd3174629e5b29812c5) Signed-off-by: California Sullivan <california.l.sullivan@intel.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07yocto-bsps: add i2c definitions to beagleboneBruce Ashfield
Importing i2c dtsi support from linux-omap. This enables the busses for future development and application support. (From OE-Core rev: 8933893886569f9bbfc4ba7b2678f8c7c6aec611) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-07linux-yocto/4.4: bump to v4.4.12Bruce Ashfield
(From OE-Core rev: 10ddce2006a09cf7b75e139c06b7cfe0f7bc37a6) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>