Rooster 0.2.0, from dbt project to running in one command

Point rooster serve at a dbt project and it writes the config, adds the project and starts. Also in this release, targets that work the way dbt does and one config file wherever you start Rooster.

Rooster 0.2.0 is out. Most of it is about the first five minutes: getting from a dbt project you already have to Rooster running it.

One command to start

In 0.1.0 you wrote a config file first, then added your project to it by hand, then started Rooster. Now you point Rooster at your project:

rooster serve ~/path/to/your/dbt-project

Rooster reads the project’s name from dbt_project.yml, adds it to your config file, and starts. If there is no config file yet, it writes one. It tells you what it changed:

wrote ~/.config/rooster/rooster.yaml with project shop

Next time, plain rooster serve is enough. If Rooster is already running, the project is still added, and you’re told to restart Rooster so it picks the project up.

Inside a dbt project, rooster serve . does the same. And if you run plain rooster serve with no config file, Rooster now suggests these commands instead of just stopping.

To add a project without starting Rooster, use rooster init <project-dir>. It keeps your file’s comments and blank lines as they were.

Targets work the way dbt does

A target’s profile: and target: are both optional now. Leave out target: and dbt runs with your profile’s default output, the same as dbt run in your terminal.

The starter config uses exactly that: one target, default, that runs with your profile’s own default. Before, it assumed an output named dev, and setups without one failed on the first run.

Target and schedule names may also contain - now, so a target named after an output like eu-prod works.

Settings › Targets shows which parts of a target you set. A part you left out is a dashed box that says where the value comes from: the project’s profile, or the profile’s default target.

One config file, wherever you start

Rooster no longer looks for a rooster.yaml in the folder you happen to be in. It uses ~/.config/rooster/rooster.yaml, or a file you name with --config or ROOSTER_CONFIG. Before, starting Rooster from the wrong folder could quietly pick up a different file. The config file guide says where Rooster looks and how to check which file is in use.

All of Rooster’s state now lives in one folder, too. The socket the CLI talks to sits next to the database, and nothing is left in ~/.rooster.

Upgrading from 0.1.0

  • Restart Rooster once after you upgrade. The socket moved, so the CLI can’t reach a Rooster that’s still running from 0.1.0. See Upgrade.
  • If you start Rooster from a folder that holds a rooster.yaml, that file is no longer used on its own. Name it with --config, or set ROOSTER_CONFIG.

Feedback

Tell us what breaks and what’s missing. The full list of changes is in the release notes.

  • release

Put your dbt project on a schedule this afternoon.

Install one binary, point it at your project, pick a time.