:question: what does everyones meltano testing sui...
# best-practices
d
what does everyones meltano testing suite look like? not necessarily tap/target testing, but testing meltano configuration holistically
e
If you were to "test meltano configuration holistically", what would be an example failure case? that your environment is missing a tap/target configuration?
d
Yeah, that could be an example failure case. I guess I’m thinking of individual tap/target testing as unit testing and testing meltano commands as integration testing. Just was curious to see if anyone is doing dry meltano elt runs or something of the sort as part of their testing suite.
g
For integration test, I guess we can use docker-compose and this: https://github.com/jpetazzo/dind (in case of you need to run it on your CI/CD pipeline). • Pros: You can set up your environments just for testing, and ditch it once the test has finished. • Cons: Probably going to take a long time. I want to see if there is any better/alternative way to do this.
d
Would be curious if the meltano team has any thoughts on this. Cc @taylor @aaronsteers @douwe_maan
Right now we’re just running some basic container structure tests as part of CI that make sure executables are where they should be and that elt dry run commands succeed. Honestly this could be enough but just curious if there are any established patterns around testing
d
There are not establish patterns, but I think we should start establishing some 🙂 Testing
meltano elt
dry run is a good start, but that really just verifies that
meltano.yml
is valid, not anything about the pipeline/tap/target itself. It could be useful to test tap/target configuration as well, if those credentials are available in the CI environment, but we don't have https://gitlab.com/meltano/meltano/-/issues/2609 yet.
In https://gitlab.com/DouweM/investing-to-lunch-money, I'm actually running
meltano elt
in CI, both in feature branches for the sake of testing, and in master for the sake of actually running the pipeline on a schedule: https://gitlab.com/DouweM/investing-to-lunch-money/-/pipeline_schedules
d
@douwe_maan yep seems like
test
is what Im looking for. Going to watch that issue 👍
d
@david_wallace Let me know if you'd be interested in contributing it 🙂
d
@douwe_maan I’d love to! little crunched for time recently (I’m a team of one) so probably wont be able to prioritize for a while, but I’ll be sure to let you know