Open Bug 1676456 Opened 5 years ago Updated 2 years ago

For artifact builds package "rapl" as part of the common test package and make it available to "mach power"

Categories

(Firefox Build System :: Bootstrap Configuration, defect, P5)

defect

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

Details

I'm using an artifact build locally and would like to use the rapl binary for power measurement purposes. Sadly it's only build when you run a full build.

As such it would be great if the command would automatically fetch the binary if it's not present on disk.

I don't know if this is the right component but my quick look as I try to get things out of Core: General makes me think it might be ok :)

Component: General → Bootstrap Configuration
Product: Core → Firefox Build System

Huh, TIL that ./mach power exists, neat!
I think this make sense, but I'm not sure there's time on the build team to resolve this soon :(

Priority: -- → P5

Mitchell, maybe you can link to some examples for other tools? Maybe I can find some time in the next weeks.

Flags: needinfo?(mhentges)

Hmm, good question.
I'd recommend taking a look at how ./mach bootstrap calls ./mach artifact to fetching things like clang.
I believe that there's "toolchain" builds in CI that create and host the packages that ./mach artifact will download, but I'm not entirely sure. Perhaps toolchains.yml is a good lead to follow?

Flags: needinfo?(mhentges)

Mike, do you know if there is already an artifact for rapl as built in CI or uploaded to tooltool that we could download with a fetch task? Thanks.

Flags: needinfo?(mh+mozilla)

It doesn't seem to be shipped anywhere, not even test packages. It's also currently not buildable independently of Firefox.

Flags: needinfo?(mh+mozilla)

(In reply to Mike Hommey [:glandium] from comment #6)

It doesn't seem to be shipped anywhere, not even test packages. It's also currently not buildable independently of Firefox.

Hm, is that binary something we could consider building separately? Or maybe just ship as artifact for a Firefox build? It would be kinda helpful.

Flags: needinfo?(mh+mozilla)

It's too tiny to be worth building separately. Stick it in the common test package or something, and pull it from there like we take xpcshell and some other stuff from test packages.

Flags: needinfo?(mh+mozilla)
Summary: "mach power" should fetch rapl binary for artifact builds → For artifact builds package "rapl as part of the common test package to make it "mach power" should fetch rapl binary for artifact builds

Thanks Mike! That's a good idea. When I have the time I can have a look at it.

Summary: For artifact builds package "rapl as part of the common test package to make it "mach power" should fetch rapl binary for artifact builds → For artifact builds package "rapl" as part of the common test package and make it available to "mach power"
Severity: -- → S4
You need to log in before you can comment on or make changes to this bug.