Skip to content

← All questions

Dataset uses type "db" but @sdods/db is not available — is the package optional or not?

Asked 3,280 views0 answers

We keep the test workspace deliberately thin — the runner and nothing else — because it is installed on machines that only ever execute suites. One scenario reads reference rows from a table and it dies at run time:

text
✖ DB_REQUIRED: Dataset uses type "db" but @sdods/db is not available.
  hint: Install @sdods/db and configure env.db in envs/<env>.yaml.

env.db is configured, so it is the first half of the hint that applies.

What I cannot work out is whether this is a supported configuration or an accident. sdods config validate is clean, so the config layer clearly does not consider a db source to imply the dependency. Nothing fails until that one scenario runs, which in our case is forty minutes in.

Two questions, really. Is the package meant to be present in every install and we have broken ours? And if it is genuinely optional, is there a way to make the missing dependency a configuration error at validate time rather than a run-time failure three quarters of the way through a nightly?

asked by Anouk de Vries238 ·

No answers yet

Nobody has answered this one. If you have hit the same thing and worked it out, that is worth writing down.

Ask a related question

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related