-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Added first stress tests and improve test scripts #1018
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. This should be helpful :).
In comments just some minor cosmetic/QoL changes.
test/perf-tests.js
Outdated
return getLicodeInstance().stopLicode(); | ||
describe('Default Licode Configuration', function() { | ||
beforeEach(function() { | ||
test = Object.assign({}, BASIC_TEST); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For readability, and maybe for future things, I'd consider passing the test configuration (BASIC_TEST
) as a parameter in runTestWith
@@ -11,6 +11,7 @@ log4j.appender.A1.layout.ConversionPattern=%d - %p [%t] %c - %m%n | |||
|
|||
log4j.logger.DtlsTransport=WARN | |||
log4j.logger.LibNiceConnection=WARN | |||
log4j.logger.NicerConnection=WARN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
test/perf-tests.js
Outdated
numberOfInstances: 2, | ||
imageId: 'ami-2ff3e756', | ||
numberOfInstances: 1 + TOTAL_SPINE_SERVERS, | ||
imageId: 'ami-ebfce892', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider making the AWS ami ID a env variable just like the others
|
||
const LICODE_RUN_COMMAND = | ||
'sudo docker run --name licode --log-driver none \ | ||
--network="host" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 to network="host"
return this._execCommand('sudo yum update -y') | ||
.then(() => this._execCommand('sudo sh -c \'echo "root hard nofile 65536" >> /etc/security/limits.conf\'')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Description
This adds the first stress tests. And I continued refactoring the scripts somehow to improve test readability.
Changes in Client or Server public APIs
Not needed.
[] It includes documentation for these changes in
/doc
.