Layer "ui" is not enabled for project demo-shop — but the features are right there
Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.
I have @ui scenarios in features/cart/ and they lint clean. Running them:
bash
sdods run -p demo-shop -e staging -l ui -b chromium
text
Layer "ui" is not enabled for project demo-shop (layers: api).
Exit code 2. What is checking this, if not the feature files?
The project YAML is. layers: in projects/demo-shop/sdods.project.yaml is an allow-list of what this project may be run at, and yours says [api]. The features being present does not enable a layer — that would make a stray tag silently add a browser run to everybody's pipeline.
Add it:
yaml
layers: [api, ui]
Exit code 2 always means configuration or usage rather than a failing test, which is the distinction to teach your CI file: a 2 is your problem, a 1 is the product's. The full list is on Reference → Exit codes.