tests/qdsa: Move from unittests to regular tests#10185
Conversation
|
LGTM. |
e009579 to
d5fb436
Compare
|
Adjusted blacklist and insufficient memory list based on Murdock results. |
|
Test takes around 66 seconds on a samr21-xpro: Also here the question whether we want to have this run on the CI? |
cladmi
left a comment
There was a problem hiding this comment.
Test takes around 66 seconds on a samr21-xpro:
2018-10-17 22:49:44,610 - INFO # main(): This is RIOT! (Version: 2018.10-devel-1213-g386c9-dystopia-pr/tests/libcose_move) 2018-10-17 22:50:50,990 - INFO # ... 2018-10-17 22:50:50,991 - INFO # OK (3 tests)Also here the question whether we want to have this run on the CI?
This one takes only 7.6 seconds on samr21-xpro I think you mixed with the libcose test according to the output :)
So it could still be run on CI.
Other than this the test worked on iotlab-m3 and samr21-xpro.
You're right, mixed up a few numbers. As the PR is now, the test is run on |
tests/pkg_qdsa/tests/01-run.py
Outdated
|
|
||
|
|
||
| def testfunc(child): | ||
| child.expect('OK \(\d+ tests\)', timeout=120) |
There was a problem hiding this comment.
The timeout commit can be removed as it should not be necessary, I see 5 seconds execution for an iotlab-m3 and 3 seconds for samr21-xpro.
There was a problem hiding this comment.
To be more precise, the 7.6 seconds I mentioned in the main review is the total time counted by time.
But the time actually spend in the test is ~3 seconds.
There was a problem hiding this comment.
Ack, sloppy copy-paste code after moving too many package tests :)
|
|
||
| BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-uno nucleo-f031k6 | ||
|
|
||
| CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(4*THREAD_STACKSIZE_DEFAULT\) |
There was a problem hiding this comment.
As the issue also happened in test/tweetnacl I think you should keep the increased stack size for avrboards
AVR_BOARDS := arduino-duemilanove \
arduino-mega2560 \
arduino-uno \
waspmote-pro \
#
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(4*THREAD_STACKSIZE_DEFAULT+THREAD_EXTRA_STACKSIZE_PRINTF\)
This way, we could merge this without re-checking them for now.
There was a problem hiding this comment.
Is it also okay if I increase the THREAD_STACKSIZE_DEFAULT multiplier by 1? It doesn't really make sense to increase the stack size by THREAD_EXTRA_STACKSIZE_PRINTF if there are no printf statements in the code.
There was a problem hiding this comment.
Then it should be re-tested on avr which I cannot do today.
By only moving them without changing the "absurd" size, it is easy to merge.
Fixing the stack size can be another task.
There was a problem hiding this comment.
There is only one platform where increasing it to 5*THREAD_STACKSIZE_DEFAULT would result in a lower total stack size compared to 4*THREAD_STACKSIZE_DEFAULT+THREAD_EXTRA_STACKSIZE_PRINTF: the lpc2387. For all other platforms, the THREAD_STACKSIZE_DEFAULT is larger than the THREAD_EXTRA_STACKSIZE_PRINTF.
I don't mind if you want to retest on the avr platforms anyway, I'm not in that much of a hurry with this.
There was a problem hiding this comment.
Oh, I did not check the exact values for this. Thank you for researching it.
If 5* is bigger no need to retest for them.
So I like to keep the 5 * here as you updated and please explain it in the commit message (also that the lpc2387 is now smaller and not re-tested).
Putting your last comment directly is good for me.
There was a problem hiding this comment.
This concern and solving justification also applies for the other LARGE_STACK_TESTS tests you migrated.
|
Agreed with the timeout, only need to update to I tested with |
143867d to
bcff0f0
Compare
|
@cladmi squashed and reworded the commit message. Please check whether it contains al the requested information. Thanks for the thorough testing of this PR (and all the related PRs) |
|
The commit says However I now tested with From the other avr boards, So with this For information, for |
|
@cladmi Sorry for forgetting to change the actual value. So now change the commit message to reflect the current situation? |
|
By keeping it to If you prefer putting 4, just put my stack usage infos as reference. As long as it is consistent with the change and the justification I am ok. |
|
I "merged" from the web interface to check murdock output. |
|
Okay... |
|
But then murdock cannot rebase it anymore anyway D: |
|
I am finally back after the release, can you please rebase, I think it was good to go, I will quickly re-test after rebase. |
Stack size is changed from 4 times the default + printf to 5 times the default stack size. Only on the lpc2387 this reduces the resulting stack space. the test is not rerun for the lpc2387 and is untested.
4631180 to
f9eebce
Compare
|
rebased! |
|
I might have screwed something up here with my rebase. I suspect I lost a commit here :( |
|
|
|
The rebase looks ok for me, by comparing both commits against your rebase base I get this "merge-diff": Which corresponds to the rebased version on top of the We also note that after this PR, the |
cladmi
left a comment
There was a problem hiding this comment.
ACK
I successfully tested on IoT-LAB for the following boards:
BOARDS="samr21-xpro pba-d-01-kw2x b-l475e-iot01a nrf52dk arduino-zero nrf52840dk iotlab-m3 microbit frdm-kw41z"
for board in ${BOARDS}; do BOARD=${board} RIOT_CI_BUILD=1 IOTLAB_NODE=auto-ssh BUILD_IN_DOCKER=1 DOCKER="sudo docker" make --no-print-directory -C tests/pkg_qdsa clean all flash test || break; done
I also re-tested locally on arduino-mega2560
Removing LARGE_STACK_TESTS will be done separately.
And another!
Contribution description
similar to #10183, this is another large package that only increases the size of the unittests.
Testing procedure
Run the
tests/pkg_qdsatest.Issues/PRs references
Part of #10187