)]}'
{"id":"openstack%2Fglance~889043","triplet_id":"openstack%2Fglance~master~I3808640c4b99f6aba4bdae6e36bbada3b3a8ff84","project":"openstack/glance","branch":"master","topic":"sqlalchemy-20","attention_set":{},"removed_from_attention_set":{"15334":{"account":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"last_update":"2023-08-08 10:41:18.000000000","reason":"Change was submitted"}},"hashtags":[],"change_id":"I3808640c4b99f6aba4bdae6e36bbada3b3a8ff84","subject":"tests: Restore - don\u0027t reset - warning filters","status":"MERGED","created":"2023-07-20 10:09:08.000000000","updated":"2023-08-08 10:42:34.000000000","submitted":"2023-08-08 10:41:18.000000000","submitter":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"total_comment_count":1,"unresolved_comment_count":0,"has_review_started":true,"submission_id":"889043-sqlalchemy-20","meta_rev_id":"07609e290882eebb5b329109eaf9a36da502f53c","_number":889043,"virtual_id_number":889043,"owner":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"value":0,"_account_id":19138,"name":"Pranali Deore","email":"pdeore@redhat.com","username":"PranaliD"},{"value":0,"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},{"value":0,"_account_id":32761,"name":"panhongyin","display_name":"panhongyin","email":"panhongyin@yovole.com","username":"panhongyin"},{"value":0,"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},{"tag":"autogenerated:zuul:gate","value":2,"date":"2023-08-08 10:41:18.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"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":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"recommended":{"_account_id":19138,"name":"Pranali Deore","email":"pdeore@redhat.com","username":"PranaliD"},"all":[{"value":1,"date":"2023-07-25 07:17:07.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":19138,"name":"Pranali Deore","email":"pdeore@redhat.com","username":"PranaliD"},{"value":2,"date":"2023-08-08 08:34:39.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},{"value":1,"date":"2023-07-28 01:44:01.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":32761,"name":"panhongyin","display_name":"panhongyin","email":"panhongyin@yovole.com","username":"panhongyin"},{"value":2,"date":"2023-07-24 16:55:40.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},{"value":0,"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"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":"","value":1,"default_value":0,"optional":true},"Workflow":{"approved":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"all":[{"value":0,"_account_id":19138,"name":"Pranali Deore","email":"pdeore@redhat.com","username":"PranaliD"},{"value":1,"date":"2023-08-08 08:34:39.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},{"value":0,"_account_id":32761,"name":"panhongyin","display_name":"panhongyin","email":"panhongyin@yovole.com","username":"panhongyin"},{"value":0,"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},{"value":0,"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true},"Review-Priority":{"all":[{"value":0,"_account_id":19138,"name":"Pranali Deore","email":"pdeore@redhat.com","username":"PranaliD"},{"value":0,"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},{"value":0,"_account_id":32761,"name":"panhongyin","display_name":"panhongyin","email":"panhongyin@yovole.com","username":"panhongyin"},{"value":0,"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},{"value":0,"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-1":"Branch Freeze"," 0":"No Priority","+1":"Important Change","+2":"Top Priority / Holds Gate"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},{"_account_id":19138,"name":"Pranali Deore","email":"pdeore@redhat.com","username":"PranaliD"},{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},{"_account_id":32761,"name":"panhongyin","display_name":"panhongyin","email":"panhongyin@yovole.com","username":"panhongyin"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2023-07-20 10:18:25.000000000","updated_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"reviewer":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"state":"CC"},{"updated":"2023-07-20 12:34:16.000000000","updated_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"reviewer":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"state":"REVIEWER"},{"updated":"2023-07-21 14:36:42.000000000","updated_by":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"reviewer":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"state":"REVIEWER"},{"updated":"2023-07-25 07:17:07.000000000","updated_by":{"_account_id":19138,"name":"Pranali Deore","email":"pdeore@redhat.com","username":"PranaliD"},"reviewer":{"_account_id":19138,"name":"Pranali Deore","email":"pdeore@redhat.com","username":"PranaliD"},"state":"REVIEWER"},{"updated":"2023-07-28 01:44:01.000000000","updated_by":{"_account_id":32761,"name":"panhongyin","display_name":"panhongyin","email":"panhongyin@yovole.com","username":"panhongyin"},"reviewer":{"_account_id":32761,"name":"panhongyin","display_name":"panhongyin","email":"panhongyin@yovole.com","username":"panhongyin"},"state":"REVIEWER"},{"updated":"2023-08-08 08:34:39.000000000","updated_by":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"reviewer":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"state":"REVIEWER"}],"messages":[{"id":"b0eb56b228701312b702dcee718b82814363a828","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"date":"2023-07-20 10:09:08.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"5c1fe6bb2c85c371eb59a5af9af7c1267043804c","tag":"autogenerated:zuul:check-arm64","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2023-07-20 10:18:25.000000000","message":"Patch Set 1:\n\nBuild succeeded (ARM64 pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/891759143a6645c49e411de0fa052541\n\n- openstack-tox-py38-arm64 https://zuul.opendev.org/t/openstack/build/e71ee0ddc9d9404b8bc74bbebe83f8b0 : SUCCESS in 6m 56s (non-voting)\n- openstack-tox-py39-arm64 https://zuul.opendev.org/t/openstack/build/b3069379ebb74ec2974bd2faa0d816a8 : SUCCESS in 7m 29s (non-voting)\n- openstack-tox-py310-arm64 https://zuul.opendev.org/t/openstack/build/a6c271fb99a34f52a7658ad56323734f : SUCCESS in 6m 12s (non-voting)","accounts_in_message":[],"_revision_number":1},{"id":"1f695241050298acf8d7d5cc851d15c7225d19f4","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2023-07-20 12:34:16.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/f6743ab9659f49099e507a9ae4beb660\n\n- openstacksdk-functional-devstack https://zuul.opendev.org/t/openstack/build/9fb97386d5cb40f38801337fa88fcdc3 : SUCCESS in 1h 08m 17s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/235de12761404cb48c4c569550396172 : SUCCESS in 4m 35s\n- openstack-tox-py38 https://zuul.opendev.org/t/openstack/build/cc75abeb14cc47559dc9b19c83afc4da : SUCCESS in 5m 36s\n- openstack-tox-py39 https://zuul.opendev.org/t/openstack/build/1fa026325b544ba29a2a59349d9a72d2 : SUCCESS in 7m 42s\n- openstack-tox-py310 https://zuul.opendev.org/t/openstack/build/fb82a3b668874680bb3f1e7048e5a506 : SUCCESS in 5m 24s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/90cdb4d57c45481da62a36bbafa25741 : SUCCESS in 6m 34s\n- openstack-tox-functional-py38-fips https://zuul.opendev.org/t/openstack/build/b3c4e1d84aa445919fd785a4b3ac707c : SUCCESS in 12m 16s\n- openstack-tox-functional-py39 https://zuul.opendev.org/t/openstack/build/a04beb5facea44f1b90eec5f36bbdd4b : SUCCESS in 10m 06s\n- openstack-tox-functional-py310 https://zuul.opendev.org/t/openstack/build/022552f71edf436cac2c2567cbf53918 : SUCCESS in 9m 38s\n- glance-tox-functional-py39-rbac-defaults https://zuul.opendev.org/t/openstack/build/136680a9926d45448ed7daee815eb735 : SUCCESS in 8m 40s (non-voting)\n- glance-secure-rbac-protection-functional https://zuul.opendev.org/t/openstack/build/b9d95a66d46c4a07973d0c3721e7bbc3 : SUCCESS in 40m 23s","accounts_in_message":[],"_revision_number":1},{"id":"b630dbaa163f08c0baeb43a6fdaf3ec239709931","author":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"date":"2023-07-21 14:36:42.000000000","message":"Patch Set 1: Code-Review+2","accounts_in_message":[],"_revision_number":1},{"id":"2bdeb0b727e25b9a10f9b9c0f9530eb1f166f277","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"date":"2023-07-24 16:55:40.000000000","message":"Uploaded patch set 2: Patch Set 1 was rebased.\n\nCopied Votes:\n* Code-Review+2 (copy condition: \"changekind:TRIVIAL_REBASE OR is:MIN\")\n\nOutdated Votes:\n* Verified+1\n","accounts_in_message":[],"_revision_number":2},{"id":"91e8e04c0632e284ee044fefb2faa15e41381446","tag":"autogenerated:zuul:check-arm64","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2023-07-24 17:05:20.000000000","message":"Patch Set 2:\n\nBuild succeeded (ARM64 pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/686b44151cf54513bfabd570c732ea7c\n\n- openstack-tox-py38-arm64 https://zuul.opendev.org/t/openstack/build/2cf4fcc613a64cb0afd2df9ea4df5f78 : SUCCESS in 8m 05s (non-voting)\n- openstack-tox-py39-arm64 https://zuul.opendev.org/t/openstack/build/499f5b75d7784995ac96df4217c764ea : SUCCESS in 8m 01s (non-voting)\n- openstack-tox-py310-arm64 https://zuul.opendev.org/t/openstack/build/9a410a5d0c074e0ba36b53a9e10de589 : SUCCESS in 6m 52s (non-voting)","accounts_in_message":[],"_revision_number":2},{"id":"869d711ad97232e252f0f94cc946508d5d7ec6fd","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2023-07-24 18:08:24.000000000","message":"Patch Set 2: Verified+1\n\nBuild succeeded (check pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/987c3def7cb5462fa3b84ab22c480d61\n\n- openstacksdk-functional-devstack https://zuul.opendev.org/t/openstack/build/1907c8a9f9af402cb8d37df4da8674fe : SUCCESS in 1h 03m 42s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/9717265df6b5463da8bb9a3b16acb5a3 : SUCCESS in 4m 44s\n- openstack-tox-py38 https://zuul.opendev.org/t/openstack/build/186a31a53c514424a4fd4d44840f5cd1 : SUCCESS in 5m 50s\n- openstack-tox-py39 https://zuul.opendev.org/t/openstack/build/7b03477b8e444feea3ab8311eb456bdb : SUCCESS in 5m 25s\n- openstack-tox-py310 https://zuul.opendev.org/t/openstack/build/0c0609c249014246a1721bc197dc83bd : SUCCESS in 7m 21s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/38c499f438cd42fc864140e28a530407 : SUCCESS in 6m 33s\n- openstack-tox-functional-py38-fips https://zuul.opendev.org/t/openstack/build/3725ca91035c4f7684789eb72f5e84b8 : SUCCESS in 14m 36s\n- openstack-tox-functional-py39 https://zuul.opendev.org/t/openstack/build/b2f2089ad9664297bd3bef101d0169ec : SUCCESS in 10m 53s\n- openstack-tox-functional-py310 https://zuul.opendev.org/t/openstack/build/0206026ce13d431f9f0b2cfa693983bf : SUCCESS in 9m 13s\n- glance-tox-functional-py39-rbac-defaults https://zuul.opendev.org/t/openstack/build/776f5460115544678bacc8009cb8e076 : SUCCESS in 11m 31s (non-voting)\n- glance-secure-rbac-protection-functional https://zuul.opendev.org/t/openstack/build/11e70741d8054dc38f62a3242737583f : SUCCESS in 26m 14s","accounts_in_message":[],"_revision_number":2},{"id":"25c384c98a713f5953b66e8cdf697edf1548a33f","author":{"_account_id":19138,"name":"Pranali Deore","email":"pdeore@redhat.com","username":"PranaliD"},"date":"2023-07-25 07:17:07.000000000","message":"Patch Set 2: Code-Review+1\n\n(1 comment)","accounts_in_message":[],"_revision_number":2},{"id":"2878f670b1c069b2fdac3c1f211ba4266700788a","author":{"_account_id":32761,"name":"panhongyin","display_name":"panhongyin","email":"panhongyin@yovole.com","username":"panhongyin"},"date":"2023-07-28 01:44:01.000000000","message":"Patch Set 2: Code-Review+1","accounts_in_message":[],"_revision_number":2},{"id":"c9a30067bbcdefe91c98f892e0ae308ee597fbd5","author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"date":"2023-08-08 08:34:39.000000000","message":"Patch Set 2: Code-Review+2 Workflow+1","accounts_in_message":[],"_revision_number":2},{"id":"260cbea3cd3c3a0c6a8e3130413c4e35bcfe632e","tag":"autogenerated:zuul:gate","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2023-08-08 08:35:25.000000000","message":"Patch Set 2: -Verified\n\nStarting gate jobs.","accounts_in_message":[],"_revision_number":2},{"id":"d82480ecf5a4d34560f5d4f2871779bd7268816e","tag":"autogenerated:zuul:gate","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2023-08-08 10:41:18.000000000","message":"Patch Set 2: Verified+2\n\nBuild succeeded (gate pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/3bd7cb95443d42be860367647e301d3e\n\n- openstacksdk-functional-devstack https://zuul.opendev.org/t/openstack/build/a1933c130f6e4356ab1e7f7d1766639b : SUCCESS in 1h 14m 52s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/d90af1d606844d6b9da208623b0d98c3 : SUCCESS in 5m 43s\n- openstack-tox-py38 https://zuul.opendev.org/t/openstack/build/335eaff6442446ad99cb24923677018f : SUCCESS in 6m 33s\n- openstack-tox-py39 https://zuul.opendev.org/t/openstack/build/0e821fb7f9d941a2939dadf71e6e0174 : SUCCESS in 5m 33s\n- openstack-tox-py310 https://zuul.opendev.org/t/openstack/build/1640541c0fe240cbb804b6e7e1d7d503 : SUCCESS in 7m 46s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/6feb9d9256d6414e99f4b381ab607357 : SUCCESS in 6m 35s\n- openstack-tox-functional-py39 https://zuul.opendev.org/t/openstack/build/f31cf6ce5a92496d82751832b6877208 : SUCCESS in 10m 51s\n- openstack-tox-functional-py310 https://zuul.opendev.org/t/openstack/build/eb26a92b1b03438e897d6f01c7dd5b48 : SUCCESS in 10m 25s\n- glance-secure-rbac-protection-functional https://zuul.opendev.org/t/openstack/build/3bc3170a115746ac86eb52b2b995fd66 : SUCCESS in 31m 21s","accounts_in_message":[],"_revision_number":2},{"id":"833a593c031e0b57bb1dfed0a3de6317416cf5cb","tag":"autogenerated:gerrit:merged","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2023-08-08 10:41:18.000000000","message":"Change has been successfully merged","accounts_in_message":[],"_revision_number":2},{"id":"07609e290882eebb5b329109eaf9a36da502f53c","tag":"autogenerated:zuul:promote","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2023-08-08 10:42:34.000000000","message":"Patch Set 2:\n\nBuild succeeded (promote pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/3849fa2fb28b48d9881aa3d79bcaf052\n\n- promote-openstack-tox-docs https://zuul.opendev.org/t/openstack/build/f7e5310acdd5409abbee340b36a0e86c : SUCCESS in 50s","accounts_in_message":[],"_revision_number":2}],"current_revision_number":2,"current_revision":"cbabd5757da249c71d2f6b549bb31e4c0b9ff522","revisions":{"bf932b2efef21a8bdc4dabe4b93c787a815d44c1":{"kind":"REWORK","_number":1,"created":"2023-07-20 10:09:08.000000000","uploader":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"ref":"refs/changes/43/889043/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/glance","ref":"refs/changes/43/889043/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/glance refs/changes/43/889043/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/glance refs/changes/43/889043/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/glance refs/changes/43/889043/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/glance refs/changes/43/889043/1"}}},"commit":{"parents":[{"commit":"5f6f67b0f473e6745e80e8301ca7711818945d69","subject":"Merge \"Correct item numbering in install docs\"","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/glance/commit/5f6f67b0f473e6745e80e8301ca7711818945d69"}]}],"author":{"name":"Stephen Finucane","email":"sfinucan@redhat.com","date":"2023-07-18 15:53:32.000000000","tz":60},"committer":{"name":"Stephen Finucane","email":"sfinucan@redhat.com","date":"2023-07-20 10:08:40.000000000","tz":60},"subject":"tests: Restore - don\u0027t reset - warning filters","message":"tests: Restore - don\u0027t reset - warning filters\n\nThere are more various warning filters pre-configured in a typical\nPython environment, including a few from third-party libraries such as\nrequests [1][2] and urllib3 [3] as well as stdlib [4]. Our fixture to\nconfigure warnings, \u0027WarningsFixture\u0027, called \u0027warnings.resetwarnings\u0027\nwhich *reset* all the warning filters [5]. This is clearly not something\nwe want to do, and resulted in tests puking warnings after the initial\ntest run.\n\nResolve this by backing up the existing warning filters before applying\nthe filter, and then *restoring* this original list of warning filters\nafter the test run.\n\nThis was previously done in Nova [6].\n\n[1] https://github.com/psf/requests/blob/v2.26.0/requests/__init__.py#L127\n[2] https://github.com/psf/requests/blob/v2.26.0/requests/__init__.py#L152\n[3] https://github.com/urllib3/urllib3/blob/1.26.7/src/urllib3/__init__.py#L68-L78\n[4] https://docs.python.org/3.8/library/warnings.html#default-warning-filter\n[5] https://docs.python.org/3.8/library/warnings.html#warnings.resetwarnings\n[6] https://review.opendev.org/c/openstack/nova/+/817641\n\nChange-Id: I3808640c4b99f6aba4bdae6e36bbada3b3a8ff84\nSigned-off-by: Stephen Finucane \u003csfinucan@redhat.com\u003e\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/glance/commit/bf932b2efef21a8bdc4dabe4b93c787a815d44c1"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/glance/commit/bf932b2efef21a8bdc4dabe4b93c787a815d44c1"}]},"branch":"refs/heads/master"},"cbabd5757da249c71d2f6b549bb31e4c0b9ff522":{"kind":"TRIVIAL_REBASE","_number":2,"created":"2023-07-24 16:55:40.000000000","uploader":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"ref":"refs/changes/43/889043/2","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/glance","ref":"refs/changes/43/889043/2","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/glance refs/changes/43/889043/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/glance refs/changes/43/889043/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/glance refs/changes/43/889043/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/glance refs/changes/43/889043/2"}}},"commit":{"parents":[{"commit":"46c30f0b6db6ed6a86b1b84e69748025ad9050c6","subject":"Imported Translations from Zanata","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/glance/commit/46c30f0b6db6ed6a86b1b84e69748025ad9050c6"}]}],"author":{"name":"Stephen Finucane","email":"sfinucan@redhat.com","date":"2023-07-18 15:53:32.000000000","tz":60},"committer":{"name":"Stephen Finucane","email":"sfinucan@redhat.com","date":"2023-07-24 15:35:36.000000000","tz":60},"subject":"tests: Restore - don\u0027t reset - warning filters","message":"tests: Restore - don\u0027t reset - warning filters\n\nThere are more various warning filters pre-configured in a typical\nPython environment, including a few from third-party libraries such as\nrequests [1][2] and urllib3 [3] as well as stdlib [4]. Our fixture to\nconfigure warnings, \u0027WarningsFixture\u0027, called \u0027warnings.resetwarnings\u0027\nwhich *reset* all the warning filters [5]. This is clearly not something\nwe want to do, and resulted in tests puking warnings after the initial\ntest run.\n\nResolve this by backing up the existing warning filters before applying\nthe filter, and then *restoring* this original list of warning filters\nafter the test run.\n\nThis was previously done in Nova [6].\n\n[1] https://github.com/psf/requests/blob/v2.26.0/requests/__init__.py#L127\n[2] https://github.com/psf/requests/blob/v2.26.0/requests/__init__.py#L152\n[3] https://github.com/urllib3/urllib3/blob/1.26.7/src/urllib3/__init__.py#L68-L78\n[4] https://docs.python.org/3.8/library/warnings.html#default-warning-filter\n[5] https://docs.python.org/3.8/library/warnings.html#warnings.resetwarnings\n[6] https://review.opendev.org/c/openstack/nova/+/817641\n\nChange-Id: I3808640c4b99f6aba4bdae6e36bbada3b3a8ff84\nSigned-off-by: Stephen Finucane \u003csfinucan@redhat.com\u003e\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/glance/commit/cbabd5757da249c71d2f6b549bb31e4c0b9ff522"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/glance/commit/cbabd5757da249c71d2f6b549bb31e4c0b9ff522"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[{"rule_name":"gerrit~DefaultSubmitRule","status":"CLOSED","labels":[{"label":"Verified","status":"MAY","applied_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}},{"label":"Code-Review","status":"MAY","applied_by":{"_account_id":19138,"name":"Pranali Deore","email":"pdeore@redhat.com","username":"PranaliD"}},{"label":"Workflow","status":"MAY","applied_by":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"}},{"label":"Review-Priority","status":"MAY"}]}],"submit_requirements":[{"name":"Verified","description":"Verified in gate by CI","status":"SATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Verified\u003dMAX AND -label:Verified\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Verified\u003dMAX"],"failing_atoms":["label:Verified\u003dMIN"],"atom_explanations":{}}},{"name":"Code-Review","description":"Code reviewed by core reviewer","status":"SATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Code-Review\u003dMAX AND -label:Code-Review\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Code-Review\u003dMAX"],"failing_atoms":["label:Code-Review\u003dMIN"],"atom_explanations":{}}},{"name":"Review-Priority","description":"Review priority","status":"SATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"-label:Review-Priority\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":[],"failing_atoms":["label:Review-Priority\u003dMIN"],"atom_explanations":{}}},{"name":"Workflow","description":"Approved for gate by core reviewer","status":"SATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Workflow\u003dMAX AND -label:Workflow\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Workflow\u003dMAX"],"failing_atoms":["label:Workflow\u003dMIN"],"atom_explanations":{}}}]}
