Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding custom outputFiles to dbtCLI task causes dbt artifacts to no longer be rendered #157

Open
anna-geller opened this issue Oct 28, 2024 · 0 comments
Labels
area/plugin Plugin-related issue or feature request bug Something isn't working

Comments

@anna-geller
Copy link
Member

Issue description

This issue is not a blocker but sth worth investigating long term.

As long as you add outputFiles property to the dbtCLI task, the models are no longer rendered. We should investigate why

Reproducer:

setup flow:

id: upload_dbt_project
namespace: company.datateam.dbt

tasks:
  - id: wdir
    type: io.kestra.plugin.core.flow.WorkingDirectory
    tasks:
      - id: git_clone
        type: io.kestra.plugin.git.Clone
        url: https://github.com/kestra-io/dbt-example
        branch: master

      - id: upload
        type: io.kestra.plugin.core.namespace.UploadFiles
        namespace: "{{ flow.namespace }}"
        files:
          - "glob:**/dbt/**"

then:

id: dbt_build
namespace: company.datateam.dbt

tasks:
  - id: dbt
    type: io.kestra.plugin.dbt.cli.DbtCLI
    namespaceFiles:
      enabled: true
    containerImage: ghcr.io/kestra-io/dbt-duckdb:latest
    projectDir: dbt
    commands:
      - dbt build --project-dir dbt --profiles-dir dbt
    loadManifest:
      key: manifest.json
      namespace: "{{ flow.namespace }}"
    storeManifest:
      key: manifest.json
      namespace: "{{ flow.namespace }}"     
    taskRunner:
      type: io.kestra.plugin.scripts.runner.docker.Docker

the above flow will work fine, but then try adding:

    outputFiles:
      - "**/*.json"

dbt outputs are no longer rendered

@anna-geller anna-geller added bug Something isn't working area/plugin Plugin-related issue or feature request labels Oct 28, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Issues Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugin Plugin-related issue or feature request bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant