Open kinelski opened 1 year ago
@kinelski What is the current progress on this issue?
What is the likelihood that a test that encounters one of these issues would pass if retried?
I've been seeing flaky responses from the text analytics service too, and:
Here's what I did:
RetryOnErrorAttribute
(based on some code that Jesse shared with me 😊). It's basically a duplicate of the RetryAttribute
from NUnit, and the only differences are:
2.1. Instead of retrying on failed asserts, it retries on an error (such as an exception) combined with a configurable condition.
2.2. If a test continues to fail with the same pattern after a configurable number of tries, the test is marked as inconclusive.RetryOnInternalServerErrorAttribute
for the specific use case of text analytics. Notice how I check for three different known patterns as part of the retry condition.I wonder if something like this would help here?
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ctstone @vkurpad.
Description
This issue collects multiple failures we've seen in the Form Recognizer test pipeline for the last couple of months. All these issues are believed to have the same underlying cause: throttling on the service side. They have all been reported to the Form Recognizer service team and are under investigation.
Failures
All failures described below are not happening deterministically and affect multiple different tests.
Content is not accessible
BuildModel
(inDocumentModelAdministrationClient
).Content: { "error": { "code": "InvalidRequest", "message": "Invalid request.", "innererror": { "code": "ContentSourceNotAccessible", "message": "Content is not accessible: Could not retrieve build data within 60 seconds." } } }
Azure.RequestFailedException : Invalid model created with ID 94ae7f2b-d7c1-4509-9df1-00f7e802d956 Status: 200 (OK) ErrorCode: 3014
Additional Information: error-0: 3014: Generic error during training.
Content:
Azure.RequestFailedException : Could not access Azure blob storage account. Status: 400 (Bad Request) ErrorCode: 2011
Content: {"error":{"code":"2011","message":"Could not access Azure blob storage account."}}
Azure.RequestFailedException : Invalid model created with ID 5a1a952e-58a6-4d5c-80db-d6e79696f49b Status: 200 (OK) ErrorCode: 2012
Additional Information: error-0: 2012: Managed Identity credential was rejected by the storage service.
Content:
Azure.RequestFailedException : Invalid model created with ID c97a11b9-b61f-4077-8d07-4cca37e4a254 Status: 200 (OK) ErrorCode: 3013
Additional Information: error-0: 3013: Operation exceeded maximum processing time.
Content: