-
Notifications
You must be signed in to change notification settings - Fork 4
reports: enforce UNKNOWN keyword #107
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
Conversation
m-iwanicki
left a comment
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.
One small change, apart from that it looks good:
[OK] PCI configuration space and topology
[OK] USB devices and topology
[OK] Super I/O configuration
[OK] EC configuration
[ERROR] MSRs
[OK] SMBIOS tables
[OK] BIOS information
[OK] CMOS NVRAM
[UNKNOWN] Intel configuration registers
[OK] GPIO configuration C header files
[OK] kernel dmesg
[OK] ACPI tables
[UNKNOWN] Audio devices configuration
[OK] CPU info
[OK] I/O ports
[OK] Input bus types
[ERROR] Firmware image
[OK] I2C bus
[UNKNOWN] ACPI tables
[OK] Touchpad information
[ERROR] DIMMs information
[UNKNOWN] CBMEM table information
[UNKNOWN] CBMEM console
[ERROR] TPM information
[UNKNOWN] AMT information
[OK] ME information
[UNKNOWN] Graphics VBT
There is still problem that some items will always be unknown as we are always passing UNKNOWN string to this function e.g.
Audio devices configurationACPI tables- the second one (I think it's duplicate)Graphics VBT
I think to close the issue 100% you would have to fix that too
The logic for checking if test should fail by default is reversed, thus all passes or errors are treated as unknowns. Enforce checking the keyword "UNKNOWN" for the tests. Fixes: Dasharo/dasharo-issues#1304 Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com>
950ba29 to
3a6d887
Compare
@3mkusiak, have you checked, why we are not providing the error log file as a second argument to the If my assumption is correct - provide comments near the |
Dunno how about the rest, but the ACPI tables one silently fails, so I wouldn't call it a feature. Either way, Imo we should let it fail, not enforce unknowns, this is just a workaround for lazy coding. Dunno, why it's implemented the way it is as there are no descriptions in commits. |
Does not matter how it is implemented, if it works as we expect it should. Does the missing log files an expected behaviour in these 3 cases? |
|
@DaniilKl it's likely because all 3 dump more than 1 log and |
Why can't we use any of the log files to check the status? Or use all three log files, but name the statuses for every log file differently? |
I assume you ask if it's expected these commands do not produce logs. They don't, not the "classic" form we expect at least, but this is on our side to collect this logs. The tasks might silently fail and will never fix them. I might as well, remove printing updates for these actions and just perform them in silence. |
3a6d887 to
35e09b0
Compare
The current progress bar implementation disallows for easy moving tasks around and adding or removing them. Implement dynamic progress bar, so the tasks can be easily altered. Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com>
35e09b0 to
0f98325
Compare
|
@3mkusiak, open issues for these 3 cases describing the situation in details and link the issue in the source code as a comment. We will get to them later. |
3 tasks in hcl report logic are enforced to finish with UNKNOWN status, due to the fact they not produce single STDERR and STDOUT logs. The issues have been submitted. Link those issues in the source code. Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com>
|
Repro: |
m-iwanicki
left a comment
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.
Works, tested on QEMU without emulation:
[OK] PCI configuration space and topology
[UNKNOWN] USB devices and topology
[OK] Super I/O configuration
[UNKNOWN] EC configuration
[ERROR] MSRs
[OK] SMBIOS tables
[OK] BIOS information
[OK] CMOS NVRAM
[UNKNOWN] Intel configuration registers
[OK] GPIO configuration C header files
[OK] kernel dmesg
[OK] ACPI tables
[UNKNOWN] Audio devices configuration
[OK] CPU info
[OK] I/O ports
[OK] Input bus types
[OK] I2C bus
[UNKNOWN] ACPI tables
[OK] Touchpad information
[ERROR] DIMMs information
[ERROR] CBMEM table information
[ERROR] CBMEM console
[ERROR] TPM information
[ERROR] AMT information
[OK] ME information
[UNKNOWN] Graphics VBTThis change bumps dts version to address following issues: * Fix dpp update issue, in which update defaulted to heads: Dasharo/dts-scripts#106 * Fix hcl report issue, in which all checks defaulted to UNKNOWN and implement dynamic progress bar, which shows current task number: Dasharo/dts-scripts#107 Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com>

The logic for checking if test should fail by default is reversed, thus all passes or errors are treated as unknowns. Enforce checking the keyword "UNKNOWN" for the tests.
Fixes:
Dasharo/dasharo-issues#1304