Skip to content

Conversation

@teojgo
Copy link
Contributor

@teojgo teojgo commented Feb 14, 2019

This fix boils down to fixing the string conversion of SpawnedProcessTimeout:

  • Calling the communicate method returns a tuple of
    _io.TextIOWrapper objects if the subprocess has timed out.
    Therefore, using the __str__ method of the SpawnedProcessTimeout
    exception raises a TypeError.

  • The read method shoud be used to retrieve the string of the
    _io.TextIOWrapper objects.

Fixes #658

* Calling the `communicate` method returns a tuple of
  `_io.TextIOWrapper` objects if the subprocess has timed out.
  Therefore, using the `__str__` method of the `SpawnedProcessTimeout`
  exception raises a `TypeError`.

* The `read` method shoud be used to retrieve the string of the
  `_io.TextIOWrapper` objects.
@teojgo teojgo added this to the ReFrame sprint 2019w07 milestone Feb 14, 2019
@teojgo teojgo self-assigned this Feb 14, 2019
@teojgo teojgo requested a review from vkarak February 14, 2019 09:24
@pep8speaks
Copy link

pep8speaks commented Feb 14, 2019

Hello @teojgo, Thank you for updating!

Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide

Comment last updated on February 18, 2019 at 15:00 Hours UTC

@teojgo
Copy link
Contributor Author

teojgo commented Feb 15, 2019

@jenkins-cscs retry daint

@vkarak vkarak changed the title [bugfix] Fix string conversion of 'SpawnedProcessTimeout' [bugfix] Fix crash in failure report when test is killed due to time out Feb 15, 2019
@vkarak vkarak changed the title [bugfix] Fix crash in failure report when test is killed due to time out [bugfix] Fix crash in failure report when test is killed due to timeout Feb 15, 2019
@codecov-io
Copy link

codecov-io commented Feb 15, 2019

Codecov Report

Merging #680 into master will decrease coverage by 0.02%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #680      +/-   ##
==========================================
- Coverage   91.87%   91.85%   -0.03%     
==========================================
  Files          77       77              
  Lines        9444     9445       +1     
==========================================
- Hits         8677     8676       -1     
- Misses        767      769       +2
Impacted Files Coverage Δ
reframe/utility/os_ext.py 90.25% <ø> (ø) ⬆️
unittests/test_utility.py 99.03% <50%> (ø) ⬆️
reframe/core/config.py 82.75% <0%> (-1.73%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6816bd5...bf65671. Read the comment docs.

@vkarak vkarak merged commit d632088 into reframe-hpc:master Feb 18, 2019
@teojgo teojgo deleted the bugfix/process_timeout branch February 18, 2019 15:27
@teojgo teojgo added this to the ReFrame sprint 2019w07 milestone Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected failure when running test

4 participants