Commit dc14a6e
authored
[CLI] Migrate package (#5060)
### Changes
This PR adds the new `casp package` command to the `casp` CLI. Which
acts as a convenient wrapper for the root `butler.py package` script.
### How it works:
- `casp package` packages ClusterFuzz with a staging revision.
- `casp package -p <platform>` specifies the target platform (`linux`,
`macos`, `windows`, or `all`).
- `casp package -r <release>` sets the release channel (options: `prod`,
`candidate`, or `chrome-tests-syncer`).
- If `-r` is not provided, the release channel defaults to `prod`.
### Changes in butler
Regarding the refactor/improvement in `butler.py`, here are some
screenshots comparing running `python butler.py package` in this branch
and master. They show that the behavior is the same.
<img width="1438" height="233" alt="image"
src="https://github.com/user-attachments/assets/b33a65ae-e816-4bbe-a531-4c80f3aff62d"
/>
<img width="1438" height="234" alt="image"
src="https://github.com/user-attachments/assets/cef26580-2bdf-416b-8822-25e008ea2893"
/>
<img width="1438" height="233" alt="image"
src="https://github.com/user-attachments/assets/271b09e6-14cd-4122-a72a-e8908557ff6c"
/>
<img width="1438" height="234" alt="image"
src="https://github.com/user-attachments/assets/fa1d3b03-6332-488f-9931-74542d26bdd4"
/>
### Demo prints
Here are some screenshots of `casp package` in action:
* `casp package -p linux`
<img width="1438" height="233" alt="image"
src="https://github.com/user-attachments/assets/1aa540cf-4211-40a0-b074-4bf6dd7905fd"
/>
<img width="1438" height="234" alt="image"
src="https://github.com/user-attachments/assets/278595f9-b1eb-4cbc-a5bd-58ced2b5816f"
/>1 parent 6b10da3 commit dc14a6e
File tree
3 files changed
+136
-13
lines changed- cli/casp/src/casp
- commands
- tests/commands
3 files changed
+136
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
101 | 114 | | |
102 | 115 | | |
103 | 116 | | |
| |||
334 | 347 | | |
335 | 348 | | |
336 | 349 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | 350 | | |
348 | 351 | | |
349 | 352 | | |
| |||
457 | 460 | | |
458 | 461 | | |
459 | 462 | | |
| 463 | + | |
460 | 464 | | |
461 | 465 | | |
462 | 466 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
20 | | - | |
21 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
22 | 41 | | |
23 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
0 commit comments