)]}'
{"id":"openstack%2Fpython-swiftclient~273854","triplet_id":"openstack%2Fpython-swiftclient~master~Ic453fd990ebbf17e0eeabc39b126d2bc14234e23","project":"openstack/python-swiftclient","branch":"master","topic":"273801","hashtags":[],"change_id":"Ic453fd990ebbf17e0eeabc39b126d2bc14234e23","subject":"Tighten up to unittests to expect rounding","status":"MERGED","created":"2016-01-29 03:05:24.000000000","updated":"2016-02-01 10:09:07.000000000","submitted":"2016-02-01 10:09:07.000000000","submitter":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"dc173064bd5dc3f747410addd5e030f3670bfd1e","_number":273854,"virtual_id_number":273854,"owner":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"all":[{"value":2,"date":"2016-02-01 10:09:07.000000000","post_submit":true,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":0,"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},{"value":0,"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},{"value":0,"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","default_value":0,"optional":true},"Code-Review":{"approved":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"all":[{"value":0,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":2,"date":"2016-02-01 09:14:26.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},{"value":0,"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},{"value":2,"date":"2016-01-30 04:57:06.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","default_value":0,"optional":true},"Workflow":{"approved":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"all":[{"value":0,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":1,"date":"2016-02-01 09:14:26.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},{"value":0,"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},{"value":0,"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":3,"name":"Jenkins","username":"jenkins"},{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2016-01-30 04:57:06.000000000","updated_by":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"reviewer":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"state":"REVIEWER"},{"updated":"2016-02-01 09:14:26.000000000","updated_by":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"reviewer":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"state":"REVIEWER"},{"updated":"2016-02-01 10:09:07.000000000","updated_by":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"reviewer":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"state":"REVIEWER"}],"messages":[{"id":"749610138273f34ebaad77fb8745c8db3b2f3038","author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"date":"2016-01-29 03:05:24.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"d3e3a9f4a17b166be87c4f64fa4bffb83182fe12","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-01-29 05:03:32.000000000","message":"Patch Set 1: Verified-1\n\nBuild failed (check pipeline).  For information on how to proceed, see http://docs.openstack.org/infra/manual/developers.html#automated-testing\n\n- gate-python-swiftclient-pep8 http://logs.openstack.org/54/273854/1/check/gate-python-swiftclient-pep8/a96a0e4/ : SUCCESS in 45s\n- gate-python-swiftclient-docs http://docs-draft.openstack.org/54/273854/1/check/gate-python-swiftclient-docs/95ccb33//doc/build/html/ : SUCCESS in 1m 06s\n- gate-python-swiftclient-python27 http://logs.openstack.org/54/273854/1/check/gate-python-swiftclient-python27/4dc1f1f/ : FAILURE in 1m 06s\n- gate-python-swiftclient-python34 http://logs.openstack.org/54/273854/1/check/gate-python-swiftclient-python34/b36ac67/ : SUCCESS in 1m 55s\n- gate-python-swiftclient-pypy http://logs.openstack.org/54/273854/1/check/gate-python-swiftclient-pypy/ebd9f76/ : SUCCESS in 1m 29s (non-voting)\n- gate-tempest-dsvm-neutron-src-python-swiftclient http://logs.openstack.org/54/273854/1/check/gate-tempest-dsvm-neutron-src-python-swiftclient/4ae14e1/ : SUCCESS in 1h 00m 22s\n- gate-swift-dsvm-functional http://logs.openstack.org/54/273854/1/check/gate-swift-dsvm-functional/793c6d0/ : SUCCESS in 31m 35s\n- gate-swiftclient-dsvm-functional http://logs.openstack.org/54/273854/1/check/gate-swiftclient-dsvm-functional/3e0dea9/ : SUCCESS in 23m 07s","accounts_in_message":[],"_revision_number":1},{"id":"fb4c5a13f12cd405adec3e9baac04f5ad13065ea","author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"date":"2016-01-29 11:15:45.000000000","message":"Patch Set 1:\n\nrecheck bug 1539536","accounts_in_message":[],"_revision_number":1},{"id":"8936b52e6c0927de49eb98ed20aad7851417d205","author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"date":"2016-01-29 11:21:22.000000000","message":"Patch Set 1:\n\nbtw, there\u0027s a fix for the test bug here https://review.openstack.org/274016","accounts_in_message":[],"_revision_number":1},{"id":"320263abb555d125884c881b0482f23cc4115ae0","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-01-29 12:19:12.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\n\n- gate-python-swiftclient-pep8 http://logs.openstack.org/54/273854/1/check/gate-python-swiftclient-pep8/6c4788c/ : SUCCESS in 48s\n- gate-python-swiftclient-docs http://docs-draft.openstack.org/54/273854/1/check/gate-python-swiftclient-docs/3971e3f//doc/build/html/ : SUCCESS in 57s\n- gate-python-swiftclient-python27 http://logs.openstack.org/54/273854/1/check/gate-python-swiftclient-python27/199c6e7/ : SUCCESS in 59s\n- gate-python-swiftclient-python34 http://logs.openstack.org/54/273854/1/check/gate-python-swiftclient-python34/8186a0f/ : SUCCESS in 1m 49s\n- gate-python-swiftclient-pypy http://logs.openstack.org/54/273854/1/check/gate-python-swiftclient-pypy/e21cb1b/ : SUCCESS in 1m 23s (non-voting)\n- gate-tempest-dsvm-neutron-src-python-swiftclient http://logs.openstack.org/54/273854/1/check/gate-tempest-dsvm-neutron-src-python-swiftclient/43f3db9/ : SUCCESS in 1h 01m 54s\n- gate-swift-dsvm-functional http://logs.openstack.org/54/273854/1/check/gate-swift-dsvm-functional/8938a36/ : SUCCESS in 30m 40s\n- gate-swiftclient-dsvm-functional http://logs.openstack.org/54/273854/1/check/gate-swiftclient-dsvm-functional/6c9b9fc/ : SUCCESS in 19m 46s","accounts_in_message":[],"_revision_number":1},{"id":"381a9c43c92f71620b93512c77a6435c43913df0","author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"date":"2016-01-29 12:44:32.000000000","message":"Patch Set 1:\n\nThanks! I\u0027m totally down with* sorting out this almostEquals mess, but...\n\nWhy do we even have an almostEqual here? These are the cases when there is a path so the header takes the gmtime of the file. There\u0027s no explicit rounding other than in the string formatting.\n\nIt\u0027s only needed because the method under test string formats the gmtime as a float with precision 6, then the test parses the header value to a float and then asserts that it is almost equal to another float which has greater precision.\n\nWhy not just make the expected value be what the header value should be? And then they\u0027d be *exactly* equal:\n\nhttps://gist.github.com/alistairncoles/dfe1b08025e6785e740d\n\n*did I get that right? :)","accounts_in_message":[],"_revision_number":1},{"id":"9ac2161c81b5bcf3b9e757e7dff7ad25284489b1","author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"date":"2016-01-29 19:07:23.000000000","message":"Patch Set 1:\n\nyou know I actually like https://gist.github.com/alistairncoles/dfe1b08025e6785e740d better, but in channel @tim said he thought it that was rather gross (I\u0027m not sure why and I may have misunderstood).\n\nEither way is fine with me tho, I think they\u0027re both saying about the same thing - but I think someone else coming across the AlmostEquals was confused about what was really being tested and that\u0027s how we got the much too wide 0.5 and the race/bug with this guys parent [1].\n\n1. https://review.openstack.org/#/c/273801/","accounts_in_message":[],"_revision_number":1},{"id":"b793da7be1952a63f70e1e8f5ec4a21ff2d37ef1","author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"date":"2016-01-30 00:09:13.000000000","message":"Patch Set 1: Code-Review+2\n\nEither one\u0027s good by me; I was just confused and thought we round()ed the file mtime, too.\n\nAlthough, this makes me wonder how well the --changed option works on platforms that have a coarser resolution for mtime [1] than was recorded in Swift. Also, we probably shouldn\u0027t trust the value coming *out* of Swift nearly as much as we currently do; we need some try...except ValueError in service.py [2].\n\n[1] See the note at https://docs.python.org/2/library/os.html#os.stat\n\n[2] https://github.com/openstack/python-swiftclient/blob/2.7.0/swiftclient/service.py#L1162","accounts_in_message":[],"_revision_number":1},{"id":"3153863926ffe475ed77eb477c9dd0158abb814d","author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"date":"2016-01-30 03:28:28.000000000","message":"Uploaded patch set 2.","accounts_in_message":[],"_revision_number":2},{"id":"6ca3c819cf89ad9c1f10fcc1042fab2a3b61d826","author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"date":"2016-01-30 03:32:35.000000000","message":"Patch Set 2:\n\n@tim - if you really don\u0027t care I much prefer the explicit Equal - if the implementation ever changed to make it be off by only 2e-6 - like I still think the unittests should pop?  this way we know exactly how many digits were using and what they should be.\n\nI thought --changed worked off of md5sum - it uses the user-metadata!?  Does the number of digits the swift service uses in x-timestamp resolution matter for the user-metadata comparison?  Maybe if you were syncing files between two different hosts on different platforms - but I\u0027m not sure what\u0027s expected there honestly...","accounts_in_message":[],"_revision_number":2},{"id":"e47061ebdc7684dab0f2466ddc9a976d40090df5","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-01-30 04:32:45.000000000","message":"Patch Set 2: Verified+1\n\nBuild succeeded (check pipeline).\n\n- gate-python-swiftclient-pep8 http://logs.openstack.org/54/273854/2/check/gate-python-swiftclient-pep8/7d549e5/ : SUCCESS in 48s\n- gate-python-swiftclient-docs http://docs-draft.openstack.org/54/273854/2/check/gate-python-swiftclient-docs/7244332//doc/build/html/ : SUCCESS in 42s\n- gate-python-swiftclient-python27 http://logs.openstack.org/54/273854/2/check/gate-python-swiftclient-python27/e751d99/ : SUCCESS in 1m 05s\n- gate-python-swiftclient-python34 http://logs.openstack.org/54/273854/2/check/gate-python-swiftclient-python34/9a1adf0/ : SUCCESS in 2m 46s\n- gate-python-swiftclient-pypy http://logs.openstack.org/54/273854/2/check/gate-python-swiftclient-pypy/e000ce9/ : SUCCESS in 1m 24s (non-voting)\n- gate-tempest-dsvm-neutron-src-python-swiftclient http://logs.openstack.org/54/273854/2/check/gate-tempest-dsvm-neutron-src-python-swiftclient/7aa24ed/ : SUCCESS in 1h 03m 10s\n- gate-swift-dsvm-functional http://logs.openstack.org/54/273854/2/check/gate-swift-dsvm-functional/2160ede/ : SUCCESS in 27m 19s\n- gate-swiftclient-dsvm-functional http://logs.openstack.org/54/273854/2/check/gate-swiftclient-dsvm-functional/3572846/ : SUCCESS in 23m 16s","accounts_in_message":[],"_revision_number":2},{"id":"30f366b53b92a5260cf96b5b9150060fa1cc5838","author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"date":"2016-01-30 04:57:06.000000000","message":"Patch Set 2: Code-Review+2\n\nWho said anything about X-Timestamp!?\n\nAnyway, yeah, syncing things across different platforms supporting different mtime resolutions would be ugly no matter what. Just a thought I had.","accounts_in_message":[],"_revision_number":2},{"id":"21c5d2317abac5e4e56cdbb9e607271659923a6b","author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"date":"2016-02-01 09:14:26.000000000","message":"Patch Set 2: Code-Review+2 Workflow+1\n\nI\u0027m going to merge this on the basis that between Clay, Tim, Jenkins and myself there is sufficient positivity.","accounts_in_message":[],"_revision_number":2},{"id":"a999845e9c1a55c7cb39bdb7c150298ab8618849","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-02-01 09:14:31.000000000","message":"Patch Set 2: -Verified\n\nStarting gate jobs.\nhttp://status.openstack.org/zuul/","accounts_in_message":[],"_revision_number":2},{"id":"5917bd0f670365aac8450fe3a4ede6d9a46f5e39","date":"2016-02-01 10:09:07.000000000","message":"Change has been successfully merged into the git repository by Jenkins","accounts_in_message":[],"_revision_number":2},{"id":"4f95a28b491baf1dc75ae6d3ae525485c7009c91","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-02-01 10:09:07.000000000","message":"Patch Set 2: Verified+2\n\nBuild succeeded (gate pipeline).\n\n- gate-python-swiftclient-docs http://docs-draft.openstack.org/54/273854/2/gate/gate-python-swiftclient-docs/6f5b049//doc/build/html/ : SUCCESS in 54s\n- gate-python-swiftclient-pep8 http://logs.openstack.org/54/273854/2/gate/gate-python-swiftclient-pep8/ec6bb6d/ : SUCCESS in 49s\n- gate-python-swiftclient-python27 http://logs.openstack.org/54/273854/2/gate/gate-python-swiftclient-python27/751da95/ : SUCCESS in 1m 04s\n- gate-python-swiftclient-python34 http://logs.openstack.org/54/273854/2/gate/gate-python-swiftclient-python34/9d872ce/ : SUCCESS in 1m 53s\n- gate-tempest-dsvm-neutron-src-python-swiftclient http://logs.openstack.org/54/273854/2/gate/gate-tempest-dsvm-neutron-src-python-swiftclient/9b8bbaf/ : SUCCESS in 52m 34s\n- gate-swift-dsvm-functional http://logs.openstack.org/54/273854/2/gate/gate-swift-dsvm-functional/311e1e5/ : SUCCESS in 27m 18s\n- gate-swiftclient-dsvm-functional http://logs.openstack.org/54/273854/2/gate/gate-swiftclient-dsvm-functional/602169f/ : SUCCESS in 21m 32s","accounts_in_message":[],"_revision_number":2}],"current_revision_number":2,"current_revision":"34ae109173f0b5310d6f195056485623a0fd5fff","revisions":{"27a51bb99a890f54dd23d3b4a5fbd0666034ea73":{"kind":"REWORK","_number":1,"created":"2016-01-29 03:05:24.000000000","uploader":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"ref":"refs/changes/54/273854/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-swiftclient","ref":"refs/changes/54/273854/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-swiftclient refs/changes/54/273854/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-swiftclient refs/changes/54/273854/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-swiftclient refs/changes/54/273854/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-swiftclient refs/changes/54/273854/1"}}},"commit":{"parents":[{"commit":"0fe02eb1c006d7d70f638f8012aa370fdf4b6096","subject":"mock time in unit test","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-swiftclient/commit/0fe02eb1c006d7d70f638f8012aa370fdf4b6096"}]}],"author":{"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","date":"2016-01-29 03:05:13.000000000","tz":-480},"committer":{"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","date":"2016-01-29 03:05:13.000000000","tz":-480},"subject":"Tighten up to just rounding error","message":"Tighten up to just rounding error\n\nChange-Id: Ic453fd990ebbf17e0eeabc39b126d2bc14234e23\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-swiftclient/commit/27a51bb99a890f54dd23d3b4a5fbd0666034ea73"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-swiftclient/commit/27a51bb99a890f54dd23d3b4a5fbd0666034ea73"}]},"branch":"refs/heads/master"},"34ae109173f0b5310d6f195056485623a0fd5fff":{"kind":"REWORK","_number":2,"created":"2016-01-30 03:28:28.000000000","uploader":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"ref":"refs/changes/54/273854/2","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-swiftclient","ref":"refs/changes/54/273854/2","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-swiftclient refs/changes/54/273854/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-swiftclient refs/changes/54/273854/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-swiftclient refs/changes/54/273854/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-swiftclient refs/changes/54/273854/2"}}},"commit":{"parents":[{"commit":"0fe02eb1c006d7d70f638f8012aa370fdf4b6096","subject":"mock time in unit test","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-swiftclient/commit/0fe02eb1c006d7d70f638f8012aa370fdf4b6096"}]}],"author":{"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","date":"2016-01-29 03:05:13.000000000","tz":-480},"committer":{"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","date":"2016-01-30 03:27:11.000000000","tz":-480},"subject":"Tighten up to unittests to expect rounding","message":"Tighten up to unittests to expect rounding\n\nChange-Id: Ic453fd990ebbf17e0eeabc39b126d2bc14234e23\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-swiftclient/commit/34ae109173f0b5310d6f195056485623a0fd5fff"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-swiftclient/commit/34ae109173f0b5310d6f195056485623a0fd5fff"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
