MetPX / sr_insects

test cases for sarracenia python and c implementations.
GNU General Public License v2.0
0 stars 0 forks source link

poll components erroring. #16

Closed petersilva closed 2 years ago

petersilva commented 2 years ago

the polls are reporting too many items and frequently exceeding tolerances, making it necessary to re-run the test. Need to identify the root cause. It does not look like a real problem, but some kind of testing artifact.... but it might be real.

the rest of flow tests seem to be ok. ( continuation of: https://github.com/MetPX/sarracenia/issues/407 )

petersilva commented 2 years ago

so far... I have noticed that, while with the same config as static, the paths the flakey's poll is generating are wrong. Example:

022-10-07 06:53:58,941 [INFO] sarracenia.flowcb.log after_work noticed ok: /home/peter/sarra_devdocroot/sent_by_tsource2send/home/peter/sarra_devdocroot/sent_by_tsource2send/20200105/WXO-DD/bulletins/alphanumeric/20200105/CA/CWAO/03/CACN00_CWAO_042000__WXL_07612

between after_accept and after_work, the beginning of the path is getting doubled up (notice the two occurrences of sent_by_tsource2send in the path...) The doubled up path is what gets posted. This change in path between cache check and post make every file get added to the cache twice (once with each path), and posted twice (both with the wrong path). Mysteries:

petersilva commented 2 years ago

the doubling of the path was because of an errant / the "directory" option started with // ... wondering if some path normalization would be good. That was one problem, but the tests still fail.

petersilva commented 2 years ago

ok... I committed the fixes to sr3 from https://github.com/MetPX/sarracenia/issues/566 ... and while everything is fine on my laptop, all flakey and dyn tests fail on github... sigh... q_71 subscribe... strange.

petersilva commented 2 years ago

OK... so flakey passes now, but dynamic is always failing, sometimes by 1 test, other times by 10...

petersilva commented 2 years ago

flakey now reliably passes, problems with dynamic were unrelated, also flaky is posting very close to the right number (none missing or extra.)