tests: remove flash validation error failure condition#83
tests: remove flash validation error failure condition#83kr-t merged 2 commits intoproject-ocre:mainfrom
Conversation
|
Hi @PatrickRobbIOL , shouldn't this now be green: https://github.com/project-ocre/ocre-runtime/actions/runs/18349248688 |
Hi Krystian, yes tests.yml should be passing now. I see 2 issues:
Beginning test group Flash Validation Entering Setup... Script: Flash Validation SetupSetup is complete Entering Testing... Test Suite: Runtime Validation TestsTest Case: Check Runtime Hello World**** READING RESPONSE FROM BREAK **** I: OSPI flash config is OPI / DTR ocre:~$ TEST FAILED I wonder, could this be the result of networking being introduced? After a certain timeout, will the "waiting for network to be ready..." timeout and the Hello World container will be run? Or perhaps the build procedure in build.yml was modified in the past months to no longer include the Hello World container by default. Anyhow, I will try to figure out why the Hello World container is not running anymore. |
|
Hi @PatrickRobbIOL , the networking is implemented in a way that it shall not be a breaking change. If we don't have internet, we just print it and go on with the flow. Check this log: |
903d6cb to
5cd30f5
Compare
Thank you. My PR is now passing the hello world test. The reason it was not working is because it was reading the stdout when the board was halfway through initializing. So, it was capturing something from the first half (the networking setup) but it was too early to capture the "Hello World from Ocre." I think the reason why this used to work with the old timeout is that less was happening during the ocre init, and now that more is happening, a longer sleep is needed. I also had to move the tests from tests.yml to build.yml because of restrictions related to workflow_run. |
|
I can see that hello world passes. Shall we remove the test.yml then? Because as of now we still have them failing, which we probably don't want as our default state. Or would you suggest changing something else? Thanks! |
Hi. Right, tests.yml is being removed in this PR. This is desired from my perspective as I want to move the invocation of the tests to build.yml. The tests.yml test is still running (until this PR is merged) because it runs based on the main branch, not the PR source branch. |
|
Hi @PatrickRobbIOL I'd merge it, but you have to have verified signature on github, otherwise it isn't letting me. |
20dbeca to
adc41ad
Compare
Previously, some tests within the flash validation testsuite were set to fail when the error prefix was detected. This is now removed per instruction from the Ocre community developers. Now, the flash validation testsuite includes only one testcase which just checks for the expected hello world string and fails if it is not detected. Signed-off-by: Patrick Robb <probb@iol.unh.edu>
adc41ad to
84e081c
Compare
|
Thanks. I actually wasn't aware of key signing git commits. Cool! So, this PR should be unblocked now. If we can merge this, early next week Matt and I can send in some new testcases. He showed me his testcase for the modbus server today and it looks good. |
|
Hi @PatrickRobbIOL , the flashing test isn't working anymore. I think there is nothing wrong with the test itself, but the way we flash the board. If you check the earlier test, it was fine (on right) - but now somehow it isn't loading the correct image (left). Check the sizes of the containers - on right it's the correct 3850, on left some giant size of something else. I see two possible problems: either you tested something else, and the debugger aren't clearing correctly the flash - or you have some other zephyr.bin which it flashes instead if the image it should. P.S. I have downloaded and tested the artifact from this PR - it works fine on my board. So something is messed up either during the automatic download/storage or the flash itself. We need to rely on this test and on the board, otherwise no pull request will be able to pass it if it won't work deterministically. |
Thanks, yes I looked this morning and I saw the new logs, and that instead of starting the Hello World container, it says the container fails to start. Matt will look at it today. Matt, first things first let me update the PR so that it uses Krystian's recommended command. |
Previously, the test groups were invoked within a dedicated tests workflow, triggered by a workflow_run event. This did not work well because workflows triggered by workflow_run are forced to run from the main branch as a security measure. So, changes to the test workflow coming in from a pull request were not used in the CI testing. This commit also includes an increased sleep on the flash validation test, allowing it to properly initialize the hello world container and fill the output buffer with the expected string. Signed-off-by: Patrick Robb <probb@iol.unh.edu>
84e081c to
e8ba268
Compare
|
It seems that it is working, even though I had to retrigger it again. Let's deliver it, but I propose that in the future we review our testing and separate them into multiple files/jobs. |




Description
Previously, some tests within the flash validation testsuite were set to fail when the error prefix was detected. This is now removed per instruction from the Ocre community developers. Now, the flash validation testsuite includes only one testcase which just checks for the expected hello world string and fails if it is not detected.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
This will be tested when the PR is opened, given that it is a change to how the GHA workflows are set up.
Checklist: