The shell scripts to build Rust projects are duplicating code
Categories
(Firefox Build System :: Toolchains, enhancement)
Tracking
(Not tracked)
People
(Reporter: marco, Unassigned)
Details
(Keywords: good-first-bug)
Attachments
(1 file)
|
10.71 KB,
patch
|
Details | Diff | Splinter Review |
Comment 1•6 years ago
|
||
The scripts build-rust-size.sh and build-grcov.sh are doing very similar tasks indeed. However, build-rust-size.sh saves the parent dir ($PROJECT) while build-grcov.sh doesn't. How can I verify/test the impact if I reuse build-grcov.sh for build-rust-size.sh?
Updated•6 years ago
|
Comment 2•6 years ago
|
||
(In reply to Gustavo Cesar [:glcesar] from comment #1)
The scripts build-rust-size.sh and build-grcov.sh are doing very similar tasks indeed. However, build-rust-size.sh saves the parent dir ($PROJECT) while build-grcov.sh doesn't. How can I verify/test the impact if I reuse build-grcov.sh for build-rust-size.sh?
You can push your patch to try using ./mach try fuzzy --full and select all of the the grcov and rust-size toolchain tasks. If those build successfully, then your patch works! :)
| Reporter | ||
Comment 3•6 years ago
|
||
(In reply to Gustavo Cesar [:glcesar] from comment #1)
The scripts build-rust-size.sh and build-grcov.sh are doing very similar tasks indeed. However, build-rust-size.sh saves the parent dir ($PROJECT) while build-grcov.sh doesn't. How can I verify/test the impact if I reuse build-grcov.sh for build-rust-size.sh?
What Nathan said ;)
Note, there might also be other build-* scripts in the same directory sharing similar code.
Comment 4•6 years ago
|
||
Hi,
Sorry for the delay. I'm trying to get commit access level 1. Can some of you give me a voucher on Bug 1598116, so I can use the command you have given?
I'm attaching my patch, so you can take a look and give any feedback.
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Updated•6 years ago
|
Comment 7•6 years ago
|
||
Note that bug 1604964 is going to reduplicate this code again, for fix-stacks.
Updated•3 years ago
|
Updated•2 years ago
|
Description
•