Commit 7d01b36
committed
devtool: Add flag to build to allow compiling arbitrary revisions
Passing `--rev` to `tools/devtool build` will do a checkout of the
specified revision into a temporary directory, compile firecracker into
it, and then copy over the final binaries into build/$revision.
This has advantages over our current approach for compiling A/B
revisions, as by only copying the final binaries into build/$revision we
save a lot of bandwidth when uploading artifacts for transfer between
different buildkite steps (as we no longer include gigabytes of
compilation artifacts).
This now means that all revisions are compiled in the same docker
container, however due to the rust-toolchain.toml this should not have
an impact on cross-toolchain testability, and has the advantage that the
cargo cache is shared (meaning we're hitting crates.io for downloads
less).
Signed-off-by: Patrick Roy <[email protected]>1 parent b1a93cb commit 7d01b36
File tree
4 files changed
+32
-13
lines changed- .buildkite
- tools
4 files changed
+32
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
| 183 | + | |
193 | 184 | | |
194 | 185 | | |
195 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
449 | 450 | | |
450 | 451 | | |
451 | 452 | | |
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
| 456 | + | |
455 | 457 | | |
456 | 458 | | |
457 | 459 | | |
| |||
489 | 491 | | |
490 | 492 | | |
491 | 493 | | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
492 | 509 | | |
493 | 510 | | |
494 | 511 | | |
495 | 512 | | |
496 | 513 | | |
497 | | - | |
| 514 | + | |
498 | 515 | | |
499 | 516 | | |
500 | 517 | | |
501 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
502 | 528 | | |
503 | 529 | | |
504 | 530 | | |
| |||
0 commit comments