Closed Bug 1237366 Opened 9 years ago Closed 9 years ago

Import rust toolchain container description

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: rillian, Assigned: rillian)

References

Details

Attachments

(2 files)

Per Ted on irc, we should move the rust toolchain builder into the three. I've been experimenting with doing the custom builds we're using for linux64 tooltool at https://github.com/rillian/rust-build/ based on the rust project's buildbot worker image at https://github.com/rust-lang/rust-buildbot/
Assignee: nobody → giles
Attachment #8704763 - Flags: review?(ted)
Blocks: oxidation
Comment on attachment 8704763 [details] [diff] [review] Import rust-build Review of attachment 8704763 [details] [diff] [review]: ----------------------------------------------------------------- This looks fine, but Dustin may have some thoughts.
Attachment #8704763 - Flags: review?(ted)
Attachment #8704763 - Flags: review?(dustin)
Attachment #8704763 - Flags: review+
Comment on attachment 8704763 [details] [diff] [review] Import rust-build Review of attachment 8704763 [details] [diff] [review]: ----------------------------------------------------------------- This looks fine as far as it goes (TIL `grep -c` -- cool!). However, there's some extra machinery in-tree that will probably be useful for you. And using it will help the next person to not be surprised by this directory. Not quite r-, but I think these changes will be beneficial for you. In particular, testing/docker/build.sh can run the Dockerfile in a subdirectory for you, and automatically tag things. So you could remove your Makefile and add VERSION and REGISTRY files (the former with the image version; the latter with the repository you will push the image to, so maybe "rust" for a docker hub org of that name, or "quay.io/rust" if you're a quay.io user. This arrangement fits with the other images in testing/docker, and allows you to version the image nicely in hg. It is also supported by the decision task's docker-image-building support, if and when this becomes a part of the gecko build graph. The one tricky bit I see is that testing/docker/build.sh looks for testing/docker/rust-build/build.sh and assumes it is a script to build the docker image, rather than a script to build the toolchain. So you may need to rename that script, perhaps to bin/build.sh or just build-toolchain.sh. Finally, you might consisder putting the build script in the rust repository, and running `checkout-sources.sh && ${WORKSPACE}/rust/util/build-toolchain.sh`. Then if you need to tweak something in the toolchain build process, you don't need to rebuild the docker image.
Attachment #8704763 - Flags: review?(dustin) → feedback+
Follow-up patch removes the Makefile, renames fetch and build scripts to avoid conflicts, adds VERSION and REGISTRY files. > Finally, you might consisder putting the build script in the rust repository. I'd like to keep it on our side for now. I want to move to using upstream's builds when possible, but that isn't an option yet. Until then, this is all gecko-specific and I doubt the rust maintainers would be interested.
Attachment #8710716 - Flags: review?(dustin)
Comment on attachment 8710716 [details] [diff] [review] address review comments Review of attachment 8710716 [details] [diff] [review]: ----------------------------------------------------------------- apologies for the delay in reviewing
Attachment #8710716 - Flags: review?(dustin) → review+
No worries. Thanks for reviewing!
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: