{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":43852872,"defaultBranch":"main","name":"pulp-smash","ownerLogin":"pulp","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2015-10-08T00:35:48.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/2103606?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1644614904.814983","currentOid":""},"activityList":{"items":[{"before":"a18afe97de6a5e2eba5be737ceea068333ad3122","after":"2ded6671e0f32c51e70681467199e8a195f7f5fe","ref":"refs/heads/main","pushedAt":"2023-05-03T08:20:43.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"mdellweg","name":"Matthias Dellweg","path":"/mdellweg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/25984076?s=80&v=4"},"commit":{"message":"Make add_to_cleanup resilient to api errors\n\nIn case the delete task itself got deleted (for being part of a deleted\ndomain) we should not fail the cleanup.","shortMessageHtmlLink":"Make add_to_cleanup resilient to api errors"}},{"before":"e1ed6c0bdde08ae09a495d45366388ced355041b","after":"a18afe97de6a5e2eba5be737ceea068333ad3122","ref":"refs/heads/main","pushedAt":"2023-04-18T15:07:36.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"lubosmj","name":"Ľuboš Mjachky","path":"/lubosmj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8740962?s=80&v=4"},"commit":{"message":"pulp3: fixture_utils.py: avoid automatic encoding\n\nfixes #1309\n\nIf a test makes use of a fixture server where the test data/file being\nserved is already compressed the client will erroneously decompress the\nfile. The following describes why.\n\nOn the client side, the aiohttp Client will automatically decompress\nresponse bodies when the Content-Encoding is one of the compressed\ntypes, like gzip.\n\nOn the server side the aiohttp Server will set Content-Encoding based\non mimetype, which for gzip'd files with be 'gzip'.\n\n--web_fileresponse.py:170--\n if hdrs.CONTENT_TYPE not in self.headers:\n ct, encoding = mimetypes.guess_type(str(filepath))\n--\n\nThis will happen regardless of Accept-Encoding in the request header\n(which might be considered a bug in aiohttp). As you can see in the\nabove code snippet one way to avoid this automatic setting of\nContent-Encoding is to set the Content-Type in the header, which is\nwhat we do here.\n\nWith this change in place the Accept-Encoding appears to be respected,\npresenting the client with the expected outcomes based on the various\nRFCs. Which ultimately results in a compressed file not being deflated\nby the aiohttp client. NOTE the Content-Length, Content-Type and\nContent-Encoding in the following data grabbed from a scenario served\nby pulp-smash.\n\n--\ncurl -I -H 'Accept-Encoding: gzip' http://127.0.0.1:$PORT/debian/dists/nosuite/asgard/binary-ppc64/Packages.gz \\\n&& curl -I -H 'Accept-Encoding: identity' http://127.0.0.1:$PORT/debian/dists/nosuite/asgard/binary-ppc64/Packages.gz \\\n&& curl -I -H 'Accept-Encoding: gzip' http://127.0.0.1:$PORT/debian/dists/nosuite/asgard/binary-ppc64/Packages \\\n&& curl -I -H 'Accept-Encoding: identity' http://127.0.0.1:$PORT/debian/dists/nosuite/asgard/binary-ppc64/Packages\n\nHTTP/1.1 200 OK\ncontent-type: application/octet-stream\nEtag: \"1750f481b8f1ae00-363\"\nLast-Modified: Wed, 29 Mar 2023 17:38:19 GMT\nContent-Length: 867\nAccept-Ranges: bytes\nDate: Fri, 14 Apr 2023 16:03:49 GMT\nServer: Python/3.10 aiohttp/3.8.4\n\nHTTP/1.1 200 OK\ncontent-type: application/octet-stream\nEtag: \"1750f481b8f1ae00-363\"\nLast-Modified: Wed, 29 Mar 2023 17:38:19 GMT\nContent-Length: 867\nAccept-Ranges: bytes\nDate: Fri, 14 Apr 2023 16:03:49 GMT\nServer: Python/3.10 aiohttp/3.8.4\n\nHTTP/1.1 200 OK\ncontent-type: application/octet-stream\nContent-Encoding: gzip\nVary: Accept-Encoding\nEtag: \"1750f481b8f1ae00-363\"\nLast-Modified: Wed, 29 Mar 2023 17:38:19 GMT\nContent-Length: 867\nAccept-Ranges: bytes\nDate: Fri, 14 Apr 2023 16:03:49 GMT\nServer: Python/3.10 aiohttp/3.8.4\n\nHTTP/1.1 200 OK\ncontent-type: application/octet-stream\nEtag: \"1750f481b8f1ae00-6d9\"\nLast-Modified: Wed, 29 Mar 2023 17:38:19 GMT\nContent-Length: 1753\nAccept-Ranges: bytes\nDate: Fri, 14 Apr 2023 16:03:49 GMT\nServer: Python/3.10 aiohttp/3.8.4\n--\n\nNote that uncompressed data (Packages) will be compressed during\ntransmission when Accept-Encoding is 'gzip'. This change should not\naffect tests based off pulp-smash, but if they do break it is more\nlikely the test was working around this issue.\n\nSigned-off-by: Mark Asselstine ","shortMessageHtmlLink":"pulp3: fixture_utils.py: avoid automatic encoding"}},{"before":"a7828659cea7a4b18b64630d0f2edf7548ab3141","after":"e1ed6c0bdde08ae09a495d45366388ced355041b","ref":"refs/heads/main","pushedAt":"2023-04-13T15:04:03.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"lubosmj","name":"Ľuboš Mjachky","path":"/lubosmj","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/8740962?s=80&v=4"},"commit":{"message":"Set the tls-verify option based on the scheme for podman\n\n[noissue]\n\nThis is required for tests to run in oci_env out of the box because\nwe do not use the https scheme by default.","shortMessageHtmlLink":"Set the tls-verify option based on the scheme for podman"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADJPyW0wA","startCursor":null,"endCursor":null}},"title":"Activity · pulp/pulp-smash"}