| Summary: | toaster: Test using broken hard coded value : 7 | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Toaster | Reporter: | Mathieu Dubois-Briand <mathieu.dubois-briand> |
| Component: | toaster | Assignee: | David Reyna <david.reyna> |
| Status: | NEW --- | QA Contact: | Toaster default assignee <toaster> |
| Severity: | normal | ||
| Priority: | Undecided | ||
| Version: | unspecified | ||
| Target Milestone: | 0.0.0 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Mathieu Dubois-Briand
2025-11-20 08:42:26 UTC
toaster ubuntu2404-vk-3 master completed at 2025-11-20 03:12:53+00:00 E selenium.common.exceptions.NoSuchElementException: Message: Cannot locate option with value: 7; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception https://autobuilder.yoctoproject.org/valkyrie/#/builders/88/builds/518/steps/12/logs/stdio With the removal of "Styhead", "Kirkstone" now in drops to the absolute position "6". This is the normal size of the "supported" release table.
This position should be stable for "Kirkstone" until "Kirkstone" is itself removed.
Here is the evidence. Look at the file "/layers/bitbake/lib/toaster/orm/fixtures/poky.xml":
<object model="orm.bitbakeversion" pk="6">
<field type="CharField" name="name">kirkstone</field>
<field type="CharField" name="giturl">git://git.openembedded.org/bitbake</field>
<field type="CharField" name="branch">2.0</field>
<field type="CharField" name="dirpath"></field>
</object>
I recommend that you update the test scripts for this new position.
If possible, I recommend that the position for "Kirkstone" be programmatically derived from "/layers/bitbake/lib/toaster/orm/fixtures/poky.xml" so that there are no brittle hard coded values. Hope this helps. Alternatively, if one goes to the Toaster page "toastergui/newproject/" and examines the ID "projectversion", they should find: <option value="6">Yocto Project 4.0 "Kirkstone"</option> toaster ubuntu2204-vk-4 master completed at 2025-11-20 08:55:24+00:00 E selenium.common.exceptions.NoSuchElementException: Message: Cannot locate option with value: 7; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception https://autobuilder.yoctoproject.org/valkyrie/#/builders/88/builds/519/steps/12/logs/stdio toaster ubuntu2404-vk-2 master completed at 2025-11-21 03:13:41+00:00 E selenium.common.exceptions.NoSuchElementException: Message: Cannot locate option with value: 7; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception https://autobuilder.yoctoproject.org/valkyrie/#/builders/88/builds/520/steps/12/logs/stdio This is a test defect, not a Toaster defect, per my comments. David, I'm not sure what was your intent, but this ticket was somehow assigned to myself. Resetting to default owner, please fix it if needed. It appears that Richard fixed this issue a few days ago: [toaster]$ git show 80761fe2062464035033b5a7681709b4fc308198 commit 80761fe2062464035033b5a7681709b4fc308198 Author: Richard Purdie <richard.purdie@linuxfoundation.org> Date: Fri Nov 21 09:29:41 2025 +0000 toaster: Fix test after styhead removal The styhead removal changed the indexing, update the tests to match. We really need to remove these hardcoded values. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> diff --git a/lib/toaster/tests/functional/test_create_new_project.py b/lib/toaster/tests/functional/test_create_new_project.py index 66213c736..51c8c1203 100644 --- a/lib/toaster/tests/functional/test_create_new_project.py +++ b/lib/toaster/tests/functional/test_create_new_project.py @@ -53,7 +53,7 @@ class TestCreateNewProject(SeleniumFunctionalTestCase): - Release: Yocto Project 4.0 "Kirkstone" (option value: 6) - Merge Toaster settings: True """ - release = '7' + release = '6' release_title = 'Yocto Project 4.0 "Kirkstone"' project_name = 'projectkirkstone' self.create_new_project( [toaster]$ |