- Write function to add lldb remote test steps
- Modify lldb cmake factory to accept optional remote test related arguments
- Add remote test on x86&clang-3.5 to cmake builder
Details
Diff Detail
Event Timeline
Please see comments below:
buildbot/osuosl/master/config/builders.py | ||
---|---|---|
724 | Does this have to be hardcoded? You should probably use a hostname instead if it must be hardcoded. | |
zorg/buildbot/builders/LLDBBuilder.py | ||
266 |
Why not ssh -f?
Is this remote machine accessible from anywhere besides the build machine? If you know the hostname of the build machine, you should probably use that instead of *. Also, must the port be hardcoded? |
buildbot/osuosl/master/config/builders.py | ||
---|---|---|
724 | The remote test instance was created with static ip, so this should be fine. It was not easy to debug with hostname, because gce instance cannot be reached by hostname from workstation(maybe there is some way that i don't know about). | |
zorg/buildbot/builders/LLDBBuilder.py | ||
266 | "ssh -f" doesn't detach the process from current shell, the process is still running in the background when using "ssh -f". Since buildbot will wait for current process exit to continue next step, so use "screen -d -m" to return immediately. Yes, it's accessible from any machine for authorized users. |
Refactor code to have a common getLLDBTestSteps function
Use hostname instead of ip address for remote host
Remote host only listen to connection from builder
Mostly LGTM.
You should probably add vharron to the reviews, or at least add him as a subscriber so that he in the know of the changes you are making, and also of the changes that I am suggesting.
zorg/buildbot/builders/LLDBBuilder.py | ||
---|---|---|
310 | You should put the remote config in a JSON file. That will eliminate parsing. Something like remote_cfg.json. You can generate this JSON from Python interpreter (and need not hand create it). | |
313 | For my knowledge: Do the extracted dictionary keys become properties automagically? | |
319 | Nit: Fix the indentation of the function params here to align with the opening '('. |
zorg/buildbot/builders/LLDBBuilder.py | ||
---|---|---|
310 | That is probably a good idea. I have to learn more about JSON. | |
313 | Yes, dictionary keys returned from extract_fn will be added to property list. This code has been verified. | |
319 | This should be ok based on PEP8. |
LGTM to avoid another round trip. But please address comments before submitting.
zorg/buildbot/builders/LLDBBuilder.py | ||
---|---|---|
14 | Nit: This is standard library module. Should be above 'import os' at line #1. | |
311 | The JSON file itself should have keys 'remote_host', 'remote_port', and 'remote_dir'. You just do this: return json.loads(stdout) | |
319 | Nit (repeating from last time): Fix the indentation of the params to align to the opening '('. |
Does this have to be hardcoded? You should probably use a hostname instead if it must be hardcoded.