-
Notifications
You must be signed in to change notification settings - Fork 244
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
Ft/paralleltesting #849
Ft/paralleltesting #849
Conversation
PR has been updated. Reviewers, please be cautious. |
|
tests.js
Outdated
}); | ||
} | ||
|
||
if (process.env.CIRCLE_NODE_INDEX === '0') { |
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.
is the CIRCLE_NODE_INDEX set in CircleCi?
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.
yes :)
4179f19
to
21cd52a
Compare
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.
This looks good! This looks very good! 🥇
Btw can we force a test to fail and see how it looks like in the CI?
Also, I increased the containers in public CI to run the tests, let's see how it goes.
tests.bash
Outdated
|
||
killandsleep 8000 | ||
|
||
S3BACKEND=mem npm start > $CIRCLE_ARTIFACTS/server_mem_s3curl.txt & bash wait_for_local_port.bash 8000 40 && npm run ft_s3curl |
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.
I think the same test has been run twice?
tests.bash
Outdated
|
||
killandsleep 8000 | ||
|
||
S3BACKEND=file S3VAULT=mem MPU_TESTING=yes npm start > $CIRCLE_ARTIFACTS/server_file_awssdk.txt & bash wait_for_local_port.bash 8000 40 && npm run ft_awssdk |
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.
same test ran twice?
tests.bash
Outdated
|
||
# Run S3 with file Backend + KMS Encryption ; run ft_tests | ||
|
||
S3BACKEND=file S3VAULT=mem MPU_TESTING=yes npm start > $CIRCLE_ARTIFACTS/server_file_kms_awssdk.txt & bash wait_for_local_port.bash 8000 40 |
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.
Possibly missing: '&& ENABLE_KMS_ENCRYPTION=true npm run ft_awssdk'
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.
I think there are two tests that are ran twice and one test missing, I've added comments at the lines in question!
60acd79
to
4d9194d
Compare
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
sleep 10 | ||
} | ||
|
||
if [ $CIRCLE_NODE_INDEX -eq 0 ] |
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.
Is it specified somewhere that we have 4 parallel runners? If not, may be good to enforce it so that it does not change under our feet and breaks tests (if there's a way)
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.
It's manual, its how we do it in Integration as well.
No description provided.