-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(tilt): refactor build cmds to speed up initial
dev:up
This change changes the build step for a Tilt local resource (called the `cmd` attribute) to a common `buck2 build` command with all core backend targets enumerated. In other words, all the following services: - `//app/web:dev` - `//bin/forklift:forklift` - `//bin/pinga:pinga` - `//bin/rebaser:rebaser` - `//bin/sdf:sdf` - `//bin/veritech:veritech` will use the *same* `buck2 build ...` command. Why and How? Prior to this change, each service only tried to build itself (that is, the Rebaser only attempted to build `//bin/rebaser:rebaser`). The problem with this approach is that each `buck2 build` subcommand would interfere with other in-flight `buck2 build` commands as they share a single `buckd` daemon (this is enforced by design in the Buck2 daemon). With this change, the first service to start building will build *all* the other core services in parallel via a single `buck2 build` command. That means that once the first build is done, all subsequent `buck2 build` commands will immediately return as the daemon knows no inputs have been modified since the last build invocation for those targets. Signed-off-by: Fletcher Nichol <[email protected]>
- Loading branch information
Showing
1 changed file
with
63 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters