==> Building on drowzee ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/python-aws-xray-sdk ./ PKGBUILD 2,348 100% 0.00kB/s 0:00:00 2,348 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) python-aws-xray-sdk-2.12.0-3.log 253 100% 247.07kB/s 0:00:00 253 100% 247.07kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 1,497 bytes received 108 bytes 642.00 bytes/sec total size is 2,542 speedup is 1.58 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root1 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [root1]...done ==> Making package: python-aws-xray-sdk 2.12.0-3 (Thu Jul 13 13:10:23 2023) ==> Retrieving sources...  -> Cloning aws-xray-sdk-python git repo... Cloning into bare repository '/home/felix/packages/python-aws-xray-sdk/aws-xray-sdk-python'... remote: Enumerating objects: 4829, done. remote: Counting objects: 0% (1/1260) remote: Counting objects: 1% (13/1260) remote: Counting objects: 2% (26/1260) remote: Counting objects: 3% (38/1260) remote: Counting objects: 4% (51/1260) remote: Counting objects: 5% (63/1260) remote: Counting objects: 6% (76/1260) remote: Counting objects: 7% (89/1260) remote: Counting objects: 8% (101/1260) remote: Counting objects: 9% (114/1260) remote: Counting objects: 10% (126/1260) remote: Counting objects: 11% (139/1260) remote: Counting objects: 12% (152/1260) remote: Counting objects: 13% (164/1260) remote: Counting objects: 14% (177/1260) remote: Counting objects: 15% (189/1260) remote: Counting objects: 16% (202/1260) remote: Counting objects: 17% (215/1260) remote: Counting objects: 18% (227/1260) remote: Counting objects: 19% (240/1260) remote: Counting objects: 20% (252/1260) remote: Counting objects: 21% (265/1260) remote: Counting objects: 22% (278/1260) remote: Counting objects: 23% (290/1260) remote: Counting objects: 24% (303/1260) remote: Counting objects: 25% (315/1260) remote: Counting objects: 26% (328/1260) remote: Counting objects: 27% (341/1260) remote: Counting objects: 28% (353/1260) remote: Counting objects: 29% (366/1260) remote: Counting objects: 30% (378/1260) remote: Counting objects: 31% (391/1260) remote: Counting objects: 32% (404/1260) remote: Counting objects: 33% (416/1260) remote: Counting objects: 34% (429/1260) remote: Counting objects: 35% (441/1260) remote: Counting objects: 36% (454/1260) remote: Counting objects: 37% (467/1260) remote: Counting objects: 38% (479/1260) remote: Counting objects: 39% (492/1260) remote: Counting objects: 40% (504/1260) remote: Counting objects: 41% (517/1260) remote: Counting objects: 42% (530/1260) remote: Counting objects: 43% (542/1260) remote: Counting objects: 44% (555/1260) remote: Counting objects: 45% (567/1260) remote: Counting objects: 46% (580/1260) remote: Counting objects: 47% (593/1260) remote: Counting objects: 48% (605/1260) remote: Counting objects: 49% (618/1260) remote: Counting objects: 50% (630/1260) remote: Counting objects: 51% (643/1260) remote: Counting objects: 52% (656/1260) remote: Counting objects: 53% (668/1260) remote: Counting objects: 54% (681/1260) remote: Counting objects: 55% (693/1260) remote: Counting objects: 56% (706/1260) remote: Counting objects: 57% (719/1260) remote: Counting objects: 58% (731/1260) remote: Counting objects: 59% (744/1260) remote: Counting objects: 60% (756/1260) remote: Counting objects: 61% (769/1260) remote: Counting objects: 62% (782/1260) remote: Counting objects: 63% (794/1260) remote: Counting objects: 64% (807/1260) remote: Counting objects: 65% (819/1260) remote: Counting objects: 66% (832/1260) remote: Counting objects: 67% (845/1260) remote: Counting objects: 68% (857/1260) remote: Counting objects: 69% (870/1260) remote: Counting objects: 70% (882/1260) remote: Counting objects: 71% (895/1260) remote: Counting objects: 72% (908/1260) remote: Counting objects: 73% (920/1260) remote: Counting objects: 74% (933/1260) remote: Counting objects: 75% (945/1260) remote: Counting objects: 76% (958/1260) remote: Counting objects: 77% (971/1260) remote: Counting objects: 78% (983/1260) remote: Counting objects: 79% (996/1260) remote: Counting objects: 80% (1008/1260) remote: Counting objects: 81% (1021/1260) remote: Counting objects: 82% (1034/1260) remote: Counting objects: 83% (1046/1260) remote: Counting objects: 84% (1059/1260) remote: Counting objects: 85% (1071/1260) remote: Counting objects: 86% (1084/1260) remote: Counting objects: 87% (1097/1260) remote: Counting objects: 88% (1109/1260) remote: Counting objects: 89% (1122/1260) remote: Counting objects: 90% (1134/1260) remote: Counting objects: 91% (1147/1260) remote: Counting objects: 92% (1160/1260) remote: Counting objects: 93% (1172/1260) remote: Counting objects: 94% (1185/1260) remote: Counting objects: 95% (1197/1260) remote: Counting objects: 96% (1210/1260) remote: Counting objects: 97% (1223/1260) remote: Counting objects: 98% (1235/1260) remote: Counting objects: 99% (1248/1260) remote: Counting objects: 100% (1260/1260) remote: Counting objects: 100% (1260/1260), done. remote: Compressing objects: 0% (1/543) remote: Compressing objects: 1% (6/543) remote: Compressing objects: 2% (11/543) remote: Compressing objects: 3% (17/543) remote: Compressing objects: 4% (22/543) remote: Compressing objects: 5% (28/543) remote: Compressing objects: 6% (33/543) remote: Compressing objects: 7% (39/543) remote: Compressing objects: 8% (44/543) remote: Compressing objects: 9% (49/543) remote: Compressing objects: 10% (55/543) remote: Compressing objects: 11% (60/543) remote: Compressing objects: 12% (66/543) remote: Compressing objects: 13% (71/543) remote: Compressing objects: 14% (77/543) remote: Compressing objects: 15% (82/543) remote: Compressing objects: 16% (87/543) remote: Compressing objects: 17% (93/543) remote: Compressing objects: 18% (98/543) remote: Compressing objects: 19% (104/543) remote: Compressing objects: 20% (109/543) remote: Compressing objects: 21% (115/543) remote: Compressing objects: 22% (120/543) remote: Compressing objects: 23% (125/543) remote: Compressing objects: 24% (131/543) remote: Compressing objects: 25% (136/543) remote: Compressing objects: 26% (142/543) remote: Compressing objects: 27% (147/543) remote: Compressing objects: 28% (153/543) remote: Compressing objects: 29% (158/543) remote: Compressing objects: 30% (163/543) remote: Compressing objects: 31% (169/543) remote: Compressing objects: 32% (174/543) remote: Compressing objects: 33% (180/543) remote: Compressing objects: 34% (185/543) remote: Compressing objects: 35% (191/543) remote: Compressing objects: 36% (196/543) remote: Compressing objects: 37% (201/543) remote: Compressing objects: 38% (207/543) remote: Compressing objects: 39% (212/543) remote: Compressing objects: 40% (218/543) remote: Compressing objects: 41% (223/543) remote: Compressing objects: 42% (229/543) remote: Compressing objects: 43% (234/543) remote: Compressing objects: 44% (239/543) remote: Compressing objects: 45% (245/543) remote: Compressing objects: 46% (250/543) remote: Compressing objects: 47% (256/543) remote: Compressing objects: 48% (261/543) remote: Compressing objects: 49% (267/543) remote: Compressing objects: 50% (272/543) remote: Compressing objects: 51% (277/543) remote: Compressing objects: 52% (283/543) remote: Compressing objects: 53% (288/543) remote: Compressing objects: 54% (294/543) remote: Compressing objects: 55% (299/543) remote: Compressing objects: 56% (305/543) remote: Compressing objects: 57% (310/543) remote: Compressing objects: 58% (315/543) remote: Compressing objects: 59% (321/543) remote: Compressing objects: 60% (326/543) remote: Compressing objects: 61% (332/543) remote: Compressing objects: 62% (337/543) remote: Compressing objects: 63% (343/543) remote: Compressing objects: 64% (348/543) remote: Compressing objects: 65% (353/543) remote: Compressing objects: 66% (359/543) remote: Compressing objects: 67% (364/543) remote: Compressing objects: 68% (370/543) remote: Compressing objects: 69% (375/543) remote: Compressing objects: 70% (381/543) remote: Compressing objects: 71% (386/543) remote: Compressing objects: 72% (391/543) remote: Compressing objects: 73% (397/543) remote: Compressing objects: 74% (402/543) remote: Compressing objects: 75% (408/543) remote: Compressing objects: 76% (413/543) remote: Compressing objects: 77% (419/543) remote: Compressing objects: 78% (424/543) remote: Compressing objects: 79% (429/543) remote: Compressing objects: 80% (435/543) remote: Compressing objects: 81% (440/543) remote: Compressing objects: 82% (446/543) remote: Compressing objects: 83% (451/543) remote: Compressing objects: 84% (457/543) remote: Compressing objects: 85% (462/543) remote: Compressing objects: 86% (467/543) remote: Compressing objects: 87% (473/543) remote: Compressing objects: 88% (478/543) remote: Compressing objects: 89% (484/543) remote: Compressing objects: 90% (489/543) remote: Compressing objects: 91% (495/543) remote: Compressing objects: 92% (500/543) remote: Compressing objects: 93% (505/543) remote: Compressing objects: 94% (511/543) remote: Compressing objects: 95% (516/543) remote: Compressing objects: 96% (522/543) remote: Compressing objects: 97% (527/543) remote: Compressing objects: 98% (533/543) remote: Compressing objects: 99% (538/543) remote: Compressing objects: 100% (543/543) remote: Compressing objects: 100% (543/543), done. Receiving objects: 0% (1/4829) Receiving objects: 1% (49/4829) Receiving objects: 2% (97/4829) Receiving objects: 3% (145/4829) Receiving objects: 4% (194/4829) Receiving objects: 5% (242/4829) Receiving objects: 6% (290/4829) Receiving objects: 7% (339/4829) Receiving objects: 8% (387/4829) Receiving objects: 9% (435/4829) Receiving objects: 10% (483/4829) Receiving objects: 11% (532/4829) Receiving objects: 12% (580/4829) Receiving objects: 13% (628/4829) Receiving objects: 14% (677/4829) Receiving objects: 15% (725/4829) Receiving objects: 16% (773/4829) Receiving objects: 17% (821/4829) Receiving objects: 18% (870/4829) Receiving objects: 19% (918/4829) Receiving objects: 20% (966/4829) Receiving objects: 21% (1015/4829) Receiving objects: 22% (1063/4829) Receiving objects: 23% (1111/4829) Receiving objects: 24% (1159/4829) Receiving objects: 25% (1208/4829) Receiving objects: 26% (1256/4829) Receiving objects: 27% (1304/4829) Receiving objects: 28% (1353/4829) Receiving objects: 29% (1401/4829) Receiving objects: 30% (1449/4829) Receiving objects: 31% (1497/4829) Receiving objects: 32% (1546/4829) Receiving objects: 33% (1594/4829) Receiving objects: 34% (1642/4829) Receiving objects: 35% (1691/4829) Receiving objects: 36% (1739/4829) Receiving objects: 37% (1787/4829) Receiving objects: 38% (1836/4829) Receiving objects: 39% (1884/4829) Receiving objects: 40% (1932/4829) Receiving objects: 41% (1980/4829) Receiving objects: 42% (2029/4829) Receiving objects: 43% (2077/4829) Receiving objects: 44% (2125/4829) Receiving objects: 45% (2174/4829) Receiving objects: 46% (2222/4829) Receiving objects: 47% (2270/4829) Receiving objects: 48% (2318/4829) Receiving objects: 49% (2367/4829) Receiving objects: 50% (2415/4829) Receiving objects: 51% (2463/4829) Receiving objects: 52% (2512/4829) Receiving objects: 53% (2560/4829) Receiving objects: 54% (2608/4829) Receiving objects: 55% (2656/4829) Receiving objects: 56% (2705/4829) Receiving objects: 57% (2753/4829) Receiving objects: 58% (2801/4829) Receiving objects: 59% (2850/4829) Receiving objects: 60% (2898/4829) Receiving objects: 61% (2946/4829) Receiving objects: 62% (2994/4829) Receiving objects: 63% (3043/4829) Receiving objects: 64% (3091/4829) Receiving objects: 65% (3139/4829) Receiving objects: 66% (3188/4829) Receiving objects: 67% (3236/4829) Receiving objects: 68% (3284/4829) Receiving objects: 69% (3333/4829) Receiving objects: 70% (3381/4829) Receiving objects: 71% (3429/4829) Receiving objects: 72% (3477/4829) Receiving objects: 73% (3526/4829) Receiving objects: 74% (3574/4829) Receiving objects: 75% (3622/4829) Receiving objects: 76% (3671/4829) Receiving objects: 77% (3719/4829) Receiving objects: 78% (3767/4829) Receiving objects: 79% (3815/4829) Receiving objects: 80% (3864/4829) Receiving objects: 81% (3912/4829) Receiving objects: 82% (3960/4829) Receiving objects: 83% (4009/4829) Receiving objects: 84% (4057/4829) Receiving objects: 85% (4105/4829) Receiving objects: 86% (4153/4829) Receiving objects: 87% (4202/4829) Receiving objects: 88% (4250/4829) Receiving objects: 89% (4298/4829) Receiving objects: 90% (4347/4829) Receiving objects: 91% (4395/4829) Receiving objects: 92% (4443/4829) Receiving objects: 93% (4491/4829) Receiving objects: 94% (4540/4829) Receiving objects: 95% (4588/4829) Receiving objects: 96% (4636/4829) Receiving objects: 97% (4685/4829) remote: Total 4829 (delta 760), reused 1091 (delta 708), pack-reused 3569 Receiving objects: 98% (4733/4829) Receiving objects: 99% (4781/4829) Receiving objects: 100% (4829/4829) Receiving objects: 100% (4829/4829), 1.16 MiB | 3.28 MiB/s, done. Resolving deltas: 0% (0/2978) Resolving deltas: 1% (30/2978) Resolving deltas: 2% (60/2978) Resolving deltas: 3% (90/2978) Resolving deltas: 4% (120/2978) Resolving deltas: 5% (149/2978) Resolving deltas: 6% (179/2978) Resolving deltas: 7% (209/2978) Resolving deltas: 8% (239/2978) Resolving deltas: 9% (271/2978) Resolving deltas: 10% (300/2978) Resolving deltas: 11% (328/2978) Resolving deltas: 12% (358/2978) Resolving deltas: 13% (388/2978) Resolving deltas: 14% (418/2978) Resolving deltas: 15% (448/2978) Resolving deltas: 16% (478/2978) Resolving deltas: 17% (507/2978) Resolving deltas: 18% (537/2978) Resolving deltas: 19% (566/2978) Resolving deltas: 20% (596/2978) Resolving deltas: 21% (626/2978) Resolving deltas: 22% (656/2978) Resolving deltas: 23% (685/2978) Resolving deltas: 24% (715/2978) Resolving deltas: 25% (745/2978) Resolving deltas: 26% (775/2978) Resolving deltas: 27% (806/2978) Resolving deltas: 28% (834/2978) Resolving deltas: 29% (864/2978) Resolving deltas: 30% (894/2978) Resolving deltas: 31% (924/2978) Resolving deltas: 32% (953/2978) Resolving deltas: 33% (983/2978) Resolving deltas: 34% (1013/2978) Resolving deltas: 35% (1043/2978) Resolving deltas: 36% (1073/2978) Resolving deltas: 37% (1102/2978) Resolving deltas: 38% (1132/2978) Resolving deltas: 39% (1162/2978) Resolving deltas: 40% (1192/2978) Resolving deltas: 41% (1221/2978) Resolving deltas: 42% (1251/2978) Resolving deltas: 43% (1281/2978) Resolving deltas: 44% (1311/2978) Resolving deltas: 45% (1342/2978) Resolving deltas: 46% (1370/2978) Resolving deltas: 47% (1401/2978) Resolving deltas: 48% (1430/2978) Resolving deltas: 49% (1460/2978) Resolving deltas: 50% (1489/2978) Resolving deltas: 51% (1519/2978) Resolving deltas: 52% (1549/2978) Resolving deltas: 53% (1579/2978) Resolving deltas: 54% (1609/2978) Resolving deltas: 55% (1639/2978) Resolving deltas: 56% (1668/2978) Resolving deltas: 57% (1698/2978) Resolving deltas: 58% (1728/2978) Resolving deltas: 59% (1758/2978) Resolving deltas: 60% (1787/2978) Resolving deltas: 61% (1817/2978) Resolving deltas: 62% (1847/2978) Resolving deltas: 63% (1877/2978) Resolving deltas: 64% (1906/2978) Resolving deltas: 65% (1936/2978) Resolving deltas: 66% (1966/2978) Resolving deltas: 67% (1996/2978) Resolving deltas: 68% (2026/2978) Resolving deltas: 69% (2055/2978) Resolving deltas: 70% (2086/2978) Resolving deltas: 71% (2115/2978) Resolving deltas: 72% (2146/2978) Resolving deltas: 73% (2174/2978) Resolving deltas: 74% (2204/2978) Resolving deltas: 75% (2234/2978) Resolving deltas: 76% (2264/2978) Resolving deltas: 77% (2294/2978) Resolving deltas: 78% (2323/2978) Resolving deltas: 79% (2353/2978) Resolving deltas: 80% (2383/2978) Resolving deltas: 81% (2413/2978) Resolving deltas: 82% (2442/2978) Resolving deltas: 83% (2472/2978) Resolving deltas: 84% (2502/2978) Resolving deltas: 85% (2532/2978) Resolving deltas: 86% (2562/2978) Resolving deltas: 87% (2591/2978) Resolving deltas: 88% (2622/2978) Resolving deltas: 89% (2651/2978) Resolving deltas: 90% (2681/2978) Resolving deltas: 91% (2710/2978) Resolving deltas: 92% (2740/2978) Resolving deltas: 93% (2772/2978) Resolving deltas: 94% (2800/2978) Resolving deltas: 95% (2830/2978) Resolving deltas: 96% (2859/2978) Resolving deltas: 97% (2889/2978) Resolving deltas: 98% (2919/2978) Resolving deltas: 99% (2949/2978) Resolving deltas: 100% (2978/2978) Resolving deltas: 100% (2978/2978), done. ==> Validating source files with sha256sums... aws-xray-sdk-python ... Skipped ==> Making package: python-aws-xray-sdk 2.12.0-3 (Thu Jul 13 13:10:39 2023) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (9) New Version Net Change Download Size core/libnsl 2.0.0-3 0.06 MiB extra/python-certifi 2023.05.07-1 0.02 MiB extra/python-dateutil 2.8.2-5 1.05 MiB extra/python-jmespath 1.0.1-2 0.23 MiB 0.04 MiB extra/python-six 1.16.0-8 0.12 MiB extra/python-urllib3 1.26.15-1 1.30 MiB core/python 3.11.3-2 107.17 MiB extra/python-botocore 1.29.162-1 84.76 MiB 5.75 MiB extra/python-wrapt 1.14.1-2 0.24 MiB Total Download Size: 5.79 MiB Total Installed Size: 194.96 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-botocore-1.29.162-1-any downloading... python-jmespath-1.0.1-2-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libnsl... installing python... Optional dependencies for python python-setuptools python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-certifi... installing python-six... installing python-dateutil... installing python-jmespath... installing python-urllib3... Optional dependencies for python-urllib3 python-brotli: Brotli support python-certifi: security support [installed] python-cryptography: security support python-idna: security support python-pyopenssl: security support python-pysocks: SOCKS support installing python-botocore... Optional dependencies for python-botocore python-awscrt installing python-wrapt... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (78) New Version Net Change Download Size extra/libxslt 1.1.38-1 0.71 MiB extra/perl-error 0.17029-4 0.04 MiB extra/perl-mailtools 2.21-6 0.11 MiB extra/perl-timedate 2.33-4 0.08 MiB extra/postgresql 15.3-2 36.86 MiB extra/postgresql-libs 15.3-2 7.11 MiB extra/python-aioitertools 0.11.0-2 0.44 MiB 0.06 MiB extra/python-aiosignal 1.3.1-3 0.02 MiB extra/python-anyio 3.7.1-1 1.19 MiB extra/python-asgiref 3.7.2-1 0.22 MiB 0.05 MiB extra/python-asn1crypto 1.5.1-2 1.59 MiB 0.21 MiB extra/python-async-timeout 4.0.2-3 0.03 MiB extra/python-attrs 22.2.0-3 0.55 MiB extra/python-autocommand 2.2.2-4 0.08 MiB extra/python-beautifulsoup4 4.12.2-1 1.68 MiB extra/python-chardet 5.1.0-3 3.02 MiB extra/python-charset-normalizer 3.1.0-3 0.44 MiB extra/python-click 8.1.4-1 1.24 MiB extra/python-dnspython 1:2.3.0-3 3.15 MiB 0.44 MiB extra/python-fastjsonschema 2.17.1-1 0.29 MiB extra/python-frozenlist 1.3.3-2 0.10 MiB extra/python-greenlet 2.0.2-4 0.92 MiB 0.18 MiB extra/python-h11 0.14.0-2 0.65 MiB extra/python-httpcore 0.17.2-1 0.89 MiB extra/python-idna 3.4-3 0.71 MiB extra/python-inflect 6.1.0-1 0.38 MiB extra/python-iniconfig 2.0.0-4 0.04 MiB extra/python-itsdangerous 2.1.2-3 0.14 MiB extra/python-jaraco.context 4.3.0-3 0.04 MiB extra/python-jaraco.functools 3.8.0-1 0.07 MiB extra/python-jaraco.text 3.11.1-3 0.09 MiB extra/python-jinja 1:3.1.2-4 1.82 MiB extra/python-markupsafe 2.1.3-1 0.08 MiB extra/python-more-itertools 9.1.1-4 0.61 MiB extra/python-multidict 6.0.4-2 0.16 MiB extra/python-ordered-set 4.1.0-4 0.07 MiB extra/python-packaging 23.1-1 0.47 MiB extra/python-platformdirs 3.8.1-1 0.21 MiB extra/python-pluggy 1.0.0-4 0.13 MiB extra/python-py-cpuinfo 9.0.0-2 0.33 MiB 0.06 MiB extra/python-pydantic 1.10.9-1 6.57 MiB extra/python-pytz 2023.3-1 0.17 MiB extra/python-scramp 1.4.4-2 0.11 MiB 0.03 MiB extra/python-sniffio 1.3.0-3 0.03 MiB extra/python-soupsieve 2.4.1-1 0.46 MiB extra/python-sqlparse 0.4.3-2 0.30 MiB 0.09 MiB extra/python-testing.common.database 2.0.3-9 0.05 MiB 0.01 MiB extra/python-tomli 2.0.1-3 0.11 MiB extra/python-trove-classifiers 2023.7.6-1 0.11 MiB extra/python-typing_extensions 4.7.0-1 0.37 MiB extra/python-validate-pyproject 0.13-1 0.29 MiB extra/python-waitress 2.1.2-2 0.51 MiB 0.11 MiB extra/python-webob 1.8.7-6 1.59 MiB 0.21 MiB extra/python-werkzeug 2.3.2-1 2.78 MiB extra/python-yarl 1.9.2-1 0.27 MiB extra/git 2.41.0-1 34.87 MiB extra/python-aiobotocore 2.5.2-1 0.74 MiB 0.14 MiB extra/python-aiohttp 3.8.4-1 2.83 MiB extra/python-bottle 0.12.25-3 0.76 MiB 0.11 MiB extra/python-django 4.1.9-1 34.31 MiB 5.00 MiB extra/python-django-fake-model 0.1.4-6 0.03 MiB 0.01 MiB extra/python-flask 2.2.5-1 1.14 MiB extra/python-flask-sqlalchemy 2.5.1-5 0.27 MiB 0.07 MiB extra/python-httpx 0.24.1-1 1.05 MiB extra/python-mysql-connector 8.0.33-2 4.54 MiB 0.57 MiB extra/python-pg8000 1.29.8-1 0.50 MiB 0.08 MiB extra/python-psycopg2 2.9.6-2 0.70 MiB 0.16 MiB extra/python-pymongo 4.3.3-2 4.28 MiB 0.59 MiB extra/python-pymysql 1.1.0-1 0.52 MiB 0.10 MiB extra/python-pynamodb 5.5.0-1 0.88 MiB 0.14 MiB extra/python-pytest 7.4.0-1 4.01 MiB extra/python-pytest-asyncio 0.21.0-3 0.09 MiB extra/python-pytest-benchmark 4.0.0-4 0.47 MiB 0.10 MiB extra/python-requests 2.28.2-4 0.61 MiB extra/python-setuptools 1:68.0.0-1 4.64 MiB extra/python-sqlalchemy 1.4.44-2 20.63 MiB 2.55 MiB extra/python-testing.postgresql 1.3.0-9 0.03 MiB 0.01 MiB extra/python-webtest 3.0.0-5 0.38 MiB 0.07 MiB Total Download Size: 11.16 MiB Total Installed Size: 198.76 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-django-4.1.9-1-any downloading... python-sqlalchemy-1.4.44-2-riscv64 downloading... python-pymongo-4.3.3-2-riscv64 downloading... python-mysql-connector-8.0.33-2-any downloading... python-dnspython-1:2.3.0-3-any downloading... python-asn1crypto-1.5.1-2-any downloading... python-webob-1.8.7-6-any downloading... python-greenlet-2.0.2-4-riscv64 downloading... python-psycopg2-2.9.6-2-riscv64 downloading... python-pynamodb-5.5.0-1-any downloading... python-aiobotocore-2.5.2-1-any downloading... python-bottle-0.12.25-3-any downloading... python-waitress-2.1.2-2-any downloading... python-pymysql-1.1.0-1-any downloading... python-pytest-benchmark-4.0.0-4-any downloading... python-sqlparse-0.4.3-2-any downloading... python-pg8000-1.29.8-1-any downloading... python-flask-sqlalchemy-2.5.1-5-any downloading... python-webtest-3.0.0-5-any downloading... python-py-cpuinfo-9.0.0-2-any downloading... python-aioitertools-0.11.0-2-any downloading... python-asgiref-3.7.2-1-any downloading... python-scramp-1.4.4-2-any downloading... python-testing.common.database-2.0.3-9-any downloading... python-testing.postgresql-1.3.0-9-any downloading... python-django-fake-model-0.1.4-6-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing perl-error... installing perl-timedate... installing perl-mailtools... installing git... Optional dependencies for git tk: gitk and git gui perl-libwww: git svn perl-term-readkey: git svn and interactive.singlekey setting perl-io-socket-ssl: git send-email TLS support perl-authen-sasl: git send-email TLS support perl-mediawiki-api: git mediawiki support perl-datetime-format-iso8601: git mediawiki support perl-lwp-protocol-https: git mediawiki https support perl-cgi: gitweb (web interface) support python: git svn & git p4 [installed] subversion: git svn org.freedesktop.secrets: keyring credential helper libsecret: libsecret credential helper [installed] installing python-more-itertools... installing python-jaraco.functools... installing python-jaraco.context... installing python-autocommand... installing python-typing_extensions... installing python-pydantic... Optional dependencies for python-pydantic python-dotenv: for .env file support python-email-validator: for email validation installing python-inflect... installing python-jaraco.text... installing python-ordered-set... installing python-packaging... installing python-platformdirs... installing python-tomli... installing python-fastjsonschema... installing python-trove-classifiers... installing python-validate-pyproject... installing python-setuptools... installing python-chardet... installing python-multidict... installing python-async-timeout... installing python-idna... installing python-yarl... installing python-attrs... installing python-charset-normalizer... installing python-frozenlist... installing python-aiosignal... installing python-aiohttp... Optional dependencies for python-aiohttp gunicorn: to deploy using Gunicorn python-aiodns: for fast DNS resolving python-cchardet: for faster encoding detection python-brotli: for Brotli transfer-encodings support installing python-aioitertools... installing python-aiobotocore... installing python-bottle... installing python-pytz... installing python-sqlparse... installing python-asgiref... installing python-django... Optional dependencies for python-django python-psycopg2: for PostgreSQL backend [pending] python-argon2_cffi: for Argon2 password hashing support installing python-markupsafe... installing python-werkzeug... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support installing python-itsdangerous... installing python-click... installing python-flask... Optional dependencies for python-flask python-asgiref: async functions and views [installed] python-dotenv: loading env vars from files installing python-greenlet... installing python-sqlalchemy... Optional dependencies for python-sqlalchemy python-psycopg2: connect to PostgreSQL database [pending] installing python-flask-sqlalchemy... installing python-sniffio... installing python-anyio... Optional dependencies for python-anyio python-trio: trio backend python-outcome: trio backend python-uvloop: use uvloop for asyncio backend python-pytest: pytest plugin [pending] installing python-h11... installing python-httpcore... Optional dependencies for python-httpcore python-h2: for HTTP/2 support python-socksio: for SOCKS support python-trio: for trio backend installing python-httpx... Optional dependencies for python-httpx python-brotli: for brotli response decompression python-brotlicffi: for brotli response decompression python-h2: HTTP/2 support python-socksio: SOCKS proxy support python-click: command line client support [installed] python-rich: command line client support python-pygments: command line client support python-trio: alternative async library installing python-dnspython... Optional dependencies for python-dnspython python-cryptography: DNSSEC support python-requests-toolbelt: DoH support python-idna: support for updated IDNA 2008 [installed] python-curio: async support python-trio: async support python-sniffio: async support [installed] installing python-mysql-connector... installing python-asn1crypto... installing python-scramp... installing python-pg8000... installing postgresql-libs... installing python-psycopg2... installing python-pymongo... Optional dependencies for python-pymongo python-pyopenssl: for [ocsp] python-requests: for [ocsp] [pending] python-service-identity: for [ocsp] python-snappy: for [snappy] python-zstandard: for [zstd] python-dnspython: for [srv] [installed] installing python-pymysql... Optional dependencies for python-pymysql mariadb: for using a local MariaDB instance python-cryptography: for RSA cryptography python-pynacl: for ed25519 cryptography installing python-pynamodb... Optional dependencies for python-pynamodb python-blinker: for signals installing python-requests... Optional dependencies for python-requests python-pysocks: SOCKS proxy support installing python-iniconfig... installing python-pluggy... installing python-pytest... installing python-pytest-asyncio... installing python-testing.common.database... installing libxslt... Optional dependencies for libxslt python: Python bindings [installed] installing postgresql... Optional dependencies for postgresql python: for PL/Python 3 support [installed] perl: for PL/Perl support [installed] tcl: for PL/Tcl support postgresql-old-upgrade: upgrade from previous major version using pg_upgrade logrotate: rotates system logs automatically installing python-testing.postgresql... installing python-webob... Optional dependencies for python-webob python-webob-docs: documentation installing python-soupsieve... installing python-beautifulsoup4... Optional dependencies for python-beautifulsoup4 python-chardet: to autodetect character encodings [installed] python-lxml: alternative HTML parser python-html5lib: alternative HTML parser installing python-waitress... installing python-webtest... Optional dependencies for python-webtest python-pyquery: for response.pyquery python-lxml: for response.lxml installing python-django-fake-model... installing python-py-cpuinfo... installing python-pytest-benchmark... :: Running post-transaction hooks... (1/1) Warn about old perl modules [?25h==> Retrieving sources... ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Creating working copy of aws-xray-sdk-python git repo... Cloning into 'aws-xray-sdk-python'... done. Switched to a new branch 'makepkg' ==> Starting prepare()... ==> Starting pkgver()... ==> Starting build()... running build running build_py creating build creating build/lib creating build/lib/aws_xray_sdk copying aws_xray_sdk/version.py -> build/lib/aws_xray_sdk copying aws_xray_sdk/sdk_config.py -> build/lib/aws_xray_sdk copying aws_xray_sdk/__init__.py -> build/lib/aws_xray_sdk creating build/lib/aws_xray_sdk/ext copying aws_xray_sdk/ext/dbapi2.py -> build/lib/aws_xray_sdk/ext copying aws_xray_sdk/ext/util.py -> build/lib/aws_xray_sdk/ext copying aws_xray_sdk/ext/boto_utils.py -> build/lib/aws_xray_sdk/ext copying aws_xray_sdk/ext/__init__.py -> build/lib/aws_xray_sdk/ext creating build/lib/aws_xray_sdk/core copying aws_xray_sdk/core/async_context.py -> build/lib/aws_xray_sdk/core copying aws_xray_sdk/core/daemon_config.py -> build/lib/aws_xray_sdk/core copying aws_xray_sdk/core/lambda_launcher.py -> build/lib/aws_xray_sdk/core copying aws_xray_sdk/core/async_recorder.py -> build/lib/aws_xray_sdk/core copying aws_xray_sdk/core/recorder.py -> build/lib/aws_xray_sdk/core copying aws_xray_sdk/core/patcher.py -> build/lib/aws_xray_sdk/core copying aws_xray_sdk/core/__init__.py -> build/lib/aws_xray_sdk/core copying aws_xray_sdk/core/context.py -> build/lib/aws_xray_sdk/core creating build/lib/aws_xray_sdk/ext/psycopg2 copying aws_xray_sdk/ext/psycopg2/patch.py -> build/lib/aws_xray_sdk/ext/psycopg2 copying aws_xray_sdk/ext/psycopg2/__init__.py -> build/lib/aws_xray_sdk/ext/psycopg2 creating build/lib/aws_xray_sdk/ext/aiobotocore copying aws_xray_sdk/ext/aiobotocore/patch.py -> build/lib/aws_xray_sdk/ext/aiobotocore copying aws_xray_sdk/ext/aiobotocore/__init__.py -> build/lib/aws_xray_sdk/ext/aiobotocore creating build/lib/aws_xray_sdk/ext/bottle copying aws_xray_sdk/ext/bottle/__init__.py -> build/lib/aws_xray_sdk/ext/bottle copying aws_xray_sdk/ext/bottle/middleware.py -> build/lib/aws_xray_sdk/ext/bottle creating build/lib/aws_xray_sdk/ext/httpx copying aws_xray_sdk/ext/httpx/patch.py -> build/lib/aws_xray_sdk/ext/httpx copying aws_xray_sdk/ext/httpx/__init__.py -> build/lib/aws_xray_sdk/ext/httpx creating build/lib/aws_xray_sdk/ext/pymysql copying aws_xray_sdk/ext/pymysql/patch.py -> build/lib/aws_xray_sdk/ext/pymysql copying aws_xray_sdk/ext/pymysql/__init__.py -> build/lib/aws_xray_sdk/ext/pymysql creating build/lib/aws_xray_sdk/ext/sqlalchemy copying aws_xray_sdk/ext/sqlalchemy/query.py -> build/lib/aws_xray_sdk/ext/sqlalchemy copying aws_xray_sdk/ext/sqlalchemy/__init__.py -> build/lib/aws_xray_sdk/ext/sqlalchemy creating build/lib/aws_xray_sdk/ext/pymongo copying aws_xray_sdk/ext/pymongo/patch.py -> build/lib/aws_xray_sdk/ext/pymongo copying aws_xray_sdk/ext/pymongo/__init__.py -> build/lib/aws_xray_sdk/ext/pymongo creating build/lib/aws_xray_sdk/ext/flask copying aws_xray_sdk/ext/flask/__init__.py -> build/lib/aws_xray_sdk/ext/flask copying aws_xray_sdk/ext/flask/middleware.py -> build/lib/aws_xray_sdk/ext/flask creating build/lib/aws_xray_sdk/ext/pg8000 copying aws_xray_sdk/ext/pg8000/patch.py -> build/lib/aws_xray_sdk/ext/pg8000 copying aws_xray_sdk/ext/pg8000/__init__.py -> build/lib/aws_xray_sdk/ext/pg8000 creating build/lib/aws_xray_sdk/ext/mysql copying aws_xray_sdk/ext/mysql/patch.py -> build/lib/aws_xray_sdk/ext/mysql copying aws_xray_sdk/ext/mysql/__init__.py -> build/lib/aws_xray_sdk/ext/mysql creating build/lib/aws_xray_sdk/ext/flask_sqlalchemy copying aws_xray_sdk/ext/flask_sqlalchemy/query.py -> build/lib/aws_xray_sdk/ext/flask_sqlalchemy copying aws_xray_sdk/ext/flask_sqlalchemy/__init__.py -> build/lib/aws_xray_sdk/ext/flask_sqlalchemy creating build/lib/aws_xray_sdk/ext/django copying aws_xray_sdk/ext/django/apps.py -> build/lib/aws_xray_sdk/ext/django copying aws_xray_sdk/ext/django/db.py -> build/lib/aws_xray_sdk/ext/django copying aws_xray_sdk/ext/django/templates.py -> build/lib/aws_xray_sdk/ext/django copying aws_xray_sdk/ext/django/conf.py -> build/lib/aws_xray_sdk/ext/django copying aws_xray_sdk/ext/django/__init__.py -> build/lib/aws_xray_sdk/ext/django copying aws_xray_sdk/ext/django/middleware.py -> build/lib/aws_xray_sdk/ext/django creating build/lib/aws_xray_sdk/ext/requests copying aws_xray_sdk/ext/requests/patch.py -> build/lib/aws_xray_sdk/ext/requests copying aws_xray_sdk/ext/requests/__init__.py -> build/lib/aws_xray_sdk/ext/requests creating build/lib/aws_xray_sdk/ext/sqlalchemy_core copying aws_xray_sdk/ext/sqlalchemy_core/patch.py -> build/lib/aws_xray_sdk/ext/sqlalchemy_core copying aws_xray_sdk/ext/sqlalchemy_core/__init__.py -> build/lib/aws_xray_sdk/ext/sqlalchemy_core creating build/lib/aws_xray_sdk/ext/aiohttp copying aws_xray_sdk/ext/aiohttp/client.py -> build/lib/aws_xray_sdk/ext/aiohttp copying aws_xray_sdk/ext/aiohttp/__init__.py -> build/lib/aws_xray_sdk/ext/aiohttp copying aws_xray_sdk/ext/aiohttp/middleware.py -> build/lib/aws_xray_sdk/ext/aiohttp creating build/lib/aws_xray_sdk/ext/pynamodb copying aws_xray_sdk/ext/pynamodb/patch.py -> build/lib/aws_xray_sdk/ext/pynamodb copying aws_xray_sdk/ext/pynamodb/__init__.py -> build/lib/aws_xray_sdk/ext/pynamodb creating build/lib/aws_xray_sdk/ext/httplib copying aws_xray_sdk/ext/httplib/patch.py -> build/lib/aws_xray_sdk/ext/httplib copying aws_xray_sdk/ext/httplib/__init__.py -> build/lib/aws_xray_sdk/ext/httplib creating build/lib/aws_xray_sdk/ext/botocore copying aws_xray_sdk/ext/botocore/patch.py -> build/lib/aws_xray_sdk/ext/botocore copying aws_xray_sdk/ext/botocore/__init__.py -> build/lib/aws_xray_sdk/ext/botocore creating build/lib/aws_xray_sdk/ext/sqlite3 copying aws_xray_sdk/ext/sqlite3/patch.py -> build/lib/aws_xray_sdk/ext/sqlite3 copying aws_xray_sdk/ext/sqlite3/__init__.py -> build/lib/aws_xray_sdk/ext/sqlite3 creating build/lib/aws_xray_sdk/ext/sqlalchemy/util copying aws_xray_sdk/ext/sqlalchemy/util/decorators.py -> build/lib/aws_xray_sdk/ext/sqlalchemy/util copying aws_xray_sdk/ext/sqlalchemy/util/__init__.py -> build/lib/aws_xray_sdk/ext/sqlalchemy/util creating build/lib/aws_xray_sdk/core/plugins copying aws_xray_sdk/core/plugins/ec2_plugin.py -> build/lib/aws_xray_sdk/core/plugins copying aws_xray_sdk/core/plugins/ecs_plugin.py -> build/lib/aws_xray_sdk/core/plugins copying aws_xray_sdk/core/plugins/elasticbeanstalk_plugin.py -> build/lib/aws_xray_sdk/core/plugins copying aws_xray_sdk/core/plugins/__init__.py -> build/lib/aws_xray_sdk/core/plugins copying aws_xray_sdk/core/plugins/utils.py -> build/lib/aws_xray_sdk/core/plugins creating build/lib/aws_xray_sdk/core/emitters copying aws_xray_sdk/core/emitters/udp_emitter.py -> build/lib/aws_xray_sdk/core/emitters copying aws_xray_sdk/core/emitters/__init__.py -> build/lib/aws_xray_sdk/core/emitters creating build/lib/aws_xray_sdk/core/utils copying aws_xray_sdk/core/utils/stacktrace.py -> build/lib/aws_xray_sdk/core/utils copying aws_xray_sdk/core/utils/compat.py -> build/lib/aws_xray_sdk/core/utils copying aws_xray_sdk/core/utils/atomic_counter.py -> build/lib/aws_xray_sdk/core/utils copying aws_xray_sdk/core/utils/sqs_message_helper.py -> build/lib/aws_xray_sdk/core/utils copying aws_xray_sdk/core/utils/search_pattern.py -> build/lib/aws_xray_sdk/core/utils copying aws_xray_sdk/core/utils/conversion.py -> build/lib/aws_xray_sdk/core/utils copying aws_xray_sdk/core/utils/__init__.py -> build/lib/aws_xray_sdk/core/utils creating build/lib/aws_xray_sdk/core/sampling copying aws_xray_sdk/core/sampling/rule_cache.py -> build/lib/aws_xray_sdk/core/sampling copying aws_xray_sdk/core/sampling/target_poller.py -> build/lib/aws_xray_sdk/core/sampling copying aws_xray_sdk/core/sampling/reservoir.py -> build/lib/aws_xray_sdk/core/sampling copying aws_xray_sdk/core/sampling/rule_poller.py -> build/lib/aws_xray_sdk/core/sampling copying aws_xray_sdk/core/sampling/sampler.py -> build/lib/aws_xray_sdk/core/sampling copying aws_xray_sdk/core/sampling/connector.py -> build/lib/aws_xray_sdk/core/sampling copying aws_xray_sdk/core/sampling/__init__.py -> build/lib/aws_xray_sdk/core/sampling copying aws_xray_sdk/core/sampling/sampling_rule.py -> build/lib/aws_xray_sdk/core/sampling creating build/lib/aws_xray_sdk/core/streaming copying aws_xray_sdk/core/streaming/default_streaming.py -> build/lib/aws_xray_sdk/core/streaming copying aws_xray_sdk/core/streaming/__init__.py -> build/lib/aws_xray_sdk/core/streaming creating build/lib/aws_xray_sdk/core/models copying aws_xray_sdk/core/models/dummy_entities.py -> build/lib/aws_xray_sdk/core/models copying aws_xray_sdk/core/models/subsegment.py -> build/lib/aws_xray_sdk/core/models copying aws_xray_sdk/core/models/segment.py -> build/lib/aws_xray_sdk/core/models copying aws_xray_sdk/core/models/throwable.py -> build/lib/aws_xray_sdk/core/models copying aws_xray_sdk/core/models/entity.py -> build/lib/aws_xray_sdk/core/models copying aws_xray_sdk/core/models/traceid.py -> build/lib/aws_xray_sdk/core/models copying aws_xray_sdk/core/models/facade_segment.py -> build/lib/aws_xray_sdk/core/models copying aws_xray_sdk/core/models/http.py -> build/lib/aws_xray_sdk/core/models copying aws_xray_sdk/core/models/trace_header.py -> build/lib/aws_xray_sdk/core/models copying aws_xray_sdk/core/models/default_dynamic_naming.py -> build/lib/aws_xray_sdk/core/models copying aws_xray_sdk/core/models/__init__.py -> build/lib/aws_xray_sdk/core/models copying aws_xray_sdk/core/models/noop_traceid.py -> build/lib/aws_xray_sdk/core/models creating build/lib/aws_xray_sdk/core/exceptions copying aws_xray_sdk/core/exceptions/exceptions.py -> build/lib/aws_xray_sdk/core/exceptions copying aws_xray_sdk/core/exceptions/__init__.py -> build/lib/aws_xray_sdk/core/exceptions creating build/lib/aws_xray_sdk/core/sampling/local copying aws_xray_sdk/core/sampling/local/reservoir.py -> build/lib/aws_xray_sdk/core/sampling/local copying aws_xray_sdk/core/sampling/local/sampler.py -> build/lib/aws_xray_sdk/core/sampling/local copying aws_xray_sdk/core/sampling/local/__init__.py -> build/lib/aws_xray_sdk/core/sampling/local copying aws_xray_sdk/core/sampling/local/sampling_rule.py -> build/lib/aws_xray_sdk/core/sampling/local running egg_info creating aws_xray_sdk.egg-info writing aws_xray_sdk.egg-info/PKG-INFO writing dependency_links to aws_xray_sdk.egg-info/dependency_links.txt writing requirements to aws_xray_sdk.egg-info/requires.txt writing top-level names to aws_xray_sdk.egg-info/top_level.txt writing manifest file 'aws_xray_sdk.egg-info/SOURCES.txt' reading manifest file 'aws_xray_sdk.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' adding license file 'NOTICE' writing manifest file 'aws_xray_sdk.egg-info/SOURCES.txt' /usr/lib/python3.11/site-packages/setuptools/command/build_py.py:201: _Warning: Package 'aws_xray_sdk.ext.resources' is absent from the `packages` configuration. !! ******************************************************************************** ############################ # Package would be ignored # ############################ Python recognizes 'aws_xray_sdk.ext.resources' as an importable package[^1], but it is absent from setuptools' `packages` configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'aws_xray_sdk.ext.resources' is explicitly added to the `packages` configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'aws_xray_sdk.ext.resources' to be distributed and are already explicitly excluding 'aws_xray_sdk.ext.resources' via `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, you can try to use `exclude_package_data`, or `include-package-data=False` in combination with a more fine grained `package-data` configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any `.py` files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. ******************************************************************************** !! check.warn(importable) creating build/lib/aws_xray_sdk/ext/resources copying aws_xray_sdk/ext/resources/aws_para_whitelist.json -> build/lib/aws_xray_sdk/ext/resources copying aws_xray_sdk/core/sampling/local/sampling_rule.json -> build/lib/aws_xray_sdk/core/sampling/local ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.4.0, pluggy-1.0.0 -- /usr/bin/python cachedir: .pytest_cache benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /build/python-aws-xray-sdk/src/aws-xray-sdk-python configfile: pytest.ini plugins: benchmark-4.0.0, anyio-3.7.1, asyncio-0.21.0 asyncio: mode=Mode.AUTO collecting ... collected 278 items tests/test_async_local_storage.py::test_localstorage_isolation PASSED [ 0%] tests/test_async_recorder.py::test_capture PASSED [ 0%] tests/test_async_recorder.py::test_concurrent_calls PASSED [ 1%] tests/test_async_recorder.py::test_async_context_managers PASSED [ 1%] tests/test_daemon_config.py::test_default_config PASSED [ 1%] tests/test_daemon_config.py::test_single_address PASSED [ 2%] tests/test_daemon_config.py::test_set_tcp_udp_separately PASSED [ 2%] tests/test_daemon_config.py::test_invalid_address PASSED [ 2%] tests/test_dummy_entites.py::test_not_sampled PASSED [ 3%] tests/test_dummy_entites.py::test_no_ops PASSED [ 3%] tests/test_dummy_entites.py::test_structure_intact PASSED [ 3%] tests/test_dummy_entites.py::test_invalid_entity_name PASSED [ 4%] tests/test_dummy_entites.py::test_dummy_segment_trace_id PASSED [ 4%] tests/test_facade_segment.py::test_not_ready PASSED [ 5%] tests/test_facade_segment.py::test_initializing PASSED [ 5%] tests/test_facade_segment.py::test_unsupported_operations PASSED [ 5%] tests/test_facade_segment.py::test_structure_intact PASSED [ 6%] tests/test_facade_segment.py::test_adding_unsampled_subsegment PASSED [ 6%] tests/test_lambda_context.py::test_facade_segment_generation PASSED [ 6%] tests/test_lambda_context.py::test_put_subsegment PASSED [ 7%] tests/test_lambda_context.py::test_disable PASSED [ 7%] tests/test_lambda_context.py::test_non_initialized PASSED [ 7%] tests/test_local_sampling.py::test_should_trace PASSED [ 8%] tests/test_local_sampling.py::test_missing_version_num PASSED [ 8%] tests/test_local_sampling.py::test_default_matching PASSED [ 8%] tests/test_local_sampling.py::test_path_matching PASSED [ 9%] tests/test_local_sampling.py::test_negative_rate PASSED [ 9%] tests/test_local_sampling.py::test_negative_fixed_target PASSED [ 10%] tests/test_local_sampling.py::test_invalid_default PASSED [ 10%] tests/test_local_sampling.py::test_incomplete_path_rule PASSED [ 10%] tests/test_local_sampling_benchmark.py::test_pkgutil_static_read PASSED [ 11%] tests/test_local_sampling_benchmark.py::test_pkg_resources_static_read PASSED [ 11%] tests/test_patcher.py::test_incorrect_import_fails[modules0] PASSED [ 11%] tests/test_patcher.py::test_incorrect_import_fails[modules1] PASSED [ 12%] tests/test_patcher.py::test_incorrect_import_fails[modules2] PASSED [ 12%] tests/test_patcher.py::test_external_file PASSED [ 12%] tests/test_patcher.py::test_external_module PASSED [ 13%] tests/test_patcher.py::test_external_submodules_full PASSED [ 13%] tests/test_patcher.py::test_external_submodules_ignores_file PASSED [ 14%] tests/test_patcher.py::test_external_submodules_ignores_module PASSED [ 14%] tests/test_patcher.py::test_disable_sdk_disables_patching PASSED [ 14%] tests/test_plugins.py::test_runtime_context_available PASSED [ 15%] tests/test_plugins.py::test_ec2_plugin_imdsv2_success PASSED [ 15%] tests/test_plugins.py::test_ec2_plugin_v2_fail_v1_success PASSED [ 15%] tests/test_plugins.py::test_ec2_plugin_v2_fail_v1_fail PASSED [ 16%] tests/test_recorder.py::test_default_runtime_context PASSED [ 16%] tests/test_recorder.py::test_subsegment_parenting PASSED [ 16%] tests/test_recorder.py::test_subsegments_streaming PASSED [ 17%] tests/test_recorder.py::test_subsegment_streaming_set_zero PASSED [ 17%] tests/test_recorder.py::test_put_annotation_metadata PASSED [ 17%] tests/test_recorder.py::test_default_pass_through_with_missing_context PASSED [ 18%] tests/test_recorder.py::test_raise_runtime_error_with_missing_context PASSED [ 18%] tests/test_recorder.py::test_capture_not_suppress_exception PASSED [ 19%] tests/test_recorder.py::test_capture_not_swallow_return PASSED [ 19%] tests/test_recorder.py::test_first_begin_segment_sampled PASSED [ 19%] tests/test_recorder.py::test_unsampled_subsegment_of_sampled_parent PASSED [ 20%] tests/test_recorder.py::test_begin_subsegment_unsampled PASSED [ 20%] tests/test_recorder.py::test_in_segment_closing PASSED [ 20%] tests/test_recorder.py::test_in_segment_exception PASSED [ 21%] tests/test_recorder.py::test_default_enabled PASSED [ 21%] tests/test_recorder.py::test_disable_is_dummy PASSED [ 21%] tests/test_recorder.py::test_unsampled_subsegment_is_dummy PASSED [ 22%] tests/test_recorder.py::test_subsegment_respects_parent_sampling_decision PASSED [ 22%] tests/test_recorder.py::test_disabled_empty_context_current_calls PASSED [ 23%] tests/test_recorder.py::test_disabled_out_of_order_begins PASSED [ 23%] tests/test_recorder.py::test_disabled_put_methods PASSED [ 23%] tests/test_recorder.py::test_disabled_ends PASSED [ 24%] tests/test_recorder.py::test_disabled_begin_subsegment PASSED [ 24%] tests/test_recorder.py::test_disabled_force_sampling PASSED [ 24%] tests/test_recorder.py::test_disabled_get_context_entity PASSED [ 25%] tests/test_recorder.py::test_max_stack_trace_zero PASSED [ 25%] tests/test_recorder.py::test_begin_segment_matches_sampling_rule_on_name PASSED [ 25%] tests/test_sampling_rule_cache.py::test_rules_sorting PASSED [ 26%] tests/test_sampling_rule_cache.py::test_evict_deleted_rules PASSED [ 26%] tests/test_sampling_rule_cache.py::test_rule_matching PASSED [ 26%] tests/test_sampling_rule_cache.py::test_preserving_sampling_statistics PASSED [ 27%] tests/test_sampling_rule_cache.py::test_correct_target_mapping PASSED [ 27%] tests/test_sampling_rule_cache.py::test_expired_cache PASSED [ 28%] tests/test_sdk_config.py::test_enable_key PASSED [ 28%] tests/test_sdk_config.py::test_default_enabled PASSED [ 28%] tests/test_sdk_config.py::test_env_var_precedence PASSED [ 29%] tests/test_sdk_config.py::test_env_enable_case PASSED [ 29%] tests/test_sdk_config.py::test_invalid_env_string PASSED [ 29%] tests/test_serialize_entities.py::test_serialize_segment PASSED [ 30%] tests/test_serialize_entities.py::test_serialize_segment_with_aws PASSED [ 30%] tests/test_serialize_entities.py::test_serialize_segment_with_services PASSED [ 30%] tests/test_serialize_entities.py::test_serialize_segment_with_annotation PASSED [ 31%] tests/test_serialize_entities.py::test_serialize_segment_with_metadata PASSED [ 31%] tests/test_serialize_entities.py::test_serialize_segment_with_http PASSED [ 32%] tests/test_serialize_entities.py::test_serialize_segment_with_exception PASSED [ 32%] tests/test_serialize_entities.py::test_serialize_subsegment PASSED [ 32%] tests/test_serialize_entities.py::test_serialize_subsegment_with_http PASSED [ 33%] tests/test_serialize_entities.py::test_serialize_subsegment_with_sql PASSED [ 33%] tests/test_serialize_entities.py::test_serialize_subsegment_with_aws PASSED [ 33%] tests/test_serialize_entities.py::test_serialize_with_ast_metadata PASSED [ 34%] tests/test_sqs_message_helper.py::test_return_true_when_sampling_1 PASSED [ 34%] tests/test_sqs_message_helper.py::test_return_false_when_sampling_0 PASSED [ 34%] tests/test_sqs_message_helper.py::test_return_false_with_no_sampling_flag PASSED [ 35%] tests/test_throwable.py::test_message_and_type PASSED [ 35%] tests/test_throwable.py::test_stack_trace_parsing PASSED [ 35%] tests/test_trace_entities.py::test_unicode_entity_name PASSED [ 36%] tests/test_trace_entities.py::test_segment_user PASSED [ 36%] tests/test_trace_entities.py::test_put_http_meta PASSED [ 37%] tests/test_trace_entities.py::test_put_metadata PASSED [ 37%] tests/test_trace_entities.py::test_put_annotation PASSED [ 37%] tests/test_trace_entities.py::test_reference_counting PASSED [ 38%] tests/test_trace_entities.py::test_flags_on_status_code PASSED [ 38%] tests/test_trace_entities.py::test_mutate_closed_entity PASSED [ 38%] tests/test_trace_entities.py::test_no_rule_name_pollution PASSED [ 39%] tests/test_trace_entities.py::test_no_empty_properties PASSED [ 39%] tests/test_trace_entities.py::test_required_properties PASSED [ 39%] tests/test_trace_entities.py::test_missing_segment_name PASSED [ 40%] tests/test_trace_entities.py::test_missing_parent_segment PASSED [ 40%] tests/test_trace_entities.py::test_add_exception PASSED [ 41%] tests/test_trace_entities.py::test_add_exception_referencing PASSED [ 41%] tests/test_trace_entities.py::test_add_exception_cause_resetting PASSED [ 41%] tests/test_trace_entities.py::test_add_exception_appending_exceptions PASSED [ 42%] tests/test_trace_entities.py::test_adding_subsegments_with_recorder PASSED [ 42%] tests/test_trace_header.py::test_no_sample PASSED [ 42%] tests/test_trace_header.py::test_no_parent PASSED [ 43%] tests/test_trace_header.py::test_from_str PASSED [ 43%] tests/test_trace_header.py::test_arbitrary_fields PASSED [ 43%] tests/test_trace_header.py::test_invalid_str PASSED [ 44%] tests/test_traceid.py::test_id_format PASSED [ 44%] tests/test_traceid.py::test_id_generation_default_sampling_false PASSED [ 44%] tests/test_traceid.py::test_id_generation_default_sampling_true PASSED [ 45%] tests/test_traceid.py::test_id_generation_noop_true PASSED [ 45%] tests/test_traceid.py::test_id_generation_noop_false PASSED [ 46%] tests/test_utils.py::test_to_snake_case PASSED [ 46%] tests/test_utils.py::test_get_hostname PASSED [ 46%] tests/test_utils.py::test_strip_url PASSED [ 47%] tests/test_utils.py::test_inject_trace_header_unsampled PASSED [ 47%] tests/test_utils.py::test_inject_trace_header_respects_parent_subsegment PASSED [ 47%] tests/test_utils.py::test_inject_trace_header_sampled PASSED [ 48%] tests/test_wildcard_match.py::test_match_exact_positive PASSED [ 48%] tests/test_wildcard_match.py::test_match_exact_negative PASSED [ 48%] tests/test_wildcard_match.py::test_single_wildcard_positive PASSED [ 49%] tests/test_wildcard_match.py::test_single_wildcard_negative PASSED [ 49%] tests/test_wildcard_match.py::test_multiple_wildcard_positive PASSED [ 50%] tests/test_wildcard_match.py::test_multiple_wildcard_negative PASSED [ 50%] tests/test_wildcard_match.py::test_glob_positive_zero_or_more PASSED [ 50%] tests/test_wildcard_match.py::test_glob_negative_zero_or_more PASSED [ 51%] tests/test_wildcard_match.py::test_glob_negative PASSED [ 51%] tests/test_wildcard_match.py::test_glob_and_single_positive PASSED [ 51%] tests/test_wildcard_match.py::test_glob_and_single_negative PASSED [ 52%] tests/test_wildcard_match.py::test_pure_wildcard PASSED [ 52%] tests/test_wildcard_match.py::test_exact_match PASSED [ 52%] tests/test_wildcard_match.py::test_misc PASSED [ 53%] tests/test_wildcard_match.py::test_case_insensitivity PASSED [ 53%] tests/test_wildcard_match.py::test_no_globs PASSED [ 53%] tests/test_wildcard_match.py::test_edge_case_globs PASSED [ 54%] tests/test_wildcard_match.py::test_multi_globs PASSED [ 54%] tests/distributioncheck/test_sanity.py::test_create_segment PASSED [ 55%] tests/ext/aiobotocore/test_aiobotocore.py::test_describe_table PASSED [ 55%] tests/ext/aiobotocore/test_aiobotocore.py::test_s3_parameter_capture PASSED [ 55%] tests/ext/aiobotocore/test_aiobotocore.py::test_list_parameter_counting PASSED [ 56%] tests/ext/aiobotocore/test_aiobotocore.py::test_map_parameter_grouping PASSED [ 56%] tests/ext/aiobotocore/test_aiobotocore.py::test_context_missing_not_swallow_return PASSED [ 56%] tests/ext/aiobotocore/test_aiobotocore.py::test_context_missing_not_suppress_exception PASSED [ 57%] tests/ext/botocore/test_botocore.py::test_ddb_table_name PASSED [ 57%] tests/ext/botocore/test_botocore.py::test_s3_bucket_name_capture PASSED [ 57%] tests/ext/botocore/test_botocore.py::test_list_parameter_counting PASSED [ 58%] tests/ext/botocore/test_botocore.py::test_map_parameter_grouping PASSED [ 58%] tests/ext/botocore/test_botocore.py::test_pass_through_on_context_missing PASSED [ 58%] tests/ext/botocore/test_botocore.py::test_sns_publish_parameters PASSED [ 59%] tests/ext/bottle/test_bottle.py::test_ok PASSED [ 59%] tests/ext/bottle/test_bottle.py::test_error PASSED [ 60%] tests/ext/bottle/test_bottle.py::test_custom_client_error PASSED [ 60%] tests/ext/bottle/test_bottle.py::test_server_error PASSED [ 60%] tests/ext/bottle/test_bottle.py::test_fault PASSED [ 61%] tests/ext/bottle/test_bottle.py::test_render_template PASSED [ 61%] tests/ext/bottle/test_bottle.py::test_render_view PASSED [ 61%] tests/ext/bottle/test_bottle.py::test_incoming_sampling_decision_respected PASSED [ 62%] tests/ext/bottle/test_bottle.py::test_trace_header_data_perservation PASSED [ 62%] tests/ext/bottle/test_bottle.py::test_sampled_response_header PASSED [ 62%] tests/ext/bottle/test_bottle.py::test_disabled_sdk PASSED [ 63%] tests/ext/bottle/test_bottle.py::test_lambda_serverless PASSED [ 63%] tests/ext/bottle/test_bottle.py::test_lambda_default_ctx PASSED [ 64%] tests/ext/django/test_db.py::test_all[False] PASSED [ 64%] tests/ext/django/test_db.py::test_all[True] PASSED [ 64%] tests/ext/django/test_db.py::test_filter[False] PASSED [ 65%] tests/ext/django/test_db.py::test_filter[True] PASSED [ 65%] tests/ext/django/test_middleware.py::XRayTestCase::test_db PASSED [ 65%] tests/ext/django/test_middleware.py::XRayTestCase::test_disabled_sdk PASSED [ 66%] tests/ext/django/test_middleware.py::XRayTestCase::test_error PASSED [ 66%] tests/ext/django/test_middleware.py::XRayTestCase::test_fault PASSED [ 66%] tests/ext/django/test_middleware.py::XRayTestCase::test_lambda_default_ctx PASSED [ 67%] tests/ext/django/test_middleware.py::XRayTestCase::test_lambda_serverless PASSED [ 67%] tests/ext/django/test_middleware.py::XRayTestCase::test_ok PASSED [ 67%] tests/ext/django/test_middleware.py::XRayTestCase::test_response_header PASSED [ 68%] tests/ext/django/test_middleware.py::XRayTestCase::test_template PASSED [ 68%] tests/ext/django/test_middleware.py::XRayTestCase::test_template_block PASSED [ 69%] tests/ext/django/test_middleware.py::XRayTestCase::test_trace_header_data_perservation PASSED [ 69%] tests/ext/django/test_settings.py::XRayConfigurationTestCase::test_sampler_can_be_configured PASSED [ 69%] tests/ext/flask/test_flask.py::test_ok PASSED [ 70%] tests/ext/flask/test_flask.py::test_error PASSED [ 70%] tests/ext/flask/test_flask.py::test_fault PASSED [ 70%] tests/ext/flask/test_flask.py::test_fault_no_exception PASSED [ 71%] tests/ext/flask/test_flask.py::test_render_template PASSED [ 71%] tests/ext/flask/test_flask.py::test_incoming_sampling_decision_respected PASSED [ 71%] tests/ext/flask/test_flask.py::test_trace_header_data_perservation PASSED [ 72%] tests/ext/flask/test_flask.py::test_sampled_response_header PASSED [ 72%] tests/ext/flask/test_flask.py::test_disabled_sdk PASSED [ 73%] tests/ext/flask/test_flask.py::test_lambda_serverless PASSED [ 73%] tests/ext/flask/test_flask.py::test_lambda_default_ctx PASSED [ 73%] tests/ext/flask_sqlalchemy/test_query.py::test_all[False] PASSED [ 74%] tests/ext/flask_sqlalchemy/test_query.py::test_all[True] PASSED [ 74%] tests/ext/flask_sqlalchemy/test_query.py::test_add[False] PASSED [ 74%] tests/ext/flask_sqlalchemy/test_query.py::test_add[True] PASSED [ 75%] tests/ext/httplib/test_httplib.py::test_ok PASSED [ 75%] tests/ext/httplib/test_httplib.py::test_error PASSED [ 75%] tests/ext/httplib/test_httplib.py::test_throttle FAILED [ 76%] tests/ext/httplib/test_httplib.py::test_fault PASSED [ 76%] tests/ext/httplib/test_httplib.py::test_invalid_url PASSED [ 76%] tests/ext/httplib/test_httplib.py::test_correct_identify_http PASSED [ 77%] tests/ext/httplib/test_httplib.py::test_correct_identify_https PASSED [ 77%] tests/ext/httplib/test_httplib.py::test_ignore_url PASSED [ 78%] tests/ext/httplib/test_httplib.py::test_ignore_hostname PASSED [ 78%] tests/ext/httplib/test_httplib.py::test_ignore_hostname_glob PASSED [ 78%] tests/ext/httplib/test_httplib.py::test_ignore_subclass PASSED [ 79%] tests/ext/httplib/test_httplib.py::test_ignore_multiple_match PASSED [ 79%] tests/ext/httplib/test_httplib.py::test_ignore_multiple_no_match PASSED [ 79%] tests/ext/httpx/test_httpx.py::test_ok[True] FAILED [ 80%] tests/ext/httpx/test_httpx.py::test_ok[False] FAILED [ 80%] tests/ext/httpx/test_httpx.py::test_error[True] PASSED [ 80%] tests/ext/httpx/test_httpx.py::test_error[False] FAILED [ 81%] tests/ext/httpx/test_httpx.py::test_throttle[True] FAILED [ 81%] tests/ext/httpx/test_httpx.py::test_throttle[False] PASSED [ 82%] tests/ext/httpx/test_httpx.py::test_fault[True] FAILED [ 82%] tests/ext/httpx/test_httpx.py::test_fault[False] PASSED [ 82%] tests/ext/httpx/test_httpx.py::test_nonexistent_domain[True] PASSED [ 83%] tests/ext/httpx/test_httpx.py::test_nonexistent_domain[False] PASSED [ 83%] tests/ext/httpx/test_httpx.py::test_invalid_url[True] PASSED [ 83%] tests/ext/httpx/test_httpx.py::test_invalid_url[False] PASSED [ 84%] tests/ext/httpx/test_httpx.py::test_name_uses_hostname[True] PASSED [ 84%] tests/ext/httpx/test_httpx.py::test_name_uses_hostname[False] FAILED [ 84%] tests/ext/httpx/test_httpx.py::test_strip_http_url[True] PASSED [ 85%] tests/ext/httpx/test_httpx.py::test_strip_http_url[False] FAILED [ 85%] tests/ext/httpx/test_httpx_async.py::test_ok_async FAILED [ 85%] tests/ext/httpx/test_httpx_async.py::test_error_async FAILED [ 86%] tests/ext/httpx/test_httpx_async.py::test_throttle_async FAILED [ 86%] tests/ext/httpx/test_httpx_async.py::test_fault_async PASSED [ 87%] tests/ext/httpx/test_httpx_async.py::test_nonexistent_domain_async PASSED [ 87%] tests/ext/httpx/test_httpx_async.py::test_invalid_url_async PASSED [ 87%] tests/ext/httpx/test_httpx_async.py::test_name_uses_hostname_async PASSED [ 88%] tests/ext/httpx/test_httpx_async.py::test_strip_http_url_async PASSED [ 88%] tests/ext/psycopg2/test_psycopg2.py::test_execute_dsn_kwargs PASSED [ 88%] tests/ext/psycopg2/test_psycopg2.py::test_execute_dsn_kwargs_alt_dbname PASSED [ 89%] tests/ext/psycopg2/test_psycopg2.py::test_execute_dsn_string PASSED [ 89%] tests/ext/psycopg2/test_psycopg2.py::test_execute_in_pool PASSED [ 89%] tests/ext/psycopg2/test_psycopg2.py::test_execute_bad_query PASSED [ 90%] tests/ext/psycopg2/test_psycopg2.py::test_register_extensions PASSED [ 90%] tests/ext/psycopg2/test_psycopg2.py::test_query_as_string PASSED [ 91%] tests/ext/psycopg2/test_psycopg2.py::test_register_default_jsonb PASSED [ 91%] tests/ext/pynamodb/test_pynamodb.py::test_exception PASSED [ 91%] tests/ext/pynamodb/test_pynamodb.py::test_empty_response PASSED [ 92%] tests/ext/pynamodb/test_pynamodb.py::test_only_dynamodb_calls_are_traced PASSED [ 92%] tests/ext/requests/test_requests.py::test_ok FAILED [ 92%] tests/ext/requests/test_requests.py::test_error PASSED [ 93%] tests/ext/requests/test_requests.py::test_throttle PASSED [ 93%] tests/ext/requests/test_requests.py::test_fault PASSED [ 93%] tests/ext/requests/test_requests.py::test_nonexistent_domain PASSED [ 94%] tests/ext/requests/test_requests.py::test_invalid_url PASSED [ 94%] tests/ext/requests/test_requests.py::test_name_uses_hostname PASSED [ 94%] tests/ext/requests/test_requests.py::test_strip_http_url PASSED [ 95%] tests/ext/sqlalchemy/test_query.py::test_all PASSED [ 95%] tests/ext/sqlalchemy/test_query.py::test_supports_connection PASSED [ 96%] tests/ext/sqlalchemy/test_query.py::test_add PASSED [ 96%] tests/ext/sqlalchemy/test_query.py::test_filter_first PASSED [ 96%] tests/ext/sqlalchemy_core/test_postgres.py::test_all PASSED [ 97%] tests/ext/sqlalchemy_core/test_postgres.py::test_insert_on_conflict_renders PASSED [ 97%] tests/ext/sqlalchemy_core/test_sqlalchemy_core.py::test_all PASSED [ 97%] tests/ext/sqlalchemy_core/test_sqlalchemy_core.py::test_filter_first PASSED [ 98%] tests/ext/sqlalchemy_core/test_sqlalchemy_core.py::test_connection_add PASSED [ 98%] tests/ext/sqlalchemy_core/test_sqlalchemy_core.py::test_connection_query PASSED [ 98%] tests/ext/sqlalchemy_core/test_sqlalchemy_core_2.py::test_orm_style_select_execution PASSED [ 99%] tests/ext/sqlite3/test_sqlite3.py::test_execute PASSED [ 99%] tests/ext/sqlite3/test_sqlite3.py::test_invalid_syntax PASSED [100%] =================================== FAILURES =================================== ________________________________ test_throttle _________________________________ def test_throttle(): status_code = 429 url = 'https://{}/status/{}'.format(BASE_URL, status_code) _do_req(url, 'HEAD') subsegment = xray_recorder.current_segment().subsegments[1] assert subsegment.name == get_hostname(url) > assert subsegment.error E AttributeError: 'Subsegment' object has no attribute 'error' tests/ext/httplib/test_httplib.py:89: AttributeError ________________________________ test_ok[True] _________________________________ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = max_bytes = 65536, timeout = 5.0 def read(self, max_bytes: int, timeout: typing.Optional[float] = None) -> bytes: exc_map: ExceptionMapping = {socket.timeout: ReadTimeout, OSError: ReadError} with map_exceptions(exc_map): self._sock.settimeout(timeout) > return self._sock.recv(max_bytes) E TimeoutError: timed out /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:28: TimeoutError The above exception was the direct cause of the following exception: @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpx/_transports/default.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_transports/default.py:218: in handle_request resp = self._pool.handle_request(req) /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:261: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:245: in handle_request response = connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/connection.py:96: in handle_request return self._connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:120: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:99: in handle_request ) = self._receive_response_headers(**kwargs) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:163: in _receive_response_headers event = self._receive_event(timeout=timeout) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:199: in _receive_event data = self._network_stream.read( /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:26: in read with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:14: ReadTimeout The above exception was the direct cause of the following exception: use_client = True @pytest.mark.parametrize("use_client", (True, False)) def test_ok(use_client): status_code = 200 url = "http://{}/status/{}?foo=bar".format(BASE_URL, status_code) if use_client: with httpx.Client() as client: > response = client.get(url) tests/ext/httpx/test_httpx.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_client.py:1041: in get return self.request( /usr/lib/python3.11/site-packages/httpx/_client.py:814: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3.11/site-packages/httpx/_client.py:901: in send response = self._send_handling_auth( /usr/lib/python3.11/site-packages/httpx/_client.py:929: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.11/site-packages/httpx/_client.py:966: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3.11/site-packages/httpx/_client.py:1002: in _send_single_request response = transport.handle_request(request) aws_xray_sdk/ext/httpx/patch.py:46: in handle_request response = self._wrapped_transport.handle_request(request) /usr/lib/python3.11/site-packages/httpx/_transports/default.py:217: in handle_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: # noqa: PIE-786 mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpx/_transports/default.py:77: ReadTimeout ________________________________ test_ok[False] ________________________________ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = max_bytes = 65536, timeout = 5.0 def read(self, max_bytes: int, timeout: typing.Optional[float] = None) -> bytes: exc_map: ExceptionMapping = {socket.timeout: ReadTimeout, OSError: ReadError} with map_exceptions(exc_map): self._sock.settimeout(timeout) > return self._sock.recv(max_bytes) E TimeoutError: timed out /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:28: TimeoutError The above exception was the direct cause of the following exception: @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpx/_transports/default.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_transports/default.py:218: in handle_request resp = self._pool.handle_request(req) /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:261: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:245: in handle_request response = connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/connection.py:96: in handle_request return self._connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:120: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:99: in handle_request ) = self._receive_response_headers(**kwargs) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:163: in _receive_response_headers event = self._receive_event(timeout=timeout) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:199: in _receive_event data = self._network_stream.read( /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:26: in read with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:14: ReadTimeout The above exception was the direct cause of the following exception: use_client = False @pytest.mark.parametrize("use_client", (True, False)) def test_ok(use_client): status_code = 200 url = "http://{}/status/{}?foo=bar".format(BASE_URL, status_code) if use_client: with httpx.Client() as client: response = client.get(url) else: > response = httpx.get(url) tests/ext/httpx/test_httpx.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_api.py:189: in get return request( /usr/lib/python3.11/site-packages/httpx/_api.py:100: in request return client.request( /usr/lib/python3.11/site-packages/httpx/_client.py:814: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3.11/site-packages/httpx/_client.py:901: in send response = self._send_handling_auth( /usr/lib/python3.11/site-packages/httpx/_client.py:929: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.11/site-packages/httpx/_client.py:966: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3.11/site-packages/httpx/_client.py:1002: in _send_single_request response = transport.handle_request(request) aws_xray_sdk/ext/httpx/patch.py:46: in handle_request response = self._wrapped_transport.handle_request(request) /usr/lib/python3.11/site-packages/httpx/_transports/default.py:217: in handle_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: # noqa: PIE-786 mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpx/_transports/default.py:77: ReadTimeout ______________________________ test_error[False] _______________________________ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = max_bytes = 65536, timeout = 5.0 def read(self, max_bytes: int, timeout: typing.Optional[float] = None) -> bytes: exc_map: ExceptionMapping = {socket.timeout: ReadTimeout, OSError: ReadError} with map_exceptions(exc_map): self._sock.settimeout(timeout) > return self._sock.recv(max_bytes) E TimeoutError: timed out /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:28: TimeoutError The above exception was the direct cause of the following exception: @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpx/_transports/default.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_transports/default.py:218: in handle_request resp = self._pool.handle_request(req) /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:261: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:245: in handle_request response = connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/connection.py:96: in handle_request return self._connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:120: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:99: in handle_request ) = self._receive_response_headers(**kwargs) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:163: in _receive_response_headers event = self._receive_event(timeout=timeout) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:199: in _receive_event data = self._network_stream.read( /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:26: in read with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:14: ReadTimeout The above exception was the direct cause of the following exception: use_client = False @pytest.mark.parametrize("use_client", (True, False)) def test_error(use_client): status_code = 400 url = "http://{}/status/{}".format(BASE_URL, status_code) if use_client: with httpx.Client() as client: response = client.post(url) else: > response = httpx.post(url) tests/ext/httpx/test_httpx.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_api.py:304: in post return request( /usr/lib/python3.11/site-packages/httpx/_api.py:100: in request return client.request( /usr/lib/python3.11/site-packages/httpx/_client.py:814: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3.11/site-packages/httpx/_client.py:901: in send response = self._send_handling_auth( /usr/lib/python3.11/site-packages/httpx/_client.py:929: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.11/site-packages/httpx/_client.py:966: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3.11/site-packages/httpx/_client.py:1002: in _send_single_request response = transport.handle_request(request) aws_xray_sdk/ext/httpx/patch.py:46: in handle_request response = self._wrapped_transport.handle_request(request) /usr/lib/python3.11/site-packages/httpx/_transports/default.py:217: in handle_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: # noqa: PIE-786 mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpx/_transports/default.py:77: ReadTimeout _____________________________ test_throttle[True] ______________________________ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = max_bytes = 65536, timeout = 5.0 def read(self, max_bytes: int, timeout: typing.Optional[float] = None) -> bytes: exc_map: ExceptionMapping = {socket.timeout: ReadTimeout, OSError: ReadError} with map_exceptions(exc_map): self._sock.settimeout(timeout) > return self._sock.recv(max_bytes) E TimeoutError: timed out /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:28: TimeoutError The above exception was the direct cause of the following exception: @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpx/_transports/default.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_transports/default.py:218: in handle_request resp = self._pool.handle_request(req) /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:261: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:245: in handle_request response = connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/connection.py:96: in handle_request return self._connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:120: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:99: in handle_request ) = self._receive_response_headers(**kwargs) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:163: in _receive_response_headers event = self._receive_event(timeout=timeout) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:199: in _receive_event data = self._network_stream.read( /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:26: in read with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:14: ReadTimeout The above exception was the direct cause of the following exception: use_client = True @pytest.mark.parametrize("use_client", (True, False)) def test_throttle(use_client): status_code = 429 url = "http://{}/status/{}".format(BASE_URL, status_code) if use_client: with httpx.Client() as client: > response = client.head(url) tests/ext/httpx/test_httpx.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_client.py:1099: in head return self.request( /usr/lib/python3.11/site-packages/httpx/_client.py:814: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3.11/site-packages/httpx/_client.py:901: in send response = self._send_handling_auth( /usr/lib/python3.11/site-packages/httpx/_client.py:929: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.11/site-packages/httpx/_client.py:966: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3.11/site-packages/httpx/_client.py:1002: in _send_single_request response = transport.handle_request(request) aws_xray_sdk/ext/httpx/patch.py:46: in handle_request response = self._wrapped_transport.handle_request(request) /usr/lib/python3.11/site-packages/httpx/_transports/default.py:217: in handle_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: # noqa: PIE-786 mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpx/_transports/default.py:77: ReadTimeout _______________________________ test_fault[True] _______________________________ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = max_bytes = 65536, timeout = 5.0 def read(self, max_bytes: int, timeout: typing.Optional[float] = None) -> bytes: exc_map: ExceptionMapping = {socket.timeout: ReadTimeout, OSError: ReadError} with map_exceptions(exc_map): self._sock.settimeout(timeout) > return self._sock.recv(max_bytes) E TimeoutError: timed out /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:28: TimeoutError The above exception was the direct cause of the following exception: @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpx/_transports/default.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_transports/default.py:218: in handle_request resp = self._pool.handle_request(req) /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:261: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:245: in handle_request response = connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/connection.py:96: in handle_request return self._connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:120: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:99: in handle_request ) = self._receive_response_headers(**kwargs) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:163: in _receive_response_headers event = self._receive_event(timeout=timeout) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:199: in _receive_event data = self._network_stream.read( /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:26: in read with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:14: ReadTimeout The above exception was the direct cause of the following exception: use_client = True @pytest.mark.parametrize("use_client", (True, False)) def test_fault(use_client): status_code = 500 url = "http://{}/status/{}".format(BASE_URL, status_code) if use_client: with httpx.Client() as client: > response = client.put(url) tests/ext/httpx/test_httpx.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_client.py:1169: in put return self.request( /usr/lib/python3.11/site-packages/httpx/_client.py:814: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3.11/site-packages/httpx/_client.py:901: in send response = self._send_handling_auth( /usr/lib/python3.11/site-packages/httpx/_client.py:929: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.11/site-packages/httpx/_client.py:966: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3.11/site-packages/httpx/_client.py:1002: in _send_single_request response = transport.handle_request(request) aws_xray_sdk/ext/httpx/patch.py:46: in handle_request response = self._wrapped_transport.handle_request(request) /usr/lib/python3.11/site-packages/httpx/_transports/default.py:217: in handle_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: # noqa: PIE-786 mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpx/_transports/default.py:77: ReadTimeout ________________________ test_name_uses_hostname[False] ________________________ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = max_bytes = 65536, timeout = 5.0 def read(self, max_bytes: int, timeout: typing.Optional[float] = None) -> bytes: exc_map: ExceptionMapping = {socket.timeout: ReadTimeout, OSError: ReadError} with map_exceptions(exc_map): self._sock.settimeout(timeout) > return self._sock.recv(max_bytes) E TimeoutError: timed out /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:28: TimeoutError The above exception was the direct cause of the following exception: @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpx/_transports/default.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_transports/default.py:218: in handle_request resp = self._pool.handle_request(req) /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:261: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:245: in handle_request response = connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/connection.py:96: in handle_request return self._connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:120: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:99: in handle_request ) = self._receive_response_headers(**kwargs) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:163: in _receive_response_headers event = self._receive_event(timeout=timeout) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:199: in _receive_event data = self._network_stream.read( /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:26: in read with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:14: ReadTimeout The above exception was the direct cause of the following exception: use_client = False @pytest.mark.parametrize("use_client", (True, False)) def test_name_uses_hostname(use_client): if use_client: client = httpx.Client() else: client = httpx try: url1 = "http://{}/fakepath/stuff/koo/lai/ahh".format(BASE_URL) client.get(url1) subsegment = xray_recorder.current_segment().subsegments[-1] assert subsegment.namespace == "remote" assert subsegment.name == BASE_URL http_meta1 = subsegment.http assert http_meta1["request"]["url"] == strip_url(url1) assert http_meta1["request"]["method"].upper() == "GET" url2 = "http://{}/".format(BASE_URL) > client.get(url2, params={"some": "payload", "not": "toBeIncluded"}) tests/ext/httpx/test_httpx.py:176: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_api.py:189: in get return request( /usr/lib/python3.11/site-packages/httpx/_api.py:100: in request return client.request( /usr/lib/python3.11/site-packages/httpx/_client.py:814: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3.11/site-packages/httpx/_client.py:901: in send response = self._send_handling_auth( /usr/lib/python3.11/site-packages/httpx/_client.py:929: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.11/site-packages/httpx/_client.py:966: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3.11/site-packages/httpx/_client.py:1002: in _send_single_request response = transport.handle_request(request) aws_xray_sdk/ext/httpx/patch.py:46: in handle_request response = self._wrapped_transport.handle_request(request) /usr/lib/python3.11/site-packages/httpx/_transports/default.py:217: in handle_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: # noqa: PIE-786 mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpx/_transports/default.py:77: ReadTimeout __________________________ test_strip_http_url[False] __________________________ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = max_bytes = 65536, timeout = 5.0 def read(self, max_bytes: int, timeout: typing.Optional[float] = None) -> bytes: exc_map: ExceptionMapping = {socket.timeout: ReadTimeout, OSError: ReadError} with map_exceptions(exc_map): self._sock.settimeout(timeout) > return self._sock.recv(max_bytes) E TimeoutError: timed out /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:28: TimeoutError The above exception was the direct cause of the following exception: @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpx/_transports/default.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_transports/default.py:218: in handle_request resp = self._pool.handle_request(req) /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:261: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py:245: in handle_request response = connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/connection.py:96: in handle_request return self._connection.handle_request(request) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:120: in handle_request raise exc /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:99: in handle_request ) = self._receive_response_headers(**kwargs) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:163: in _receive_response_headers event = self._receive_event(timeout=timeout) /usr/lib/python3.11/site-packages/httpcore/_sync/http11.py:199: in _receive_event data = self._network_stream.read( /usr/lib/python3.11/site-packages/httpcore/backends/sync.py:26: in read with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:14: ReadTimeout The above exception was the direct cause of the following exception: use_client = False @pytest.mark.parametrize("use_client", (True, False)) def test_strip_http_url(use_client): status_code = 200 url = "http://{}/get?foo=bar".format(BASE_URL) if use_client: with httpx.Client() as client: response = client.get(url) else: > response = httpx.get(url) tests/ext/httpx/test_httpx.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_api.py:189: in get return request( /usr/lib/python3.11/site-packages/httpx/_api.py:100: in request return client.request( /usr/lib/python3.11/site-packages/httpx/_client.py:814: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3.11/site-packages/httpx/_client.py:901: in send response = self._send_handling_auth( /usr/lib/python3.11/site-packages/httpx/_client.py:929: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.11/site-packages/httpx/_client.py:966: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3.11/site-packages/httpx/_client.py:1002: in _send_single_request response = transport.handle_request(request) aws_xray_sdk/ext/httpx/patch.py:46: in handle_request response = self._wrapped_transport.handle_request(request) /usr/lib/python3.11/site-packages/httpx/_transports/default.py:217: in handle_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: # noqa: PIE-786 mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ReadTimeout: timed out /usr/lib/python3.11/site-packages/httpx/_transports/default.py:77: ReadTimeout ________________________________ test_ok_async _________________________________ self = max_bytes = 65536, timeout = 5.0 async def read( self, max_bytes: int, timeout: typing.Optional[float] = None ) -> bytes: exc_map = { TimeoutError: ReadTimeout, anyio.BrokenResourceError: ReadError, anyio.ClosedResourceError: ReadError, } with map_exceptions(exc_map): with anyio.fail_after(timeout): try: > return await self._stream.receive(max_bytes=max_bytes) /usr/lib/python3.11/site-packages/httpcore/backends/asyncio.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/anyio/_backends/_asyncio.py:1203: in receive await self._protocol.read_event.wait() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = async def wait(self): """Block until the internal flag is true. If the internal flag is true on entry, return True immediately. Otherwise, block until another coroutine calls set() to set the flag to true, then return True. """ if self._value: return True fut = self._get_loop().create_future() self._waiters.append(fut) try: > await fut E asyncio.exceptions.CancelledError /usr/lib/python3.11/asyncio/locks.py:213: CancelledError During handling of the above exception, another exception occurred: map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpcore/backends/asyncio.py:32: in read with anyio.fail_after(timeout): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc_type = exc_val = CancelledError(), exc_tb = def __exit__( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None, ) -> bool | None: retval = self._cancel_scope.__exit__(exc_type, exc_val, exc_tb) if self._cancel_scope.cancel_called: > raise TimeoutError E TimeoutError /usr/lib/python3.11/site-packages/anyio/_core/_tasks.py:119: TimeoutError The above exception was the direct cause of the following exception: @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpx/_transports/default.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_transports/default.py:353: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py:261: in handle_async_request raise exc /usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py:245: in handle_async_request response = await connection.handle_async_request(request) /usr/lib/python3.11/site-packages/httpcore/_async/connection.py:96: in handle_async_request return await self._connection.handle_async_request(request) /usr/lib/python3.11/site-packages/httpcore/_async/http11.py:120: in handle_async_request raise exc /usr/lib/python3.11/site-packages/httpcore/_async/http11.py:99: in handle_async_request ) = await self._receive_response_headers(**kwargs) /usr/lib/python3.11/site-packages/httpcore/_async/http11.py:163: in _receive_response_headers event = await self._receive_event(timeout=timeout) /usr/lib/python3.11/site-packages/httpcore/_async/http11.py:199: in _receive_event data = await self._network_stream.read( /usr/lib/python3.11/site-packages/httpcore/backends/asyncio.py:31: in read with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ReadTimeout /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:14: ReadTimeout The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_ok_async(): status_code = 200 url = "http://{}/status/{}?foo=bar".format(BASE_URL, status_code) async with httpx.AsyncClient() as client: > response = await client.get(url) tests/ext/httpx/test_httpx_async.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_client.py:1757: in get return await self.request( /usr/lib/python3.11/site-packages/httpx/_client.py:1530: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3.11/site-packages/httpx/_client.py:1617: in send response = await self._send_handling_auth( /usr/lib/python3.11/site-packages/httpx/_client.py:1645: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.11/site-packages/httpx/_client.py:1682: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3.11/site-packages/httpx/_client.py:1719: in _send_single_request response = await transport.handle_async_request(request) aws_xray_sdk/ext/httpx/patch.py:68: in handle_async_request response = await self._wrapped_transport.handle_async_request(request) /usr/lib/python3.11/site-packages/httpx/_transports/default.py:352: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: # noqa: PIE-786 mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ReadTimeout /usr/lib/python3.11/site-packages/httpx/_transports/default.py:77: ReadTimeout _______________________________ test_error_async _______________________________ self = max_bytes = 65536, timeout = 5.0 async def read( self, max_bytes: int, timeout: typing.Optional[float] = None ) -> bytes: exc_map = { TimeoutError: ReadTimeout, anyio.BrokenResourceError: ReadError, anyio.ClosedResourceError: ReadError, } with map_exceptions(exc_map): with anyio.fail_after(timeout): try: > return await self._stream.receive(max_bytes=max_bytes) /usr/lib/python3.11/site-packages/httpcore/backends/asyncio.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/anyio/_backends/_asyncio.py:1203: in receive await self._protocol.read_event.wait() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = async def wait(self): """Block until the internal flag is true. If the internal flag is true on entry, return True immediately. Otherwise, block until another coroutine calls set() to set the flag to true, then return True. """ if self._value: return True fut = self._get_loop().create_future() self._waiters.append(fut) try: > await fut E asyncio.exceptions.CancelledError /usr/lib/python3.11/asyncio/locks.py:213: CancelledError During handling of the above exception, another exception occurred: map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpcore/backends/asyncio.py:32: in read with anyio.fail_after(timeout): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc_type = exc_val = CancelledError(), exc_tb = def __exit__( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None, ) -> bool | None: retval = self._cancel_scope.__exit__(exc_type, exc_val, exc_tb) if self._cancel_scope.cancel_called: > raise TimeoutError E TimeoutError /usr/lib/python3.11/site-packages/anyio/_core/_tasks.py:119: TimeoutError The above exception was the direct cause of the following exception: @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpx/_transports/default.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_transports/default.py:353: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py:261: in handle_async_request raise exc /usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py:245: in handle_async_request response = await connection.handle_async_request(request) /usr/lib/python3.11/site-packages/httpcore/_async/connection.py:96: in handle_async_request return await self._connection.handle_async_request(request) /usr/lib/python3.11/site-packages/httpcore/_async/http11.py:120: in handle_async_request raise exc /usr/lib/python3.11/site-packages/httpcore/_async/http11.py:99: in handle_async_request ) = await self._receive_response_headers(**kwargs) /usr/lib/python3.11/site-packages/httpcore/_async/http11.py:163: in _receive_response_headers event = await self._receive_event(timeout=timeout) /usr/lib/python3.11/site-packages/httpcore/_async/http11.py:199: in _receive_event data = await self._network_stream.read( /usr/lib/python3.11/site-packages/httpcore/backends/asyncio.py:31: in read with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ReadTimeout /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:14: ReadTimeout The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_error_async(): status_code = 400 url = "http://{}/status/{}".format(BASE_URL, status_code) async with httpx.AsyncClient() as client: > response = await client.post(url) tests/ext/httpx/test_httpx_async.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_client.py:1848: in post return await self.request( /usr/lib/python3.11/site-packages/httpx/_client.py:1530: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3.11/site-packages/httpx/_client.py:1617: in send response = await self._send_handling_auth( /usr/lib/python3.11/site-packages/httpx/_client.py:1645: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.11/site-packages/httpx/_client.py:1682: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3.11/site-packages/httpx/_client.py:1719: in _send_single_request response = await transport.handle_async_request(request) aws_xray_sdk/ext/httpx/patch.py:68: in handle_async_request response = await self._wrapped_transport.handle_async_request(request) /usr/lib/python3.11/site-packages/httpx/_transports/default.py:352: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: # noqa: PIE-786 mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ReadTimeout /usr/lib/python3.11/site-packages/httpx/_transports/default.py:77: ReadTimeout _____________________________ test_throttle_async ______________________________ self = max_bytes = 65536, timeout = 5.0 async def read( self, max_bytes: int, timeout: typing.Optional[float] = None ) -> bytes: exc_map = { TimeoutError: ReadTimeout, anyio.BrokenResourceError: ReadError, anyio.ClosedResourceError: ReadError, } with map_exceptions(exc_map): with anyio.fail_after(timeout): try: > return await self._stream.receive(max_bytes=max_bytes) /usr/lib/python3.11/site-packages/httpcore/backends/asyncio.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/anyio/_backends/_asyncio.py:1203: in receive await self._protocol.read_event.wait() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = async def wait(self): """Block until the internal flag is true. If the internal flag is true on entry, return True immediately. Otherwise, block until another coroutine calls set() to set the flag to true, then return True. """ if self._value: return True fut = self._get_loop().create_future() self._waiters.append(fut) try: > await fut E asyncio.exceptions.CancelledError /usr/lib/python3.11/asyncio/locks.py:213: CancelledError During handling of the above exception, another exception occurred: map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:10: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpcore/backends/asyncio.py:32: in read with anyio.fail_after(timeout): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = exc_type = exc_val = CancelledError(), exc_tb = def __exit__( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None, ) -> bool | None: retval = self._cancel_scope.__exit__(exc_type, exc_val, exc_tb) if self._cancel_scope.cancel_called: > raise TimeoutError E TimeoutError /usr/lib/python3.11/site-packages/anyio/_core/_tasks.py:119: TimeoutError The above exception was the direct cause of the following exception: @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3.11/site-packages/httpx/_transports/default.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_transports/default.py:353: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py:261: in handle_async_request raise exc /usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py:245: in handle_async_request response = await connection.handle_async_request(request) /usr/lib/python3.11/site-packages/httpcore/_async/connection.py:96: in handle_async_request return await self._connection.handle_async_request(request) /usr/lib/python3.11/site-packages/httpcore/_async/http11.py:120: in handle_async_request raise exc /usr/lib/python3.11/site-packages/httpcore/_async/http11.py:99: in handle_async_request ) = await self._receive_response_headers(**kwargs) /usr/lib/python3.11/site-packages/httpcore/_async/http11.py:163: in _receive_response_headers event = await self._receive_event(timeout=timeout) /usr/lib/python3.11/site-packages/httpcore/_async/http11.py:199: in _receive_event data = await self._network_stream.read( /usr/lib/python3.11/site-packages/httpcore/backends/asyncio.py:31: in read with map_exceptions(exc_map): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ReadTimeout /usr/lib/python3.11/site-packages/httpcore/_exceptions.py:14: ReadTimeout The above exception was the direct cause of the following exception: @pytest.mark.asyncio async def test_throttle_async(): status_code = 429 url = "http://{}/status/{}".format(BASE_URL, status_code) async with httpx.AsyncClient() as client: > response = await client.head(url) tests/ext/httpx/test_httpx_async.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/httpx/_client.py:1815: in head return await self.request( /usr/lib/python3.11/site-packages/httpx/_client.py:1530: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3.11/site-packages/httpx/_client.py:1617: in send response = await self._send_handling_auth( /usr/lib/python3.11/site-packages/httpx/_client.py:1645: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3.11/site-packages/httpx/_client.py:1682: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3.11/site-packages/httpx/_client.py:1719: in _send_single_request response = await transport.handle_async_request(request) aws_xray_sdk/ext/httpx/patch.py:68: in handle_async_request response = await self._wrapped_transport.handle_async_request(request) /usr/lib/python3.11/site-packages/httpx/_transports/default.py:352: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.11/contextlib.py:155: in __exit__ self.gen.throw(typ, value, traceback) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: # noqa: PIE-786 mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ReadTimeout /usr/lib/python3.11/site-packages/httpx/_transports/default.py:77: ReadTimeout ___________________________________ test_ok ____________________________________ def test_ok(): status_code = 200 url = 'http://{}/status/{}?foo=bar'.format(BASE_URL, status_code) requests.get(url) subsegment = xray_recorder.current_segment().subsegments[0] assert get_hostname(url) == BASE_URL assert subsegment.name == get_hostname(url) http_meta = subsegment.http assert http_meta['request']['url'] == strip_url(url) assert http_meta['request']['method'].upper() == 'GET' > assert http_meta['response']['status'] == status_code E assert 504 == 200 tests/ext/requests/test_requests.py:41: AssertionError =============================== warnings summary =============================== tests/test_local_sampling_benchmark.py:3 /build/python-aws-xray-sdk/src/aws-xray-sdk-python/tests/test_local_sampling_benchmark.py:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import resource_filename ../../../../usr/lib/python3.11/site-packages/pkg_resources/__init__.py:2871 ../../../../usr/lib/python3.11/site-packages/pkg_resources/__init__.py:2871 /usr/lib/python3.11/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('testing')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) ../../../../usr/lib/python3.11/site-packages/pkg_resources/__init__.py:2871 /usr/lib/python3.11/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('testing.common')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) ../../../../usr/lib/python3.11/site-packages/pkg_resources/__init__.py:2350 /usr/lib/python3.11/site-packages/pkg_resources/__init__.py:2350: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('testing')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(parent) ../../../../usr/bin/bottle.py:38 /usr/bin/bottle.py:38: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 import base64, cgi, email.utils, functools, hmac, itertools, mimetypes,\ tests/ext/django/test_db.py:36 /build/python-aws-xray-sdk/src/aws-xray-sdk-python/tests/ext/django/test_db.py:36: PytestUnknownMarkWarning: Unknown pytest.mark.django_db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.django_db ../../../../usr/lib/python3.11/site-packages/django/conf/__init__.py:240 /usr/lib/python3.11/site-packages/django/conf/__init__.py:240: RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with Django 5.0, localized formatting of data will always be enabled. For example Django will display numbers and dates using the format of the current locale. warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning) ../../../../usr/lib/python3.11/site-packages/flask_sqlalchemy/__init__.py:14 ../../../../usr/lib/python3.11/site-packages/flask_sqlalchemy/__init__.py:14 /usr/lib/python3.11/site-packages/flask_sqlalchemy/__init__.py:14: DeprecationWarning: '_app_ctx_stack' is deprecated and will be removed in Flask 2.3. from flask import _app_ctx_stack, abort, current_app, request tests/ext/flask_sqlalchemy/test_query.py::test_all[False] tests/ext/flask_sqlalchemy/test_query.py::test_all[True] /build/python-aws-xray-sdk/src/aws-xray-sdk-python/aws_xray_sdk/ext/flask_sqlalchemy/query.py:45: SADeprecationWarning: Use .persist_selectable (deprecated since: 1.3) info = getattr(mapper.mapped_table, 'info', {}) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html --------------------------------------------------------------------------------------------- benchmark: 2 tests -------------------------------------------------------------------------------------------- Name (time in us) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- test_pkgutil_static_read 169.8020 (1.0) 280.9700 (1.0) 179.5363 (1.0) 9.6650 (1.0) 175.1700 (1.0) 7.2938 (1.0) 294;173 5.5699 (1.0) 1847 1 test_pkg_resources_static_read 279.1490 (1.64) 373.8520 (1.33) 290.5012 (1.62) 10.9865 (1.14) 284.9175 (1.63) 15.8820 (2.18) 254;28 3.4423 (0.62) 1802 1 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Legend: Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile. OPS: Operations Per Second, computed as 1 / Mean =========================== short test summary info ============================ FAILED tests/ext/httplib/test_httplib.py::test_throttle - AttributeError: 'Su... FAILED tests/ext/httpx/test_httpx.py::test_ok[True] - httpx.ReadTimeout: time... FAILED tests/ext/httpx/test_httpx.py::test_ok[False] - httpx.ReadTimeout: tim... FAILED tests/ext/httpx/test_httpx.py::test_error[False] - httpx.ReadTimeout: ... FAILED tests/ext/httpx/test_httpx.py::test_throttle[True] - httpx.ReadTimeout... FAILED tests/ext/httpx/test_httpx.py::test_fault[True] - httpx.ReadTimeout: t... FAILED tests/ext/httpx/test_httpx.py::test_name_uses_hostname[False] - httpx.... FAILED tests/ext/httpx/test_httpx.py::test_strip_http_url[False] - httpx.Read... FAILED tests/ext/httpx/test_httpx_async.py::test_ok_async - httpx.ReadTimeout FAILED tests/ext/httpx/test_httpx_async.py::test_error_async - httpx.ReadTimeout FAILED tests/ext/httpx/test_httpx_async.py::test_throttle_async - httpx.ReadT... FAILED tests/ext/requests/test_requests.py::test_ok - assert 504 == 200 =========== 12 failed, 266 passed, 12 warnings in 396.42s (0:06:36) ============ Exception during reset or similar Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 757, in _finalize_fairy fairy._reset(pool, transaction_was_reset) File "/usr/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 1016, in _reset pool._dialect.do_rollback(self) File "/usr/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 683, in do_rollback dbapi_connection.rollback() psycopg2.OperationalError: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root1/build receiving incremental file list python-aws-xray-sdk-2.12.0-3-riscv64-build.log python-aws-xray-sdk-2.12.0-3-riscv64-check.log python-aws-xray-sdk-2.12.0-3-riscv64-pkgver.log python-aws-xray-sdk-2.12.0-3-riscv64-prepare.log sent 100 bytes received 11,555 bytes 4,662.00 bytes/sec total size is 109,428 speedup is 9.39