<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 20, 2015 at 4:46 PM, Kamil Rytarowski <span dir="ltr"><<a href="mailto:n54@gmx.com" target="_blank">n54@gmx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
</span>It just appeared there.<br>
<br>
I took your updateScripts.sh, moved it to my $PATH. Is it everything?</blockquote><div> </div><div>Please also put the test_cfg.json to this location, <span style="color:blue;font-family:'Courier New',courier,monotype,monospace;font-size:medium">/home/motus/build/build/.</span> A dummy file is ok if you don't want to run any test.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Will the rest of the scripts from<br>
<a href="https://android.googlesource.com/platform/external/lldb-utils/+/lldb-mas
ter-dev/buildbotScripts/bashShell/svntotbuild/" rel="noreferrer" target="_blank">https://android.googlesource.com/platform/external/lldb-utils/+/lldb-mas<br>
ter-dev/buildbotScripts/bashShell/svntotbuild/</a><br>
be fetched/used automatically?<br>
<br>
Do I need a local copy of it? If so, do I need to fetch the whole<br>
directory<br>
<a href="https://android.googlesource.com/platform/external/lldb-utils/+/lldb-mas
ter-dev/buildbotScripts" rel="noreferrer" target="_blank">https://android.googlesource.com/platform/external/lldb-utils/+/lldb-mas<br>
ter-dev/buildbotScripts</a><br>
?</blockquote><div><br></div><div>You don't need a local copy of any of it. updateScripts.sh will fetch everything automatically. </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
According to builders.py (<br>
<a href="https://github.com/llvm-mirror/zorg/commit/c901503848e900fc1af0c43c93c98
daddd2f23fd" rel="noreferrer" target="_blank">https://github.com/llvm-mirror/zorg/commit/c901503848e900fc1af0c43c93c98<br>
daddd2f23fd</a><br>
)<br>
<br>
I use: 'factory':LLDBBuilder.getLLDBScriptCommandsFactory(runTest=False)<br>
}<br>
<br></blockquote><div><br></div><div>Please also add "downloadBinary=False" </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
At the moment I don't want to run tests and leave it for later.<br>
<br>
I restarted the build bot with the staging server and this is what I get<br>
:<br>
2015-10-20 23:43:33+0000 [-] Log opened.<br>
2015-10-20 23:43:33+0000 [-] twistd 15.4.0 (/usr/pkg/bin/python2.7<br>
2.7.10) starting up.<br>
2015-10-20 23:43:33+0000 [-] reactor class:<br>
twisted.internet.pollreactor.PollReactor.<br>
2015-10-20 23:43:33+0000 [-] Starting BuildSlave -- version: 0.8.8<br>
2015-10-20 23:43:33+0000 [-] recording hostname in twistd.hostname<br>
2015-10-20 23:43:33+0000 [-] Starting factory<br>
<buildslave.bot.BotFactory instance at 0x7f7ff53e0908><br>
2015-10-20 23:43:33+0000 [-] Connecting to <a href="http://lab.llvm.org:9994" rel="noreferrer" target="_blank">lab.llvm.org:9994</a><br>
2015-10-20 23:43:34+0000 [Broker,client] message from master: attached<br>
2015-10-20 23:43:35+0000 [Broker,client]<br>
SlaveBuilder.remote_print(lldb-amd64-ninja-netbsd7): message from<br>
master: attached<br>
2015-10-20 23:43:35+0000 [Broker,client] Connected to<br>
<a href="http://lab.llvm.org:9994" rel="noreferrer" target="_blank">lab.llvm.org:9994</a>; slave is ready<br>
2015-10-20 23:43:35+0000 [Broker,client] sending application-level<br>
keepalives every 600 seconds<br>
<br>
<br>
How to enforce it to start a test build now? I want to check quickly<br>
whether it works, not just send keepalives every 10 minutes..</blockquote><div><br></div><div>Click force build button from this page to kick off a build right away.</div><div><a href="http://lab.llvm.org:8014/builders/lldb-amd64-ninja-netbsd7">http://lab.llvm.org:8014/builders/lldb-amd64-ninja-netbsd7</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Thank you in advance,<br>
<span class=""><br>
<br>
On 21.10.2015 01:17, Ying Chen wrote:<br>
> Please check again. Please note that this file needs to be included<br>
> in your PATH. The rest of the scripts don't have to. Sample of test<br>
> configuration file could be found here.<br>
> <a href="https://android.googlesource.com/platform/external/lldb-utils/+/lldb-m
aster-dev/buildbotScripts/testCfg/" rel="noreferrer" target="_blank">https://android.googlesource.com/platform/external/lldb-utils/+/lldb-m<br>
aster-dev/buildbotScripts/testCfg/</a><br>
><br>
>  On Tue, Oct 20, 2015 at 3:50 PM, Kamil Rytarowski <<a href="mailto:n54@gmx.com">n54@gmx.com</a><br>
</span><span class="">> <mailto:<a href="mailto:n54@gmx.com">n54@gmx.com</a>>> wrote:<br>
><br>
> Where can I find this updateScripts.sh? It's missing under your<br>
> link:<br>
><br>
> <a href="https://android.googlesource.com/platform/external/lldb-utils/+/lldb-m" rel="noreferrer" target="_blank">https://android.googlesource.com/platform/external/lldb-utils/+/lldb-m</a><br>
as<br>
><br>
><br>
ter-dev/buildbotScripts/bashShell/svntotbuild/<br>
</span>> <<a href="https://android.googlesource.com/platform/external/lldb-utils/+/lldb-" rel="noreferrer" target="_blank">https://android.googlesource.com/platform/external/lldb-utils/+/lldb-</a><br>
<div><div class="h5">mas<br>
><br>
><br>
ter-dev/buildbotScripts/bashShell/svntotbuild/><br>
><br>
> On 21.10.2015 00:29, Ying Chen wrote:<br>
>> Hello Kamil, Galina,<br>
><br>
>> If you would like to build LLDB with cmake and ninja, I suggest<br>
>> to consider the following two factory functions. Depends on what<br>
>> you described, I feel the first one works better for you.<br>
><br>
>> 1. getLLDBUbuntuCMakeBuildFactory If you only run local lldb<br>
>> tests, this is the factory to use.<br>
><br>
>> For example, if you would like to build host lldb with clang and<br>
>> Release config, and run tests with clang on x86_64 host, then<br>
>> call the function this way,<br>
><br>
>> getLLDBUbuntuCMakeBuildFactory(build_compiler = "clang",<br>
>> build_type = "Release", local_test_archs=["x86_64"],<br>
>> local_test_compilers=["clang"]) If you would like to run local<br>
>> tests with gcc compiler as well, then pass<br>
>> local_test_compilers=["clang", "gcc"]<br>
><br>
>> Dependency: You need to have the required packages to build<br>
>> lldb.<br>
><br>
>> Note*: please disable the last step in this function<br>
>> "archiveLLDBTestTraces", this steps will upload the log files to<br>
>> a cloud storage that you might not have access to.<br>
><br>
>> 2. getLLDBScriptCommandsFactory<br>
><br>
>> If you have multiple targets to run tests against, for example,<br>
>> remote linux, remote android targets and etc, you should choose<br>
>> this factory. The advantage of this factory is that it calls a<br>
>> script in each step, so it's highly configurable and easy to<br>
>> make changes. You just need to make sure the scripts are in<br>
>> builder machine and have the correct commands. For your<br>
>> reference, the ones that we're currently using could be found<br>
>> here.<br>
>> <a href="https://android.googlesource.com/platform/external/lldb-utils/+/lldb-" rel="noreferrer" target="_blank">https://android.googlesource.com/platform/external/lldb-utils/+/lldb-</a><br>
m<br>
><br>
>><br>
aster-dev/buildbotScripts/bashShell/svntotbuild/<br>
</div></div>> <<a href="https://android.googlesource.com/platform/external/lldb-utils/+/lldb-" rel="noreferrer" target="_blank">https://android.googlesource.com/platform/external/lldb-utils/+/lldb-</a><br>
<span class="">m<br>
><br>
><br>
aster-dev/buildbotScripts/bashShell/svntotbuild/><br>
><br>
><br>
> updateScript as the first step, is just copy the scripts to local<br>
> builde rs.<br>
><br>
>> Please let me know if you have further questions.<br>
><br>
>> Thanks, Ying<br>
><br>
><br>
>> On Tue, Oct 20, 2015 at 1:46 PM, Kamil Rytarowski <<a href="mailto:n54@gmx.com">n54@gmx.com</a><br>
> <mailto:<a href="mailto:n54@gmx.com">n54@gmx.com</a>><br>
</span><span class="">>> <mailto:<a href="mailto:n54@gmx.com">n54@gmx.com</a> <mailto:<a href="mailto:n54@gmx.com">n54@gmx.com</a>>>> wrote:<br>
><br>
>> Hello Ying,<br>
><br>
>> I'm in trouble with my attempts to connect my NetBSD/amd64<br>
>> machine to the LLDB/LLVM build zone.<br>
><br>
>> My host is NetBSD-7.0 (with buildslave ID:<br>
>> lldb-amd64-ninja-netbsd7). I use pkgsrc (2015Q3) to ship<br>
>> packages. I'm attaching a list of installed ones to this mail.<br>
><br>
>> I talked with Joerg and it was decided to go for CMake and<br>
>> Ninja, we don't want to change it for now (at least till single<br>
>> machine will be plugged in).<br>
><br>
>> Please try to spawn local NetBSD session and connect to the<br>
>> staging buildbot and debug it locally, to cut the number of<br>
>> iterations between me and the Galina.<br>
><br>
>> I'm adding here a short tutorial to get to reproduce quickly the<br>
>> setup of mine. It will take you like 2-5 minutes to get into<br>
>> installed system (depends of an internet connection).<br>
><br>
>> 1. Prepare a disk image. $ qemu-img create -f qcow2<br>
>> netbsd7.0_amd64 10G<br>
><br>
>> 2. Get an installation media. $ $FETCH_TOOL<br>
>> <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-7.0/amd64/installation/cdrom/b" rel="noreferrer" target="_blank">ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-7.0/amd64/installation/cdrom/b</a><br>
o<br>
><br>
>><br>
ot<br>
><br>
><br>
</span><div><div class="h5">> -com.iso<br>
><br>
>> 3. Spawn installation $ qemu-system-x86_64 \ -enable-kvm \ -net<br>
>> user \ -m 2G \ -cdrom boot-com.iso \ -nographic \ -smp cores=2 \<br>
>> -hda netbsd7.0_amd64 \ -boot d<br>
><br>
>> 4. Inside the installer push ctrl-c and get the command line.<br>
><br>
>> 5. Setup network connection: # dhcpcd<br>
><br>
>> 6. Go to a writable dir, like /tmp # cd /tmp<br>
><br>
>> 7. Fetch the autoinst.sh script of mine # ftp<br>
>> <a href="ftp://ftp.netbsd.org/pub/NetBSD/misc/kamil/autoinst.sh" rel="noreferrer" target="_blank">ftp://ftp.netbsd.org/pub/NetBSD/misc/kamil/autoinst.sh</a><br>
><br>
>> # sh autoinst.sh -s 128 -r mypass -c com0 -C 9600 -p wd0<br>
><br>
>> (take a coffee break)<br>
><br>
>> 8. If everything went OK, just type: # poweroff<br>
><br>
>> 9. Start your newly installed system qemu-system-x86_64 \<br>
>> -enable-kvm \ -net user \ -m 2G \ -nographic \ -smp cores=2 \<br>
>> -hda netbsd7.0_amd64 \ -boot c (root password is empty)<br>
><br>
>> 10. Install dependencies from pkgsrc, like: # cd<br>
>> /usr/pkgsrc/devel/cmake && make install<br>
><br>
>> Please install packags needed for buildslave, create dedicated<br>
>> user and try to connect it to the salve.<br>
><br>
>> Thank you in advance,<br>
><br>
>> On 20.10.2015 21:40, Galina Kistanova wrote:<br>
>>> Hello Kamil,<br>
><br>
>>> It looks like you are missing dependencies for the LLDB<br>
>>> builder you have chosen.<br>
>>> <a href="http://lab.llvm.org:8014/builders/lldb-amd64-ninja-netbsd7/builds/75" rel="noreferrer" target="_blank">http://lab.llvm.org:8014/builders/lldb-amd64-ninja-netbsd7/builds/75</a><br>
/<br>
><br>
>>><br>
s<br>
><br>
>>><br>
> teps/update%20scripts/logs/stdio<br>
>> <<a href="http://lab.llvm.org:8014/builders/lldb-amd64-ninja-netbsd7/builds/75" rel="noreferrer" target="_blank">http://lab.llvm.org:8014/builders/lldb-amd64-ninja-netbsd7/builds/75</a><br>
/<br>
><br>
>><br>
s<br>
><br>
><br>
> teps/update%20scripts/logs/stdio><br>
><br>
><br>
><br>
>> The getLLDBScriptCommandsFactory build factory does not document<br>
>>> the assumed dependency, so you may want to contact Ying Chen,<br>
>>> who is the author for the complete list of dependencies.<br>
><br>
>>> Another thing you may want to do is to reconsider the builder<br>
>>> you want to use. Maybe LLDBBuilder.getLLDBBuildFactory would<br>
>>> work better for you, though it requires autoconfig and make.<br>
><br>
>>> I'm adding the LLDB mail list in case somebody has an idea of<br>
>>> what would be the easiest way to get the NetBSD builder for<br>
>>> LLDB up and running.<br>
><br>
>>> Hello everyone,<br>
><br>
>>> Kamil is on the mission of getting LLDB builder for<br>
>>> NetBSDwhich would build clang+LLVM, then LLDB and run tests.<br>
>>> What is the shortest and less painful route there? Any<br>
>>> suggestions? Just looking at the source code of the current set<br>
>>> of the LLDB builders, it is hard to tell which one is the<br>
>>> "main".<br>
><br>
>>> Thanks<br>
><br>
>>> Galina<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
</div></div>iQIcBAEBCAAGBQJWJtJdAAoJEEuzCOmwLnZsAwAQALuk4r59wHhpbVSOYJG7I4eq<br>
BeCXw2ZI0TzrLebtOaPOTEeQSODGBjHIh1VV9Phym06zWInQbOM5zw4LxxeCZn3Z<br>
M97FReOLnPwCHKQtorIyGPl6i945v12fHSXjHh5tYinlIioYYI+Tfqo/+S771cYK<br>
4txvm1zYCMfqorf/R8UMdMUobVeD5TUhzXEWfmpwBVQyAafNeMS9V6U2BjfZmg/o<br>
3PwV7oTB0OymCFWlMsMdmyripWixcAbCASOPEzeR1eqjGuubvBwB4TMPGTvcBb5p<br>
l2x2qJqVkEDRilJLFRuY8LYnDm+TBKMGOrlYFjpzAX4mjDppDpY6Dm7EgTderf+Z<br>
3JhoTarZ186QxSMzV73brixCcwjoWlxEXjb7r19WKbtFOOUoU7JD4/dd9dPGwtEY<br>
JgGp26QzPTqynCsCBdTx64XYdXj6B1eylyOk3bc3ghloXZYjMRXUtmoFlmU58tDM<br>
Kp3GtssVKXJ0V6wpXiWYD8wzTM6Dn80vXuOT6vDHs91TVcgvatn/NnJ/DW2qeCVE<br>
ZfmHW1n4hhfwO0NRB03zpuPSM2bJSFD2U5y5Mh0zuTf19gJXlcKmfj74/u9v6kQA<br>
cU+NEJ7d/V9zPEdVY/WY/Q0/p+RLGZWOJLzlq2dTKY6wLZ7XHtPAHCkM4rY1fgVu<br>
aa4tjE/V3W16TKu49b7m<br>
=7HQp<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br></div></div>