-
Notifications
You must be signed in to change notification settings - Fork 463
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
improvements to debug tests infrastructure to help with triaging process #531
Conversation
Previously the seed was not printed and this created problems with reproduction of the issues. It's still not an ideal - meaning interactions between spike/gdb/openocd are inherently non-determistic (since time is involved), but at least we should get the same sources for the same seed now.
introduce a new option to log communications over GDB remote serial protocol which is helpful for debugging some tests.
fixes setting of `remotetimeout`. It was silently overwritten by default values from platform definition even if user specified one.
This helped with debugging some sporadic failures of DownloadTest (incorrect remotetimeout was selected) and SV39Test (riscv-collab/riscv-openocd#1010) |
regarding the pipeline failure:
This does not look like a problem with this MR, but rather some kind of infrastructural problem. @timsifive could you please advise who could review this MR ? |
@rtwfroody (looks like a new account of @timsifive ) and maybe @en-sc - could you take a look please? I'm also not quite sure who should merge these commits now. |
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.
LGTM
@aswaterman could you take a look? |
This change to
seems to cause problems with the
because of the first two lines here:
Perhaps those "PRNG seed ..." lines were just for debugging and were supposed to be removed before the commit/PR was merged? |
Actually this is intentional. The intention is to print the PRNG seed so one can reproduce the run. What is the issue execatly? |
The The output should be:
not
When those two log messages appear in the list then we get this which is simply wrong:
|
If the |
Something like this?
|
Ahhh. It's just that I've never used this switch. According to the description of this option:
Now I see. This parameter implies that no tests are run.
Yeah... We should not print that if "list-tests" is specified. Will fix |
Sorry - my post crossed with yours but maybe my suggested code change above is adequate for a fix? |
Yep. It looks like it is. |
I can do a PR for that change tomorrow (it's late here and I need to rest :-) if you want but if you get there before me then that's obviously fine too. ;-) |
me tired. me wants sleep. me happy if you create the change :). |
This improvement fixes several issues:
print selected seed. Previously the seed was not printed and this
created problems with reproduction of the issues. It's still not an
ideal - meaning interactions between spike/gdb/openocd are inherently
non-determistic (since time is involved), but at least we should get
the same sources for the same seed now.
introduced a new option to log communications over GDB remote serial
protocol which is helpful for debugging some tests.
fixes setting of remotetimeout. It was silently overwritten by
default values from platform definition even if user specified one.