Skip to content
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

fix: do not terminate random sessions #139

Merged
merged 1 commit into from
Jun 11, 2019

Conversation

joscha
Copy link
Contributor

@joscha joscha commented Apr 30, 2019

This fixes the seemingly random [chimp][hooks] Error: The test with session id XXX has already finished, and can't receive further commands that happen when using chimp & saucelabs with a high concurrency.

The current implementation of the saucelabs-manager retrieves 10 sessions of the current user and kills the first one that has been received, independent of whether that job is managed by the current build or not, which leads to job terminations on concurrently running tests in CI by the same user.

This fixes the seemingly random `[chimp][hooks] Error: The test with session id XXX has already finished, and can't receive further commands` that happen when using chimp & saucelabs with a high concurrency.

The current implementation of the saucelabs-manager retrieves 10 sessions of the current user and kills the first one that has been received, independent of whether that job is managed by the current build or not, which leads to job terminations on concurrently running tests in CI by the same user.
@joscha
Copy link
Contributor Author

joscha commented Apr 30, 2019

@lgandecki
Copy link
Member

I don't really have a way to verify this, as we don't use the saucelabs integration.. but since you are using it in a fork I will merge it in and release as is, if it brakes for someone else, I hope they will open a separate issue.
Thanks!

@lgandecki lgandecki merged commit 32fcab0 into TheBrainFamily:master Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants