summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* bitbake: toaster/tests: Update tests/functional/functional_helpers ↵Alassane Yattara2023-12-152-1/+6
| | | | | | | | | | | | test_functional_basic - Remove unused import time functional_helpers - Delay driver actions from test_functional_basic (Bitbake rev: c7a305f0ff3cd32875e2eb80bc0848f533209745) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: bug-fix element click intercepted in ↵Alassane Yattara2023-12-152-6/+39
| | | | | | | | | | | browser/test_layerdetails_page.py selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted (Bitbake rev: d1936616cafc1aced69c7b5758e44638eb62b5ac) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Bug-Fix testcase ↵Alassane Yattara2023-12-152-93/+95
| | | | | | | | | | | | | | | | | | | | | | | | | functional/test_project_page_tab_config.py All issues and failures stemmed from a specific test case: test_project_config_tab_right_section in the file bitbake/lib/toaster/tests/functional/test_project_page_tab_config.py. This test was designed to verify whether the "Most built recipes" section on the project page correctly displays the latest and oldest recipes built by the user, irrespective of the build outcome (failed, cancelled, succeeded, or errored). The errors and failures arose because the build process did not terminate as expected, particularly when attempting to build recipe images such as "core-image-minimal" or "bash." It was discovered that building a real recipe/image was unnecessary for the test's purpose. Instead, building a fake recipe like "foo" provided a reliable way to ensure the build would fail or be interrupted. (Bitbake rev: 5162db5305826235c09d9fcd38b5fb48ded31622) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Removed all time.sleep occurrenceAlassane Yattara2023-12-151-19/+20
| | | | | | | | Use wait_until_visible instead of time.sleep to delay driver actions (Bitbake rev: 96bf461d5860dad2377963c8dad6c754670738a6) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: logging warning in console, trying to kill ↵Alassane Yattara2023-12-151-3/+1
| | | | | | | | | unavailable Runbuilds process (Bitbake rev: 26100ca3b5e451e9d296654fc8c47a4299fea835) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: fix chrome argument syntax and wait for driver exitAlexander Lussier-Cullen2023-12-151-1/+3
| | | | | | | | | | | | | The chrome driver sometimes fails with a page crash for a full suite of tests, pointing to a failure in the setup of the driver due to resource limitations. To mitigate these crashes, add a wait between driver driven tests to ensure resources are freed. (Bitbake rev: 8f998e27aae694c16f788aac12558621089d0839) Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: fix functional tests setup and teardownAlexander Lussier-Cullen2023-12-151-14/+37
| | | | | | | | | | | | | | | | | Functional tests sometimes do not properly wait for previous tests to close their instance of Toaster before launching their own, which causes failures. Track test created Toaster processes globally and wait for them to be exited before executing further tests which need a Toaster instance to fix this. Additionally, quit Toaster in the teardown using the stop command with a fallback of manually killing the processes in case of documented stalling problem. (Bitbake rev: 16aad11ce8eadd93b4b00dc65826329ff5526c84) Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Exit tests on chromedriver creation failureAlexander Lussier-Cullen2023-12-151-6/+8
| | | | | | | | | | | When failing to create the web driver session for selenium tests, a cascade of erroring tests will follow. To avoid processing these unnecessarily, exit the tests completely in this case. (Bitbake rev: 9327196102dd2671fcdb3200d9490e683f81d3a1) Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Commandline build import table improvementsMarlon Rodriguez Garcia2023-12-133-1/+13
| | | | | | | | | | | | | | Added dataTables library to include sorting and pagination for table element Added jquery.dataTables to customize table rendering in section "Import eventlogs". This library includes the following: sorting, pagination, search and CSS styles. Default to ascending order and 50 builds per page. (Bitbake rev: f88f314cb2b071569acf3c7d43fb7256ba50762f) Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: bitbake: toaster: add functional testing toaster error detailsAlexander Lussier-Cullen2023-12-131-2/+8
| | | | | | | | | | | | Functional tests can sometimes fail to initialize toaster. Most often this is due to a conflict on port 8000. Add command information about whichever other process is running on that port to better describe the initialization failure. (Bitbake rev: da7f91d6dbe8703fb12d58ec95f077349d0005c8) Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: remove test and update setup to avoid rebuilding imageMarlon Rodriguez Garcia2023-12-131-12/+0
| | | | | | | | | | Update build test to fix setUp, by including the built, the system was rebuilding the image on every test, causing the database to lock Delete test for unique order, this test was the only test using the self.built element and breaking the system. (Bitbake rev: 9f1ad015051d4a4b363787c4a1f2b943d55eb8cb) Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/test: fix CopyrightAlassane Yattara2023-12-131-1/+1
| | | | | | | (Bitbake rev: 4967c3f3b3c5971e9ac65cb833eb8617e8c3445c) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Add verbose printout for missing chrome(driver) dependenciesAlexander Lussier-Cullen2023-12-121-2/+21
| | | | | | | | | | | If the chrome driver binary is missing dependencies, it was near impossible to work out which ones from just the logs. Add code to help debug things if this happens by including the ldd output. (Bitbake rev: 0ffe5fccbb7db5aca5c409fe00be2be69a6e37d9) Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Added new feature to import eventlogs from command line ↵Marlon Rodriguez Garcia2023-12-1213-9/+541
| | | | | | | | | | | | | | | | | | | | | | | | into toaster using replay functionality Added a new button on the base template to access a new template. Added a model register the information on the builds and generate access links Added a form to include the option to load specific files Added jquery and ajax functions to block screen and redirect to build page when import eventlogs is trigger Added a new button on landing page linked to import build page, and set min-height of buttons in landing page for uniformity Removed test assertion to check command line build in content, because new button contains text Updated toaster_eventreplay to use library Fix test in test_layerdetails_page Rebased from master This feature uses the value from the variable BB_DEFAULT_EVENTLOG to read the files created by bitbake Exclude listing of files that don't contain the allvariables definitions used to replay builds This part of the feature should be revisited. Over a long period of time, the BB_DEFAULT_EVENTLOG will exponentially increase the size of the log file and cause bottlenecks when importing. (Bitbake rev: ab96cafe03d8bab33c1de09602cc62bd6974f157) Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests/builds: Add BB_HASHSERVE passthroughRichard Purdie2023-12-091-1/+1
| | | | | | | | | As well as BB_HASHSERVE_UPSTREAM, ensure BB_HASHSERVE is passed through to allow sstate resuse on the autobuilder. (Bitbake rev: f18a647d998670cc37a8832cb36ffe03da43d1c5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Update to use qemux86-64 machine by defaultRichard Purdie2023-12-094-8/+8
| | | | | | | | | Toaster currently uses qemux86 as the default, update to match the local.conf default changes, i.e. qemux86-64. (Bitbake rev: 27fbba9ee15994a69284a7f8579c22d85e0ce863) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: utils: Do not create directories with ${ in the namePavel Zhukov2023-12-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases ${ may not be expanded in the WORKDIR (one of the cases is undefined variable) and causes cryptic failures [1]. Guard this by erroring out if directory name contains ${ Fixes: [Yocto #15255] [1] ERROR: x-native-1.0+${SRCPV}-r0 do_deploy_source_date_epoch: Error executing a python function in exec_func_python() autogenerated: The stack trace of python calls that resulted in this exception/failure was: File: 'exec_func_python() autogenerated', lineno: 2, function: <module> 0001: *** 0002:sstate_hardcode_path(d) 0003: File: '/home/mischief/src/poky/meta/classes-global/sstate.bbclass', lineno: 654, function: sstate_hardcode_path 0650: bb.note("Removing hardcoded paths from sstate package: '%s'" % (sstate_hardcode_cmd)) 0651: subprocess.check_output(sstate_hardcode_cmd, shell=True, cwd=sstate_builddir) 0652: 0653: # If the fixmefn is empty, remove it.. *** 0654: if os.stat(fixmefn).st_size == 0: 0655: os.remove(fixmefn) 0656: else: 0657: bb.note("Replacing absolute paths in fixmepath file: '%s'" % (sstate_filelist_relative_cmd)) 0658: subprocess.check_output(sstate_filelist_relative_cmd, shell=True) Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/mischief/src/poky/build/tmp/work/core2-64-poky-linux/x-native/1.0+${SRCPV}-r0/sstate-build-deploy_source_date_epoch/fixmepath' (Bitbake rev: e91c256ec076e70cf8a18e369fe7862e50618c48) Signed-off-by: Pavel Zhukov <pavel@zhukoff.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: bug-fix tests writing files into /tmp on the ↵Alassane Yattara2023-12-0813-55/+74
| | | | | | | | | | | | autobuilders - Use build directory instead of /tmp - Better handle delay between driver actions (Bitbake rev: 234b125c11e4cca015e4d54fbddbfd3d276b88f6) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Fixes warnings in autobuilderAlassane Yattara2023-12-082-4/+11
| | | | | | | | | | | | | | | | | | ../bitbake/lib/toaster/tests/functional/functional_helpers.py:66 /home/pokybuild/yocto-worker/toaster/build/bitbake/lib/toaster/tests/functional/functional_helpers.py:66: DeprecationWarning: invalid escape sequence '\s' project_url=re.search("(projectPageUrl\s:\s\")(.*)(\",)",rc) Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/home/pokybuild/yocto-worker/toaster/build/bitbake/lib/toaster/tests/commands/test_runbuilds.py", line 39, in run os.kill(int(pid), signal.SIGTERM) ProcessLookupError: [Errno 3] No such process (Bitbake rev: 5a4732d5e4437cfc366c6b034868903ad6f0088c) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Bug fixes, functional tests dependent on each otherAlassane Yattara2023-12-082-86/+79
| | | | | | | | | refactor test_create_project and test_project_page to remove their dependencies (Bitbake rev: 54f7c0bb6ff435c4936c3422532aa071bd5b66e8) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Refactorize tests/functionalAlassane Yattara2023-12-082-276/+554
| | | | | | | | | | | | | | - Split testcases from test_project_page_tab_config into tow files - Added new testcases in test_project_config - Test changing distro variable - Test setting IMAGE_INSTALL:append variable - Test setting PACKAGE_CLASSES variable - Test creating new bitbake variable (Bitbake rev: 649218c648b79a89b0e91aa80d8c9bf8fa2de645) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Added functional/utils, contains useful methods ↵Alassane Yattara2023-12-081-0/+89
| | | | | | | | | using by functional tests (Bitbake rev: c39a0cceedce324c311d00634c5329fbec1ba6d4) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Ensure to kill toaster process create for tests ↵Alassane Yattara2023-12-081-2/+3
| | | | | | | | | | | functional Toaster background task runbuilds continu running when even if tests is done (Bitbake rev: e885863dffebab77f501a58df172926aafec5623) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Update build testMarlon Rodriguez Garcia2023-12-086-14/+15
| | | | | | | | | | Updated build tests in toaster, added SSTATE_MIRROR to package build, changed build directory and update test order This builds include the core-minimal-image, on the test enviroment a smaller package was use to run the test for time purposes (Bitbake rev: af31116f0017912fc5a58a5976c814b6b326985f) Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: fix pytest build test execution and test discoveryAlexander Lussier-Cullen2023-12-062-4/+3
| | | | | | | | | | | | | | | | Ensure the proper django settings are used by moving the variable to the environment assignment. Remove python file specifier as this works relative to the working directory, which can vary. The test file directory can instead be specified when executing the pytest command. Add annotations required to allow database access with pytest to the build tests. (Bitbake rev: 7f4dfaa5bd28ccf1ae0122d984ffa7e02e693960) Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com> CC: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: bitbake: Move to version 2.6.1 to mark runqueue changesRichard Purdie2023-12-061-1/+1
| | | | | | (Bitbake rev: 651a6dcf6f8ff33a4e9290a37c23e4f243974ac3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: Fix regex markup issuesRichard Purdie2023-12-062-4/+3
| | | | | | | | | | | | | lib/toaster/toastergui/templatetags/projecttags.py:170: DeprecationWarning: invalid escape sequence '\$' value=re.sub('_\$.*', '', value) tests/views/test_views.py::ViewTests::test_custom_incomplete_params lib/toaster/toastergui/urls.py:211: DeprecationWarning: invalid escape sequence '\d' '/packages/(?P<package_id>\d+|)$', (Bitbake rev: 57c738a9118a7a900fc7353d88a385d52c8be6f5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastermain/settings: Avoid python filehandle closure warningsRichard Purdie2023-12-061-3/+6
| | | | | | | | | Switch to using with blocks when accessing files to ensure file descriptors are closed and avoid python warnings. (Bitbake rev: e8574ee78eea23cc35900610bb15e47e40ef5ee1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Fix assertRegexpMatches deprecation warningsRichard Purdie2023-12-062-6/+6
| | | | | | | | | Fix: DeprecationWarning: Please use assertRegex instead. (Bitbake rev: 81ee203fd55d45b199d7c3af681855d254e0d876) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: bb/toaster: Fix assertEquals deprecation warningsRichard Purdie2023-12-063-7/+7
| | | | | | | | | Fix: DeprecationWarning: Please use assertEqual instead (Bitbake rev: dd990ea6843685927954101feb729f3faa3a16d9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/test: delay driver action until elements to appearAlassane Yattara2023-12-062-2/+8
| | | | | | | | | | Update tests/browser/(test_landing_page.py and test_layerdetails_page.py) to delay driver actions until for elements to appear (Bitbake rev: 72908138bd2735c69f5e418ec5f0f2cf8215050a) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/test: from test_no_builds_message.py wait for the empty ↵Alassane Yattara2023-12-061-0/+1
| | | | | | | | | | | state div to appear >From tests/browser/test_sample.py wait for the empty state div to appear (Bitbake rev: 56ea671526d6ec81b0d69f1bab6ac8f6796b8018) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/test: bug-fix on tests/browser/test_all_builds_pageAlassane Yattara2023-12-061-24/+32
| | | | | | | | | | - Bug-fix on table filtering on (CompletedOn, filter failed task) - Better handle testcase used time.sleep and remove it (Bitbake rev: 03a8657dd377f87be08dd149ec507d153cb10a07) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: runqueue: Improve inter setscene task dependency handlingRichard Purdie2023-12-061-13/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The way the code currently handles dependencies between setscene tasks is fairly poor, basically by deleting chunks of dependencies and adding reversed dependency relationships. This was once the best way to handle things but now a lot of the surrounding code has changed and this approach is suboptimal and can be improved. This change firstly adds debug logging for "hard" setscene task dependencies since previously the codepaths were missing from logs making them very hard to read. The changes to the setscene dependency graph are removed entirely this these altered graphs were a significant source of problems. Instead, if a hard dependency is run into, we mark the hard dependency as buildable and defer the task until the hard dependencies are met. The code now also skips the check_dependencies() code for hard dependencies since previously that code was having to list all possible hard dependencies. We don't need to do that as we can safely assume hard dependencies are required. With these changes to runqueue's behaviour, we stand some chance of being able to fix other bugs in OE-Core related to useradd for example. (Bitbake rev: 367789b53c1c22ec26e0f4836cdf2bdd9c7d84fa) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: hashserv: sqlite: Ensure sync propagates to database connectionsJoshua Watt2023-12-041-2/+7
| | | | | | | | | | | | | | | When the sqlite database backend was restructured, the code to make the databases run in WAL mode and to control if sync() is called was accidentally dropped. This caused terrible database performance to the point that server timeouts were occurring causing really slow builds. Fix this by properly enabling WAL mode and setting the synchronous flag as requested (Bitbake rev: c5b8c91d325ed1ca8abe5fe28d989693555c0622) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: fetch2: Ensure GCP fetcher checks if file exists before download.Charlie Johnston2023-12-021-2/+5
| | | | | | | | | | | | | | | | | The GCP fetcher was calling bb.fetch2.check_network_access with "gsutil stat" as the command, but then never actually ran that command to check if the file exists. In cases where the file did not exist in a gs:// premirror, this would lead to an unhandled exception from do_fetch when the GCP python API tried to perform the download. This change resolves that issue by adding a runfetchcmd to call gsutil. (Bitbake rev: 1ab1d36c0af6fc58a974106b61ff4d37da6cb229) Signed-off-by: Charlie Johnston <charlie.johnston@loftorbital.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: bitbake: tests: Fix duplicate test_underscore_override testRichard Haar2023-12-021-10/+10
| | | | | | | | | Found a duplicate test, added _2 suffix to one, 74 tests now pass up from 73. (Bitbake rev: ae2a19dadb4f3065b8731a61f45f29e6a70af402) Signed-off-by: Richard Haar <rh@richhaar.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: bitbake-hashclient: Add commands to get hashesJoshua Watt2023-12-021-0/+20
| | | | | | | | | | Adds subcommands to query the server for equivalent hashes and for output hashes. (Bitbake rev: 36ba202232399738670c9fb11169ead5590a3e82) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Test single recipe pageAlassane Yattara2023-12-021-0/+32
| | | | | | | | | | | | | | Test recipe page - Check if title is displayed - Check add recipe layer displayed - Check left section is displayed - Check recipe: name, summary, description, Version, Section, License, Approx. packages included, Approx. size, Recipe file (Bitbake rev: 4f16f6666ef7ccda0e7194f2107fcbbc8f915be4) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Test single layer pageAlassane Yattara2023-12-021-0/+61
| | | | | | | | | | | | | | | | Test layer page - Check if title is displayed - Check add/remove layer button works - Check tabs(layers, recipes, machines) are displayed - Check left section is displayed - Check layer name - Check layer summary - Check layer description (Bitbake rev: 740b37cc077803f134391c99fc4cae45550020f3) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Bug-fix on tests/functional/test_project_pageAlassane Yattara2023-12-021-32/+32
| | | | | | | | | | | | - Generate a random name for create project while test - Set timeout on method _wait_until_build - update test_machines_page, test_softwareRecipe_page and test_single_layer_page to fix exception "element not interactable" (Bitbake rev: 51c051da61a0396bdaa965065796476de7340727) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Added distro page TestCaseAlassane Yattara2023-12-021-0/+51
| | | | | | | | | | | | | Test distros page - Check if title "Compatible distros" is displayed - Check search input - Check "Add layer" button works - Check distro table feature(show/hide column, pagination) (Bitbake rev: 8b56af0837e9f09f13d6892c1aa1d82ecd5ef87d) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Added Layers page TestCaseAlassane Yattara2023-12-021-0/+72
| | | | | | | | | | | | | | Test layers page - Check if title "Compatible layerss" is displayed - Check search input - Check "Add layer" button works - Check "Remove layer" button works - Check layers table feature(show/hide column, pagination) (Bitbake rev: a7bdda5b31f95e39c70eefb8ddf0ec690b3786ef) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Added Machine page TestCaseAlassane Yattara2023-12-021-0/+79
| | | | | | | | | | | | | | Test Machine page - Check if title "Compatible machines" is displayed - Check search input - Check "Select machine" button works - Check "Add layer" button works - Check Machine table feature(show/hide column, pagination) (Bitbake rev: 98b78d49e2169d57324e4e471d7ad353963c273a) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Test software recipe pageAlassane Yattara2023-12-021-0/+118
| | | | | | | | | | | | | Test software recipe page - Check title "Compatible software recipes" is displayed - Check search input - Check "build recipe" button works - Check software recipe table feature(show/hide column, pagination) (Bitbake rev: b9c8c77d73d19bd4ddf9b6e90b0aa71f92d36993) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Override table edit columns TestCase from image ↵Alassane Yattara2023-12-021-0/+130
| | | | | | | | | | | recipe page Better handle TestCase of table edit column feature (Bitbake rev: 6adc708a1520f8c947f9c40fdc88ebe2b51ecc97) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster/tests: Update methods wait_until_~ to skip using time.sleepAlassane Yattara2023-12-021-5/+8
| | | | | | | | | | | Update Class Wait from selenium_helpers_base, to override wait_until_visible and wait_until_present with poll argument to better handle delay between driver actions (Bitbake rev: 486817ac6ad28580d81dcf6e3789678d9259bb54) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: cooker: Avoid eventlog variable listing lockupsRichard Purdie2023-11-271-25/+11
| | | | | | | | | | | | | | | If the event log is enabled and parsing the metadata triggers log messages, the event code and deadlock. Iterating the variables inside the event handling code causes this. SOURCE_DATE_EPOCH triggers a python function which calls bb.debug() and can trigger a lockup as one example. Move the code around and add it to the BuildStarted events explictly. This does mean runs without builds no longer get variables added to the eventlog however we can look into a more targetted version of data if/as/where neded. (Bitbake rev: 4135a617ae16d509362b5bf56378139cdc0876d2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: ui/ncurses: Add missing function call to avoid tracebackRichard Purdie2023-11-271-0/+3
| | | | | | | | | The ncurses UI wasn't working due to a missing function call. Add it to avoid a traceback when starting builds. (Bitbake rev: db8f36b69a68de2179e5685cf24a42ec10d68257) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: fetch2/aws: forward env-vars used in gitlab-ci K8sFelix Moessbauer2023-11-231-0/+2
| | | | | | | | | | | | | | | | | | | This patch adds the following variables to the allow-list, which are used in the "IAM roles for AWS when using the GitLab chart": - AWS_ROLE_ARN - AWS_WEB_IDENTITY_TOKEN_FILE These variables are set in the CI job environment and are needed to access the sstate cache artifacts in a connected S3 bucket. [1] https://docs.gitlab.com/charts/advanced/external-object-storage/aws-iam-roles.html Reported-by: Zhi Bin Dong <zhibin.dong@siemens.com> (Bitbake rev: c534526ea73805ee7cc16f3168b05ece10e0c03c) Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>