-
Notifications
You must be signed in to change notification settings - Fork 3k
event queue test: fix out of memory for NUCLEO_F070RB #5370
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
TESTS/events/queue/main.cpp
Outdated
@@ -22,7 +22,7 @@ | |||
|
|||
using namespace utest::v1; | |||
|
|||
#define TEST_EQUEUE_SIZE 1024 | |||
#define TEST_EQUEUE_SIZE (18*EVENTS_EVENT_SIZE) |
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.
If I am not familiar with event_size, why this is 18 ? The commit neither any code/comment here provides that information how this number was selected
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.
@bulislaw
There is no strict answer.
1024 was to large to make a test passed on NUCLEO_F070RB + GCC_ARM compiler so the value was reduced below 1024.
I thought it will be more readable if expressed in EVENTS_EVENT_SIZE
same as is in EventQueue
constructor
/** EVENTS_QUEUE_SIZE
* Default size of buffer for events
*/
#define EVENTS_QUEUE_SIZE (32*EVENTS_EVENT_SIZE)
EventQueue(unsigned size=EVENTS_QUEUE_SIZE, unsigned char *buffer=NULL);
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.
OK that explains it, we are testing maximum of 18 events.
What I was after that this is a fix, and commit does not explain how it is fixing the issue (reducing event queue size to 18 events, as test does not require more, or something similar).
@maciejbocianski can you please add a comment explaining why we use 18. |
OK ! | NUCLEO_F070RB-GCC_ARM | NUCLEO_F070RB | tests-events-queue | OK | 22.29 | default | |
@maciejbocianski Could you please address the comments ? |
0f462a0
to
f28aef4
Compare
@bulislaw description added |
/morph build |
Build : SUCCESSBuild number : 421 Triggering tests/morph test |
Many tests failed on K64F with following error:
|
Build : SUCCESSBuild number : 437 Triggering tests/morph test |
@maciejbocianski Thanks for the info. I noticed another job with the same failures, something probably happend to K64F target on Friday, I am waiting for one current test to see if it persists or not. cc @studavekar for visibility |
/morph test |
One more run to be certain /morph test |
Description
Reduce memory consumption to make it "passed" on NUCLEO_F070RB + GCC_ARM compiler
Status
READY
Migrations
NO