DBT state weird behavior #7264
Replies: 1 comment 3 replies
-
This would likely benefit from the "explainable |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
state:modifed
flag to speed up the (Self-host Gitlab) CI tests and make it more relevant.manifest.json
is stored bygit lfs
DBT_ARTIFACT_STATE_PATH
is properly setDetails:
Issue:
Firstly, I am not super savvy about DBT, I am learning by building and reading the docs (the docs are actually quite nice)
I am able to run
dbt ls -s state:modified
dbt run --models state:modified
and see only 5 models need to be tested since the last deployment.
The thing is when it's on CI, the same command always pick up thousand of models (which is basically all of them). And I've used several ways to verify the manifests on remote are correct or not. And they're all good. I can use artifacts to cache all of them, and then download them to run those commands locally. I can see the numbers are the same which is 5 models.
It seems like this only happens when it's on CI.
I wonder if anyone experienced the same issue, or maybe have some clues?
Thanks for all the help in advance.
Beta Was this translation helpful? Give feedback.
All reactions