Comments (12)
This is usually a threading problem, they don't always like to die on their own. You can either set them to daemon mode or explicitly pass some "die now" data into them
from openhtf.
Yeah, I suspect the threads that aren't dying are in the Rocket instance in the HttpHandler. Once we flatten multi-cell support in the framework, there will be fewer places to look for the cause of this behavior.
from openhtf.
More info on this. It actually still happens with the bare-bones frontend API server we now have, so it wasn't specific to Rocket. SIGINT handling consistently fails if SIGINT happens while execution is inside one of the HTTP handlers.
from openhtf.
Provide a DUT ID in order to start the test.
^CReceived SIGINT. Stopping everything.
Exception happened during processing of request from ('127.0.0.1', 57906)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 647, in init
self.setup()
File "/usr/lib/python2.7/SocketServer.py", line 699, in setup
self.rfile = self.connection.makefile('rb', self.rbufsize)
File "/usr/lib/python2.7/socket.py", line 217, in makefile
return _fileobject(self._sock, mode, bufsize)
ThreadTerminationError
from openhtf.
Observing this also with the bazel build environment
from openhtf.
Found that SIGQUIT ( Ctrl+) will kill the process.
from openhtf.
Does this only happen when the frontend is being accessed or can it be any time?
from openhtf.
My test cases about were without the front end running.
Also SIGQUIT may not be best method since tear down methods would be skipped.
from openhtf.
Additional observation from head:
If I start the tester like this then do CTRL+C it hangs
test.Execute(test_start=triggers.PromptForTestStart())
If I disable http and execute CTRL+C stops execution immediately:
test.Configure(http_port=None)
test.Execute(test_start=triggers.PromptForTestStart())
Does this point to http server being the issue?
from openhtf.
Yes, I believe the issue is in the http server. @grybmadsci and I have some changes planned for the HTTP API that will give us a good opportunity to investigate and resolve this.
from openhtf.
Is anyone still seeing issues with CTRL+c
in the current PyPI version?
from openhtf.
I believe this is fixed now.
from openhtf.
Related Issues (20)
- Request: visualize FAIL_AND_CONTINUE as red color on the web frontend. HOT 2
- AttributeError: '_Configuration' object has no attribute 'KeyAlreadyDeclaredError' HOT 4
- Request: add stop bottom in web gui and signal
- web_gui build is broken HOT 5
- If plug configuration is dynamic (e.g. configs loaded from a file), how can the decorators be updated accordingly? HOT 2
- frontend_example with PyInstaller HOT 3
- Running a phase in backgroud HOT 7
- Request: Add ability to FAIL_AND_CONTINUE instead of STOP when a Phase reaches max_repeats
- How to build a test running multiple test groups concurrently, but showing I/O data of all test groups on the same webpage? HOT 1
- HIL testing? HOT 5
- multiple monitors for a single phase?
- KeyError in `PlugManager.provide_plugs` HOT 6
- monitors decorator does not fully copy the specification of the monitored phase
- Feature Request(?): Provide a mechanism for displaying images in the front-end HOT 1
- Progress bar/completion status stops if test is marked as FAIL. HOT 4
- How could I call a PhaseDescriptor explicitly? HOT 3
- runtime reporting/logging for each phase during test HOT 6
- Having trouble using the unit test decorator @test.patch_plugs to mock a device I'm testing. HOT 3
- where PyOpenSSL is used?
- Unused `six` import in monitor code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openhtf.