I'm running into an issue with testing dbt using <...
# plugins-general
p
I'm running into an issue with testing dbt using the new test feature. Since I have a files bundle that came installed with dbt in my meltano.yml, it looks like the test feature is having trouble finding my dbt transformer
It says
Copy code
Command 'test_publish_hub' could not be found. File bundle 'dbt' does not define any commands.
Copy code
transformers:
  - name: dbt
    pip_url: git+<https://github.com/Tomme/dbt-athena.git@c8e0458f85aaa8f9b693f99903ba95c41b90573b>
    config:
      target: athena
    commands:
      test_publish_hub: test --models marts.publish.meltano_hub.*
  files:
  - name: dbt
    pip_url: git+<https://gitlab.com/meltano/files-dbt.git@config-version-2>
When I removed my file bundle plugin it works as expected. If I change the files name to
dbt_files
so they dont match it fails saying
Copy code
File bundle 'dbt_files' is not known to Meltano
I want to keep the file bundle but have it excluded from the search for tests. This makes me think that
name
is assumed to be unique across plugins also, is that true?
cc @florian.hines
f
@pat_nadolny sort of depends in think. Generally i think its more that plugin names (or maybe names + namespaces?) probably need to be unique across plugin types. But in practice I don't know that we have any explicit checks around that.
you can specify a type or find by a namespace (https://gitlab.com/meltano/meltano/-/blob/master/src/meltano/core/project_plugins_service.py#L132) , and off hand im not sure how
test
loads plugins.
e
test
just calls
ProjectPluginsService.plugins()
so I guess it does not filter out files plugins. it is a 🐛 imo
p
hmm ok - I'll create a bug issue for it