OLD | NEW |
| (Empty) |
1 LUCI Hacks - A set of shims used to provide an iterable end-to-end demo. | |
2 | |
3 The main goal of Luci Hakcs is to be able to use iterate on Milo as if it was | |
4 displaying real data. These are a couple of hacks used to get LUCI running from | |
5 "git cl try --luci" to displaying a page on Milo. These include: | |
6 | |
7 luci_recipe_run.py: | |
8 * Downloading a depot_tools tarball onto swarming from Google Storage to bootstr
ap gclient. | |
9 ** LUCI shouldn't require depot_tools or gclient. | |
10 * Running gclient on a swarming slave to bootstrap a full build+infra checkout. | |
11 ** M1: This should check out the recipes repo instead. | |
12 ** M2: The recipes repo should have been already isolated. | |
13 * Seeding properties by emitting annotation in stdout so that Milo can pick it | |
14 up | |
15 * Running annotated_run.py from a fake build directory "build/slave/bot/build" | |
16 | |
17 trigger_luci_job.py: | |
18 * Master/Builder -> Recipe + Platform mapping is hardcoded into this file. This | |
19 is information that is otherwise encoded into master.cfg/slaves.cfg. | |
20 ** Actually I lied, we just assume linux right now. | |
21 ** M1: This information should be encoded into the recipe via luci.cfg | |
22 * Swarming client is checked out via "git clone <swarming repo>" | |
23 * Swarming server is hard coded into the file. This info should also be pulled | |
24 out from luci.cfg | |
25 * Triggering is done directly to swarming. Once Swarming is able to pull from | |
26 DM we can send jobs to DM instead of swarming. | |
27 | |
28 | |
29 Misc: | |
30 * This just runs the full recipe on the bot. Yes, including bot_update. | |
31 ** In the future this would be probably an isolated checkout? | |
32 ** This also includes having git_cache either set up a local cache, or download | |
33 the bootstrap zip file on every invocation. In reality there isn't a huge | |
34 time penalty for doing this, but at scale it does incur a non-trival amount o
f | |
35 unnecessary bandwidth. | |
OLD | NEW |