# dbt Slim CI with Gitlab CI Runner

**URL:** <https://discourse.getdbt.com/t/dbt-slim-ci-with-gitlab-ci-runner/6239>\
**Category:** Help\
**Tags:** orchestration-and-deployment\
**Created:** [January 19, 2023, 3:54pm UTC](https://discourse.getdbt.com/t/dbt-slim-ci-with-gitlab-ci-runner/6239 "2023-01-19T15:54:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jberkowitz](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jberkowitz](https://discourse.getdbt.com/u/jberkowitz)\
**Post date:** [January 19, 2023, 3:54pm UTC](https://discourse.getdbt.com/t/dbt-slim-ci-with-gitlab-ci-runner/6239/1 "2023-01-19T15:54:42Z")

</div>

## The problem I’m having

I’m attempting to implement a Slim CI configuration on our deployment of dbt Core, and I’m running into an error where the image I’m using isn’t recognizing the `manifest.json` file in the root directory of my dbt project, even after I’ve copied it from my source.

## What I’ve already tried

I’ve been able to successfully copy a `manifest.json` file from an S3 bucket during our CI run, but when I attempt to run dbt with state selectors, I’m receiving the following error:

```auto
Runtime Error
  Got a state selector method, but no comparison manifest

```

## Some example code or error messages

This is the setup of my CI run. I have a current `manifest.json` file stored in the `dbt-manifests` bucket.  
I’ve tested this out locally by just removing a column from two different models, so there should be a modified state to check.

```auto
$ aws s3 ls
2023-01-19 14:26:48 dbt-manifests
$ aws s3 cp s3://dbt-manifests/manifest.json ./
download: s3://dbt-manifests/manifest.json to ./manifest.json   
$ ls
Dockerfile
Makefile
README.md
analysis
data
dbt_packages
dbt_project.yml
deployment.yml
logs
macros
manifest.json
models
packages.yml
poetry.lock
profiles.yml
pyproject.toml
requirements.txt
snapshots
tests
$ dbt run --target staging --select state:modified+ state ./
15:53:38 Running with dbt=1.3.1
15:53:38 Partial parse save file not found. Starting full parse.
15:53:50 Found 502 models, 211 tests, 11 snapshots, 0 analyses, 922 macros, 9 operations, 7 seed files, 218 sources, 15 exposures, 0 metrics
15:53:51 Encountered an error:
Runtime Error
  Got a state selector method, but no comparison manifest

```

---

<div class="post-metadata">

**Author:** ![a\_slack\_user](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/a_slack_user/32/1629_2.png) [@a\_slack\_user](https://discourse.getdbt.com/u/a_slack_user)\
**Post date:** [January 19, 2023, 4:29pm UTC](https://discourse.getdbt.com/t/dbt-slim-ci-with-gitlab-ci-runner/6239/2 "2023-01-19T16:29:22Z")

</div>

Nevermind - I screwed up the syntax.  
I forgot to add the `--` flag to my state selector.  
I changed it to `--state:modified+` and it works.  
We can close this out!

Note: `@Joey Berkowitz` originally [posted this reply in Slack](https://getdbt.slack.com/archives/CBSQTAPLG/p1674145749593389?thread_ts=1674143703.968319&cid=CBSQTAPLG). It might not have transferred perfectly.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/1X/a7a7ca1fe379aaf90952b0e13118a817babcd14f.png) [@system](https://discourse.getdbt.com/u/system)\
**Post date:** [January 26, 2023, 4:29pm UTC](https://discourse.getdbt.com/t/dbt-slim-ci-with-gitlab-ci-runner/6239/3 "2023-01-26T16:29:37Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
