Hi everyone Is there any feature that help to se...
# questions
s
Hi everyone Is there any feature that help to send notifications when a test fails?
d
Do you mean a unit test? If so, you can use your CI (continuous integration) of choice, such as GitHub Actions.
s
My case is the following. The data is uploaded weekly into a bucket. The problem is that the data is not formatted properly. Sometimes, it follows the standards. Other times, I have mistakes because it changes the type of variables. I want the before running the pipelines, I want to run a testing pipeline to check the data format. If this is well, it will run the rest of the pipeline. Otherwise, this has to send a notification to the user that data is not formatted properly. Is there any way to do this?
y
I think what you are looking for is a hook (likely
before_pipeline_run
hook): https://docs.kedro.org/en/stable/hooks/introduction.html that you can combine with a library like
knocknock
https://github.com/huggingface/knockknock to get a notification
👍 1
s
@Yolan Honoré-Rougé sounds what I want. But, at this point I’m wondering if I can use the tests inside the hooks?
y
It's not really a "test" in unit testing sense, but you can raise an error if an "assert" is false, and the pipeline will not run