Commit 7ccc661
[6.0.0] Emit Tree objects in topological order (bazelbuild#16904)
* Emit Tree objects in topological order
remote-apis PR 230 added a way where producers of Tree messages can indicate that the directories contained within are stored in topological order. The advantage of using such an ordering is that it permits instantiation of such objects onto a local file system in a streaming fashion. The same holds for lookups of individual paths.
Even though Bazel currently does not gain from this, this change at least modifies Bazel's REv2 client to emit topologically sorted trees. This makes it possible for tools such as Buildbarn's bb-browser to process them more efficiently.
More details:
- bazelbuild/remote-apis#229
- bazelbuild/remote-apis#230
Closes bazelbuild#16463.
PiperOrigin-RevId: 487196375
Change-Id: Iafcfd617fc101fec7bfa943552113ce57ab8041b
* Emit Tree objects in topological order
remote-apis PR 230 added a way where producers of Tree messages can
indicate that the directories contained within are stored in topological
order. The advantage of using such an ordering is that it permits
instantiation of such objects onto a local file system in a streaming
fashion. The same holds for lookups of individual paths.
Even though Bazel currently does not gain from this, this change at
least modifies Bazel's REv2 client to emit topologically sorted trees.
This makes it possible for tools such as Buildbarn's bb-browser to
process them more efficiently.
More details:
- bazelbuild/remote-apis#229
- bazelbuild/remote-apis#230
Partial commit for third_party/*, see bazelbuild#16463.
Signed-off-by: Sunil Gowroji <[email protected]>
Signed-off-by: Sunil Gowroji <[email protected]>
Co-authored-by: Ed Schouten <[email protected]>1 parent f717d6a commit 7ccc661
File tree
7 files changed
+325
-44
lines changed- src
- main/java/com/google/devtools/build/lib/remote
- test/java/com/google/devtools/build/lib/remote
- third_party/remoteapis/build/bazel
- remote
- asset/v1
- execution/v2
- semver
7 files changed
+325
-44
lines changedLines changed: 36 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| |||
303 | 308 | | |
304 | 309 | | |
305 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
306 | 317 | | |
307 | | - | |
308 | | - | |
309 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
310 | 332 | | |
311 | | - | |
| 333 | + | |
312 | 334 | | |
313 | 335 | | |
314 | 336 | | |
315 | 337 | | |
316 | 338 | | |
317 | 339 | | |
318 | | - | |
| 340 | + | |
| 341 | + | |
319 | 342 | | |
320 | 343 | | |
321 | 344 | | |
322 | 345 | | |
323 | 346 | | |
324 | | - | |
| 347 | + | |
325 | 348 | | |
326 | 349 | | |
327 | 350 | | |
| |||
332 | 355 | | |
333 | 356 | | |
334 | 357 | | |
335 | | - | |
336 | | - | |
337 | | - | |
| 358 | + | |
| 359 | + | |
338 | 360 | | |
339 | 361 | | |
340 | 362 | | |
| |||
353 | 375 | | |
354 | 376 | | |
355 | 377 | | |
356 | | - | |
357 | | - | |
358 | | - | |
| 378 | + | |
| 379 | + | |
359 | 380 | | |
360 | 381 | | |
361 | 382 | | |
| |||
368 | 389 | | |
369 | 390 | | |
370 | 391 | | |
371 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
372 | 395 | | |
373 | 396 | | |
374 | 397 | | |
| |||
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
| |||
409 | 413 | | |
410 | 414 | | |
411 | 415 | | |
412 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
413 | 421 | | |
414 | 422 | | |
415 | 423 | | |
| |||
472 | 480 | | |
473 | 481 | | |
474 | 482 | | |
475 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
476 | 488 | | |
477 | 489 | | |
478 | 490 | | |
| |||
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1314 | 1314 | | |
1315 | 1315 | | |
1316 | 1316 | | |
1317 | | - | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
1318 | 1322 | | |
1319 | 1323 | | |
1320 | 1324 | | |
| |||
1352 | 1356 | | |
1353 | 1357 | | |
1354 | 1358 | | |
1355 | | - | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
1356 | 1364 | | |
1357 | 1365 | | |
1358 | 1366 | | |
| |||
1417 | 1425 | | |
1418 | 1426 | | |
1419 | 1427 | | |
1420 | | - | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
1421 | 1433 | | |
1422 | 1434 | | |
1423 | 1435 | | |
| |||
0 commit comments