-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed timeout issue in UT #493
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
I am not sure if I understand this issue. I was under the impression that the UTs were executed sequentially. If not, aren't there other test cases where race conditions would make this non-deterministic. |
Yes, the UTs are executed sequentially. However, in most of the places we use Further, we always create a new channel for negative test cases, but these were a few missed test cases during refactoring where we reused the existing channel instead of creating a new one. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Description
The issue was observed because of the race condition while reusing the management/inference channel in negative test cases.
The channel was closed by another test case asynchronously and actually gets closed when while other test case is in middle of executing the API call.
Refactored the code to always use a fresh connection in case of negative test cases.
Also simplified a few assert statements.
Fixes #492
Type of change
Please delete options that are not relevant.
Feature/Issue validation/testing
Successfully executed the frontend build 100 times using following code snippet on m4.large EC2 instance :
Note: The log file generated by above code exceeds the GH limit of 10 MB.
Checklist: