Christopher Ekfeldt
01/04/2024, 3:02 PMdbt source freshness before running this command.Willi
01/05/2024, 7:37 AMChristopher Ekfeldt
01/05/2024, 8:39 AMChristopher Ekfeldt
01/05/2024, 8:41 AMChristopher Ekfeldt
01/05/2024, 8:41 AMWilli
01/05/2024, 11:40 AMedr to have access to that filesystem. However, when you point edr to it by using --project-dir , it does not pick it up.
Could you share the code for your check-files? Is the edr container executing that?
I checked how I run edr and I haven't used the --project-dir yet so I can neither deny or confirm that it works.
I've been running edr either:
⢠a) inside a custom docker image which also contains dbt
⢠b) in github actions without docker so that both dbt and edr have access to the github workflow environment.Christopher Ekfeldt
01/05/2024, 12:02 PMChristopher Ekfeldt
01/05/2024, 12:03 PMWilli
01/05/2024, 4:01 PM--project-dir flag
b) or, the --project-dir flag has a defect
Would you agree with that analysis?Christopher Ekfeldt
01/08/2024, 9:51 AM- name: '${var.elementary_image}'
id: source-freshness
allowExitCodes: [0,1]
allowFailure: true
entrypoint: '/bin/bash'
args:
- '-c'
- 'dbt source freshness --target dev && edr run-operation upload-source-freshness --project-dir . --profiles-dir .dbt-profiles --profile-target dev'Christopher Ekfeldt
01/08/2024, 11:57 AMWilli
01/08/2024, 12:11 PM; instead of && to have them executed even if the preceding command failed.
Does this solve everything now?Christopher Ekfeldt
01/08/2024, 12:32 PMOfek Weiss
01/08/2024, 2:38 PMedr run-operation upload-source-freshness prefers the env variable DBT_TARGET_PATH over the cli argument --project-dir, so you can try overwriting it in your stepChristopher Ekfeldt
01/09/2024, 10:29 AMChristopher Ekfeldt
01/09/2024, 10:31 AM- name: '${var.dbt_config.image}'
id: source-freshness
allowExitCodes: [0,1]
allowFailure: true
waitFor: ['-']
args: [ 'source', 'freshness', '--target', '${var.dbt_config.environment}' ]
- name: '${var.elementary_image}'
id: upload-source-freshness
waitFor:
- source-freshness
args: [ 'run-operation', 'upload-source-freshness', '--project-dir', '.','--profiles-dir', '.dbt-profiles', '--profile-target', '${var.dbt_config.environment}' ]
env:
- 'DBT_TARGET_PATH=target/'
- name: '${var.elementary_image}'
id: generate-elementary-report
waitFor:
- upload-source-freshness
args: [ 'monitor', 'report', '--profiles-dir', '.dbt-profiles', '--profile-target', '${var.dbt_config.environment}', '--file-path', 'index.html', '--env', '${var.elementary_env}' ]Ofek Weiss
01/09/2024, 10:33 AM