Closed
Bug 892048
Opened 11 years ago
Closed 11 years ago
[test-agent] The test agent hangs when 1 test run is asked but another is already running
Categories
(Firefox OS Graveyard :: Gaia::TestAgent, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: julienw, Assigned: julienw)
References
Details
Attachments
(1 file)
STR:
* have the test agent server running in background
* open a big unit test file
* save the file twice: once first to trigger a run, and once while the first run is running
Expected:
* a second run runs after the running one
Actual:
* the first run is stopped, and then we must restart the test agent server to make it work again.
Flags: needinfo?(jlal)
Comment 1•11 years ago
|
||
Sounds like a test-agent bug? We probably don't (or can't) cancel one test run for another right now.
Flags: needinfo?(jlal)
Assignee | ||
Comment 2•11 years ago
|
||
At one point, I think the requests were queued... So I think this is a regression.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → felash
Assignee | ||
Comment 3•11 years ago
|
||
I have a WIP in https://github.com/julienw/js-test-agent/compare/892048-fix-race-between-tests
We don't get the "test runner end" event when running "APP=<app> make test-agent-test", I don't know the reason yet.
James, do you think the queuing logic should go to the browser-worker instead of the queue-tests file?
Flags: needinfo?(jlal)
Comment 4•11 years ago
|
||
hrm... Its been awhile since I looked at this code but I think it needs to have some relationship with the server side since it manages when is "done" by keeping track of the completed events sent by the worker.
Flags: needinfo?(jlal)
Assignee | ||
Comment 5•11 years ago
|
||
AFAIK the server-side does not manage at all when is "done" currently.
I've finally resolved the issue in comment 3 but I've been thinking more about this and I think I'll redo it in the browser.
Assignee | ||
Updated•11 years ago
|
Component: Gaia → Gaia::TestAgent
Assignee | ||
Comment 6•11 years ago
|
||
I'm not requesting review yet because I want to properly test the latest code.
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 8375450 [details]
github PR
ok, this works fine for me.
I have one caveat with the following STR:
* save a file that is watched by the process
* run "make test-agent-test" in a separate terminal
=> the output of the watched file's run is terminated because of the capture.
There are several solutions to this:
* the simplest solution is to simply stop the capture, but I think it would be ugly in travis
* a more elaborate solution is to track when a test starts/ends, I started doing this but this is not _that_ easy. I think the ultimate solution would be to have the same id for mirroring and for the request, so that we can couple these.
But I think this is for another bug since this patch fixes the main most important issue.
Attachment #8375450 -
Flags: review?(jlal)
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 8375450 [details]
github PR
Yuren, if you can review this, since James seems to be away :)
Attachment #8375450 -
Flags: review?(yurenju.mozilla)
Comment 9•11 years ago
|
||
Comment on attachment 8375450 [details]
github PR
also set feedback flag to ricky to get more feedback.
Attachment #8375450 -
Flags: feedback?(ricky060709)
Comment 10•11 years ago
|
||
Comment on attachment 8375450 [details]
github PR
looks good to me if nits are addressed, although I have a question for _sendBatchRequest() but I bet you have a good reason for it, so r=yurenju :-)
Attachment #8375450 -
Flags: review?(yurenju.mozilla) → review+
Assignee | ||
Comment 11•11 years ago
|
||
master: a2f0b1a797a620ddab5d7ee4dd54090fc01a2254
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•11 years ago
|
Attachment #8375450 -
Flags: review?(jlal)
Updated•11 years ago
|
Attachment #8375450 -
Flags: feedback?(ricky060709) → feedback+
You need to log in
before you can comment on or make changes to this bug.
Description
•