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 · 1 comment
Assignees
Labels
area/backend Needs backend code changes area/frontend Needs frontend code changes 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
@anna-geller anna-geller added area/backend Needs backend code changes area/frontend Needs frontend code changes and removed area/plugin Plugin-related issue or feature request labels Feb 5, 2025
@anna-geller
Copy link
Member Author

@Skraye since this is a combination of FE + BE, you are the best person to help here 🙏 no idea why this works normally but doesn't work when we output extra JSON files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend Needs backend code changes area/frontend Needs frontend code changes bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants