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

Mpi4py condition #217

Merged
merged 10 commits into from
Feb 10, 2016
Merged

Mpi4py condition #217

merged 10 commits into from
Feb 10, 2016

Conversation

stdweird
Copy link
Member

@stdweird stdweird commented Feb 3, 2016

Fixes #216 by introducing FANCYLOGGER_IGNORE_MPI4PY enviroment variable

@hpcugentbot
Copy link

One or more tests FAILed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/4/console for more details.

@hpcugentbot
Copy link

One or more tests FAILed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/5/console for more details.

@hpcugentbot
Copy link

One or more tests FAILed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/6/console for more details.

@hpcugentbot
Copy link

One or more tests FAILed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/7/console for more details.

@stdweird
Copy link
Member Author

stdweird commented Feb 3, 2016

@JensTimmerman clueless about the errors. i can reproduce the fancylogger one, but no clue where the generaloption one comes from (nor what it means; probably a reraise of a previous exception)

@@ -75,6 +75,8 @@ class FancyLoggerTest(TestCase):
fd = None

def setUp(self):
super(FancyLoggerTest, self).setUp()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why move this up? are you sure this has the correct side effects?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the sense that it doesn't matter, it has the correct side effects. i'm still ruling out any possible causes.

@JensTimmerman
Copy link
Contributor

do we still need these python 2.4 workarounds, like

    def format_help(self, formatter=None):
        """For py2.4 compatibility reasons (missing epilog). This is the py2.7 / optparse 1.5.3 code"""

@ehiggs
Copy link
Contributor

ehiggs commented Feb 4, 2016

aiui, no we don't need the 2.4 workarounds.

@hpcugentbot
Copy link

One or more tests FAILed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/8/console for more details.

@hpcugentbot
Copy link

One or more tests FAILed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/9/console for more details.

@@ -43,7 +43,7 @@
from optparse import OptionParser, OptionGroup, Option, Values, HelpFormatter
from optparse import BadOptionError, SUPPRESS_USAGE, NO_DEFAULT, OptionValueError
from optparse import SUPPRESS_HELP as nohelp # supported in optparse of python v2.4
from optparse import _ as _gettext # this is gettext normally
from optparse import gettext as _gettext # this is gettext.gettext normally
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not pull this from gettext.gettext and alias it as _ as suggested in the docs.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because it have no clue what the added value is and only confuses things

@stdweird stdweird mentioned this pull request Feb 8, 2016
@hpcugentbot
Copy link

One or more tests FAILed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/15/console for more details.

@stdweird
Copy link
Member Author

stdweird commented Feb 9, 2016

test this please

@hpcugentbot
Copy link

One or more tests FAILed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/16/console for more details.

@stdweird
Copy link
Member Author

stdweird commented Feb 9, 2016

test this please

@hpcugentbot
Copy link

All tests PASSed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/19/console for more details.

@hpcugentbot
Copy link

All tests PASSed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/20/console for more details.

if self is None:
raise Exception(msg)
else:
self.log.raiseException(msg)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this exception a consistent type with whatever's chosen above (TypeError, I guess). So except TypeError works.

…orting mpi4py altogether in case of broken mpi4py
@hpcugentbot
Copy link

All tests PASSed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/21/console for more details.

@hpcugentbot
Copy link

All tests PASSed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/22/console for more details.

JensTimmerman pushed a commit that referenced this pull request Feb 10, 2016
@JensTimmerman JensTimmerman merged commit 3e1c7a4 into hpcugent:master Feb 10, 2016
@boegel
Copy link
Member

boegel commented Feb 19, 2016

@stdweird: so, EB should define $FANCYLOGGER_IGNORE_MPI4PY (since it makes no sense to poll mpi4py in the EB logger)?

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.

5 participants