-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CI fail on two tests #785
Comments
I would say no, but I'll let @Pierrci confirm. |
For the second test, it seems the API is returning malformed soundilfe
|
@Narsil, on the error above, I think the code snippet above was working some time ago. The dataset is unchanged, so I'm a bit surprised about this. Was there any change in the API? |
For the second test, it seems to be flaky; re-running it a couple of times locally makes it succeed. Couldn't reproduce on the CI, where it always fails. |
In my case running the code of the second test in a clean colab always led to the malformed soundfile unfortunately. I'm surprised it passed locally for you. |
Using I also suggest using a different test call self.assertTrue("text" in result, f"We received {result} instead") Would help understand what's going on earlier. Another possibility would be to test the full output: self.assertEqual(dict, {"text":"MISTER QUILTER IS THE APOSTLE OF THE MIDDLE CLASSES AND WE ARE GLAD TO WELCOME HIS GOSPEL"}) Should by default have a better error message and we would be also testing that output does not diverge, and no extra keys are there. Note @osanseviero your malformed soundfile is because your are returning |
It's using the same security scanner endpoint/instance as in prod (meaning that if you test with a model also in prod you should see something), but the webhook isn't plugged on it (meaning any random model added in staging will not be processed) |
Also I'm not sure the scanner would manage doing its job with staging stuff as it only uses the Hub in production. |
The CI keeps failing on this test, I'm not sure why.
Example run: https://github.com/huggingface/huggingface_hub/runs/5628640361?check_suite_focus=true
Ping @LysandreJik @osanseviero
The text was updated successfully, but these errors were encountered: