itest: fix build matrix, WebSocket test timeout and log file upload#5845
Conversation
80323a3 to
59b39e9
Compare
yyforyongyu
left a comment
There was a problem hiding this comment.
LGTM⚡️
The neutrino backend still times out. Maybe we could get this merged so that other PRs could have the complete build? Pending a release note btw.
There was a problem hiding this comment.
Maybe we need to check both the errors from WriteMessage and Close (so two requires)?
There was a problem hiding this comment.
👍Probably explains some of the test timeouts? Saw neutrino failed with this message, nice to have it!
There was a problem hiding this comment.
Yes, this should explain at least some of the timeouts. Though it looks like we still have a few other flakes, even within the REST API tests...
59b39e9 to
fec26fb
Compare
|
I think this is what previously caused the test to block entirely. Now we at least get a failure. Will investigate what causes it. |
|
Needs rebase...assuming we pinpoint that latest failure. |
The testing framework uses runtime.Goexit() when a test fails which still allows the defer calls to execute. That's why we should use defer to close the done channel to allow all goroutines to exit properly.
fec26fb to
c2ebc49
Compare
It turns out we were using the wrong matrix variable in the actual make command and ran the same itest 6 times with no arguments, all resulting in running the btcd test. To avoid uploading too many files in individual requests, we zip them first before uploading the zip itself.
c2ebc49 to
4e224fe
Compare
|
Rebased. Don't see the previous failure anymore. Instead there are new flakes now... |
carlaKC
left a comment
There was a problem hiding this comment.
Code looks good, can't offer much wisdom re new flakes.
|
Going to merge this now to fix the issue of the wrong itests being run. This will make things a bit less green overall but at least doesn't show a distorted picture anymore. |
Fixes the timeout that sometimes occurred in the REST WebSocket ping/pong test.
Also fixes an issue with the itest failure log file upload that would cause 500 server errors if we tried to upload too many files for one action. We pack all logs before uploading them.