← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1275070] [NEW] Multiple unit tests around serialization failing

 

Public bug reported:

When standing up a completely "green field" dev system with an untouched
copy of the Glance repo on Ubuntu 12.04, we're seeing multiple failures
around the various serialization unit tests.  Things like expecting
strings but getting back Unicode, data being passed back syntactically
valid yet out-of-order, etc.

I'm attaching a script with instructions that can be used to stand up a
"pristine" environment and run the tests.

To reproduce:

* Download the attached script, and follow the instructions in the
header comments

Expected results:

* A VM is launched, the dev environment is configured, and unit tests
are run successfully with zero failures

Actual results:

* A VM is launched, the dev environment is configured, and unit tests are run with ~9 failures in various serialization tests (
glance.tests.functional.v2.test_images.TestImages.test_tag_lifecycle, glance.tests.unit.common.test_rpc.TestRPCJSONSerializer.test_to_json_with_date_format_value, glance.tests.unit.common.test_rpc.TestRPCJSONSerializer.test_to_json_with_more_deep_format, glance.tests.unit.common.test_wsgi.JSONResponseSerializerTest.test_to_json_with_more_deep_format, glance.tests.unit.v2.test_images_resource.TestImagesDeserializer.test_update_unsupported_content_type, glance.tests.unit.v2.test_images_resource.TestImagesSerializer.test_create, glance.tests.unit.v2.test_images_resource.TestImagesSerializer.test_index_carries_query_parameters, glance.tests.unit.v2.test_tasks_resource.TestTasksSerializer.test_index_carries_query_parameters, glance.tests.unit.test_store_base.TestStoreBase.test_exception_to_unicode)

tl;dr: I have no idea how your gate jobs are working at this point.  All
signs point to nothing being merge-able for you.

** Affects: glance
     Importance: Undecided
         Status: New

** Attachment added: "bootstrap-glance-test-env.sh"
   https://bugs.launchpad.net/bugs/1275070/+attachment/3964633/+files/bootstrap-glance-test-env.sh

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1275070

Title:
  Multiple unit tests around serialization failing

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  When standing up a completely "green field" dev system with an
  untouched copy of the Glance repo on Ubuntu 12.04, we're seeing
  multiple failures around the various serialization unit tests.  Things
  like expecting strings but getting back Unicode, data being passed
  back syntactically valid yet out-of-order, etc.

  I'm attaching a script with instructions that can be used to stand up
  a "pristine" environment and run the tests.

  To reproduce:

  * Download the attached script, and follow the instructions in the
  header comments

  Expected results:

  * A VM is launched, the dev environment is configured, and unit tests
  are run successfully with zero failures

  Actual results:

  * A VM is launched, the dev environment is configured, and unit tests are run with ~9 failures in various serialization tests (
  glance.tests.functional.v2.test_images.TestImages.test_tag_lifecycle, glance.tests.unit.common.test_rpc.TestRPCJSONSerializer.test_to_json_with_date_format_value, glance.tests.unit.common.test_rpc.TestRPCJSONSerializer.test_to_json_with_more_deep_format, glance.tests.unit.common.test_wsgi.JSONResponseSerializerTest.test_to_json_with_more_deep_format, glance.tests.unit.v2.test_images_resource.TestImagesDeserializer.test_update_unsupported_content_type, glance.tests.unit.v2.test_images_resource.TestImagesSerializer.test_create, glance.tests.unit.v2.test_images_resource.TestImagesSerializer.test_index_carries_query_parameters, glance.tests.unit.v2.test_tasks_resource.TestTasksSerializer.test_index_carries_query_parameters, glance.tests.unit.test_store_base.TestStoreBase.test_exception_to_unicode)

  tl;dr: I have no idea how your gate jobs are working at this point.
  All signs point to nothing being merge-able for you.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1275070/+subscriptions


Follow ups

References