-
Notifications
You must be signed in to change notification settings - Fork 76
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
green_mode: Choose job count based on environment #296
Conversation
Hey @jayvdb, TravisCI finished with status |
8d82a81
to
01cda10
Compare
Hey @jayvdb, TravisCI finished with status |
Depends on https://gitlab.com/coala/mobans/merge_requests/86 to pass the moban job |
tests/green_mode/green_modeTest.py
Outdated
@@ -1,5 +1,6 @@ | |||
import operator | |||
import os | |||
import sys |
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 file contains unused source code.
Origin: PyUnusedCodeBear, Section: all.python
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmp98vu00b2/tests/green_mode/green_modeTest.py
+++ b/tmp/tmp98vu00b2/tests/green_mode/green_modeTest.py
@@ -1,6 +1,5 @@
import operator
import os
-import sys
import unittest
import yaml
from copy import deepcopy
Travis tests have failedHey @jayvdb, 3rd Buildcoala --non-interactive
|
Hey @jayvdb, TravisCI finished with status |
Hey @jayvdb, TravisCI finished with status |
Travis tests have failedHey @jayvdb, |
Python 3.4 and 3.5 fail under our pytest configuration when the number of jobs is the cpu count - 1. On Python 3.4, an extra cpu needs to be reserved for the tests to operate smoothly on CI, and on Python 3.5 and Windows, multiprocessing needs to be disabled entirely. Expose argument jobs throughout green_mode, so that it can be also exposed to the user or test suite for more controlled use and testing. Related to coala#295
Hey @jayvdb, TravisCI finished with status |
2 similar comments
Hey @jayvdb, TravisCI finished with status |
Hey @jayvdb, TravisCI finished with status |
Hey @jayvdb, TravisCI finished with status |
Feels great to see everything green after a long time :p |
ack 4e80186 |
@gitmate-bot ff |
Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently |
Automated fastforward with GitMate.io was successful! 🎉 |
Python 3.4 and 3.5 fail under our pytest configuration
when the number of jobs is the cpu count - 1.
On Python 3.4, an extra cpu needs to be reserved for the tests
to operate smoothly on CI, and on Python 3.5 and Windows,
multiprocessing needs to be disabled entirely.
Expose argument jobs throughout green_mode, so that it
can be also exposed to the user or test suite for more
controlled use and testing.
Related to #295