-
-
Notifications
You must be signed in to change notification settings - Fork 6
Temporary changes for NUC BOX MTL testing, do not merge. #1013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,7 +91,7 @@ Measure Coldboot Time | |
| # Do one more iteration than requested, as we may hit first boot which is always longer. | ||
| FOR ${index} IN RANGE 0 ${iterations}+1 | ||
| Power Cycle On | ||
| Boot System Or From Connected Disk ${os_id} | ||
| # Boot System Or From Connected Disk ${os_id} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This assumes we just boot to the target OS as a default one? What is the problem with this kwd?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is for Fedora testing on RTE-less setup, with no way to select boot entry.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @matmacieje So with SSH? For SSH this kwd should be skipped: https://github.com/Dasharo/open-source-firmware-validation/blob/develop/lib/bios/menus.robot#L1287 So I wonder what's the exact issue here, so we can solve it properly.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this change required?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @matmacieje I see in the 2nd PR you also commented it out. Both me and @philipanda think it's not necessary. Can you please prove us wrong e.g. by attaching some logs?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did it to avoid recurring errors of Boot Menu parsing (no Ubuntu entry on the list). Example:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The keywords that parse the boot menu remove a hardcoded amount of lines from the start and from the end of the menu to get rid of unwanted lines that do not contain actual boot entries. If some newline is lost because of unstable serial connection, then this way of parsing the menu fails. In that case it is reasonable to temporarily comment this and allow the device to boot to the default boot option just to allow the tests to run. This change should not be merged though. A way to fix this would be to search for some characteristic strings in the setup menu instead of hardcoding the amount of lines to drop, but lost newlines separating the boot entries could still break all of this. I guess the most robust way to overcome this problem would be to re-enter the boot menu if errors are encountered. That would make the execution longer if errors occur, but it won't fail. Such extreme workaround should be implemented with care, especially that we have reasons to suspect that the errors on serial are caused by the implementation of the USB serial console in EDK2, as there are no serial console errors once the device boots into an OS. |
||
| Login To Linux | ||
| Switch To Root User | ||
| ${boot_time}= Get Boot Time From Cbmem | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,17 @@ Resource include/default.robot | |
|
|
||
|
|
||
| *** Variables *** | ||
| ${INITIAL_DUT_CONNECTION_METHOD}= SSH | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might be useful to create some common config that defines the testing mode, like RTE-only, RTE+sonoff, SSH+sonoff, SSH+none. |
||
| ${DUT_CONNECTION_METHOD}= SSH | ||
| ${POWER_CTRL}= sonoff | ||
| # ${OPTIONS_LIB}= options-lib_dcu | ||
| ${TESTS_IN_FIRMWARE_SUPPORT}= ${FALSE} | ||
| ${LAPTOP_PLATFORM}= ${FALSE} | ||
|
|
||
| ${DEFAULT_BOOT_OS_ID}= ${ENV_ID_FEDORA} | ||
| @{TESTED_LINUX_DISTROS}= | ||
| ... ${ENV_ID_FEDORA} | ||
|
|
||
| ${CPU}= Intel(R) Core(TM) Ultra 5 125H | ||
| ${DEF_CORES_PER_SOCKET}= 14 | ||
| ${DEF_THREADS_TOTAL}= 18 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -273,6 +273,11 @@ ${OS_UBUNTU}= ubuntu | |
| ... platform_vendor=Clevo | ||
| ... sonoff_ip=192.168.10.229 | ||
|
|
||
| # NovaCustom NUC BOX desktop | ||
| &{RTE74}= ip=192.168.10.254 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it the one on your desk, or in the lab?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. None, this is dummy entry.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A dummy entry to get past through the inability of running tests without RTE? So again #198 or similar. Is RTE required by OSFV also when we are running tests over SSH?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was definitely not needed a couple months ago. |
||
| ... platform=novacustom-nuc_box | ||
| ... platform_vendor=Clevo | ||
|
|
||
| @{RTE_LIST}= &{RTE05} &{RTE06} &{RTE07} &{RTE08} &{RTE09} | ||
| ... &{RTE10} &{RTE11} &{RTE12} &{RTE13} &{RTE14} | ||
| ... &{RTE15} &{RTE16} &{RTE17} &{RTE18} &{RTE19} | ||
|
|
@@ -286,7 +291,7 @@ ${OS_UBUNTU}= ubuntu | |
| ... &{RTE55} &{RTE56} &{RTE57} &{RTE58} &{RTE59} | ||
| ... &{RTE60} &{RTE61} &{RTE62} &{RTE63} &{RTE64} | ||
| ... &{RTE65} &{RTE66} &{RTE67} &{RTE68} &{RTE69} | ||
| ... &{RTE70} &{RTE71} &{RTE72} &{RTE73} | ||
| ... &{RTE70} &{RTE71} &{RTE72} &{RTE73} &{RTE74} | ||
|
|
||
| # hardware database: | ||
| # ----------------------------------------------------------------------------- | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need such a change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we don't want RTE IP check for RTE-less desktop setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matmacieje So that would be a feature request for something like: #198 ?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is already merged https://github.com/Dasharo/open-source-firmware-validation/pull/1006/files
The line was added somewhat recently and is not needed unless someone wants to use RTE alongside SSH as the main connection method, but that breaks tests without an RTE