Some tests slow when using proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Stuart McLaren |
Bug Description
When developing on a system which uses a http proxy some of the tests run, but require a timeout of about ~60 seconds.
Typically they access 'example.com' and end up in the http store querying for the image size timeout and set it to '0':
def get_size(self, location):
"""
Takes a `glance.
where to find the image file, and returns the size
:param location `glance.
"""
try:
return self._query(
except Exception:
return 0
Setting 'example.com' to 'localhost' should give the same behaviour but without the extra ~60 seconds to timeout.
Changed in glance: | |
assignee: | nobody → Stuart McLaren (stuart-mclaren) |
Changed in glance: | |
importance: | Undecided → Medium |
milestone: | none → folsom-3 |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | folsom-3 → 2012.2 |
The worst offenders:
test_bad_ container_ format 63.60 disk_format 63.75 image_no_ location_ no_image_ as_body 64.22 with_location_ and_stdin 72.20 with_location 72.27 location_ without_ checksum 72.32 location_ with_checksum 72.60 list_update_ list 73.53 amazon_ format 761.86
test_bad_
test_add_
test_add_no_name 72.08
test_add_
test_add_
test_add_
test_add_
test_add_
test_defaulted_
Replacing example.com with localhost for these tests improves run times:
test_bad_ container_ format 0.20 disk_format 0.36 image_no_ location_ no_image_ as_body 0.35 with_location_ and_stdin 9.17 with_location 9.43 location_ without_ checksum 8.96 location_ with_checksum 8.93 list_update_ list 11.66 amazon_ format 0.81
test_bad_
test_add_
test_add_no_name 7.34
test_add_
test_add_
test_add_
test_add_
test_add_
test_defaulted_