Skip to content

Problem with timeout being considered a String#1242

Merged
boegel merged 4 commits intoeasybuilders:developfrom
rjeschmi:download_timeout_float
Mar 26, 2015
Merged

Problem with timeout being considered a String#1242
boegel merged 4 commits intoeasybuilders:developfrom
rjeschmi:download_timeout_float

Conversation

@rjeschmi
Copy link
Copy Markdown
Contributor

I needed this quick patch to get the download-timeout to work

should it be an int? the error was download_timeout not a Float was the only reason I did it this way.

@hpcugentbot
Copy link
Copy Markdown

Automatic reply from Jenkins: Can I test this?

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 26, 2015

Jenkins: ok to test

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 26, 2015

@rjeschmi: the Python docs (https://docs.python.org/2/library/urllib2.html#urllib2.urlopen) aren't very clear of the type, but casting it to a float is the better option imho, to avoid tripping over a values like 1.5 being passed

The unit tests should be enhanced to trigger the (now fixed) problem, I'll send a PR your way to tackle that.

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1547/
Test FAILed.

Comment thread easybuild/tools/filetools.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this doesn't work, since now you'll run into a crash without specifying a timeout (since the default value is None)

fixed in rjeschmi#1

fix value type of --download-timeout in options.py + enhanced unit test
@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1548/
Test PASSed.

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 26, 2015

Going in, thanks for the fix @rjeschmi!

boegel added a commit that referenced this pull request Mar 26, 2015
Problem with timeout being considered a String
@boegel boegel merged commit 1b2c507 into easybuilders:develop Mar 26, 2015
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.

3 participants