Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[xtask] move downloader to a separate binary #6171

Conversation

sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Jul 28, 2024

While iterating on xtask I noticed that it could be pretty slow to compile.
Turned out that a lot of the dependencies were actually coming from the
download tool.

Move the downloader into a separate binary.

On Linux, this results in the number of build units for xtask dropping from 254
to 122. That's a pretty nice improvement.

Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@sunshowers sunshowers changed the title [omicron-dev] move downloader to a separate binary [xtask] move downloader to a separate binary Jul 29, 2024
@sunshowers sunshowers changed the base branch from sunshowers/spr/main.omicron-dev-move-downloader-to-a-separate-binary to main July 29, 2024 21:58
Created using spr 1.3.6-beta.1
@sunshowers sunshowers enabled auto-merge (squash) July 29, 2024 22:00
@sunshowers sunshowers merged commit 42507eb into main Jul 29, 2024
24 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/omicron-dev-move-downloader-to-a-separate-binary branch July 29, 2024 23:15
jgallagher added a commit that referenced this pull request Aug 2, 2024
#6171 accidentally broke a4x2, because it needs to run `xtask download
softnpu`, which used to directly download softnpu bits and now tries to
`cargo run --bin xtask-downloader ...`. `cargo` isn't available within
a4x2 VMs, so this change allows that environment to specify a path to
the `xtask-downloader` binary directly.

oxidecomputer/testbed#60 is the corresponding a4x2 PR to inject
`xtask-downloader` and set the env var.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants