Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gmail Search all mailboxes: retry mechanism for first time #36615

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

rshunim
Copy link
Contributor

@rshunim rshunim commented Oct 6, 2024

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: https://jira-dc.paloaltonetworks.com/browse/XSUP-42246

Description

Adding retry mechanism for search command since the resources are limited (just in case of 500 status_code error)

Must have

  • Tests
  • Documentation

@rshunim rshunim self-assigned this Oct 6, 2024
Packs/Gmail/Integrations/Gmail/Gmail.py Outdated Show resolved Hide resolved
Packs/Gmail/Integrations/Gmail/Gmail.py Outdated Show resolved Hide resolved
Packs/Gmail/Integrations/Gmail/Gmail.yml Outdated Show resolved Hide resolved
@dorschw dorschw changed the title add retry mechanism - Search all mailboxes - Gmail Gmail Search all mailboxes: retry mechanism for first time Oct 6, 2024
Copy link

github-actions bot commented Oct 6, 2024

Coverage

Coverage Report
FileStmtsMissCoverMissing
Packs/Gmail/Integrations/Gmail
   Gmail.py131779639%62–64, 67–70, 73–74, 77–80, 83–86, 89–90, 93–95, 97–98, 101, 105–112, 117–125, 131, 146–150, 152–156, 160–165, 253, 261, 299, 345, 351, 415–419, 447, 478, 482, 495, 508, 552–554, 557, 560–562, 564, 608, 819–825, 829–830, 832–835, 837, 841–842, 844, 848, 850–854, 865–867, 874, 881–887, 892–895, 897, 899–900, 902–906, 908–912, 914, 918–921, 923–925, 927, 937–946, 948, 950, 952, 956–959, 964, 975–976, 978–980, 984–988, 990–991, 995, 1000–1001, 1003–1004, 1006, 1010–1013, 1015, 1019, 1025, 1027, 1029, 1033–1037, 1041, 1047, 1049, 1051, 1055–1056, 1058, 1060, 1064, 1068, 1073–1074, 1078, 1080–1094, 1096, 1099, 1104, 1115–1116, 1118, 1120–1121, 1125–1128, 1132–1135, 1139, 1141–1142, 1149–1150, 1153, 1158–1159, 1163–1167, 1169–1170, 1172–1173, 1177, 1187, 1191, 1193, 1197–1198, 1200, 1204, 1208, 1212, 1214, 1218, 1223–1225, 1229–1231, 1233–1234, 1236–1237, 1241, 1246, 1251, 1253, 1255, 1259, 1264, 1270, 1274–1276, 1278–1279, 1281–1282, 1286, 1288–1289, 1291–1292, 1296, 1301–1302, 1304, 1308, 1312–1314, 1316, 1318, 1322, 1326, 1330, 1332, 1343–1347, 1350–1352, 1354–1357, 1361–1364, 1366–1368, 1371–1372, 1375, 1378–1381, 1388, 1391–1393, 1398–1399, 1407, 1409–1417, 1419–1426, 1429–1430, 1432–1433, 1438–1439, 1441–1443, 1448, 1450, 1452, 1455–1462, 1468, 1478, 1480, 1482, 1490, 1496–1500, 1502, 1505–1506, 1508, 1513, 1517–1521, 1523–1529, 1533, 1538–1539, 1544, 1546, 1550–1552, 1554, 1556, 1560, 1565, 1570–1571, 1573, 1577–1583, 1587–1591, 1594–1595, 1599, 1608, 1613, 1615, 1619–1622, 1624, 1626–1627, 1632, 1635, 1641, 1646, 1649, 1651, 1655–1658, 1660, 1664, 1669, 1675–1677, 1679–1680, 1684, 1686–1688, 1690, 1692, 1696, 1702, 1707, 1709, 1713, 1715–1717, 1719, 1721, 1725, 1727–1740, 1742, 1755, 1760, 1768–1787, 1789, 1794, 1796, 1800, 1802–1805, 1807, 1812, 1816, 1819, 1824–1827, 1829, 1833, 1835–1838, 1840–1841, 1843, 1847, 1852, 1857, 1859, 1869–1870, 1890–1891, 1898–1899, 1904, 1908–1909, 1911–1912, 1914–1915, 1917–1920, 1922–1924, 1926, 1928, 1936, 1978–1982, 1984–1987, 1989–1991, 1993, 2002–2003, 2007–2009, 2011–2015, 2017–2019, 2021–2022, 2024, 2032, 2039–2046, 2049, 2051–2053, 2055, 2057–2060, 2068–2069, 2076–2081, 2084–2085, 2087–2093, 2096–2097, 2099–2103, 2106–2107, 2109–2113, 2115–2116, 2119–2123, 2126–2127, 2134–2138, 2143, 2146, 2152–2155, 2174, 2176, 2180–2181, 2183–2188, 2192–2194, 2196–2198, 2200–2201, 2204–2206, 2223–2224, 2228–2248, 2250, 2253, 2255, 2257–2258, 2263–2264, 2268–2270, 2272, 2285–2289, 2294–2300, 2324–2325, 2337, 2356–2359, 2364, 2368–2373, 2375, 2401–2402, 2416, 2435–2436, 2438, 2441, 2443, 2445–2449, 2451, 2456–2458, 2460–2461, 2463, 2465, 2470, 2497, 2505–2506, 2541, 2546–2547, 2574–2575, 2583–2584, 2631–2632, 2636, 2650, 2662–2664, 2669–2671, 2680, 2693–2694
TOTAL131779639% 

Tests Skipped Failures Errors Time
150 0 💤 0 ❌ 0 🔥 8.628s ⏱️

@rshunim rshunim marked this pull request as ready for review October 7, 2024 08:49
@rshunim
Copy link
Contributor Author

rshunim commented Oct 7, 2024

@israelpoli please have a look and comment if needed

@rshunim rshunim requested a review from dorschw October 7, 2024 09:20
@content-bot
Copy link
Collaborator

This PR was automatically updated by a GitHub Action

  • Gmail pack version was bumped to 1.3.26.

To stop automatic version bumps, add the ignore-auto-bump-version label to the github PR.

@content-bot
Copy link
Collaborator

This PR was automatically updated by a GitHub Action

  • Gmail pack version was bumped to 1.3.27.

To stop automatic version bumps, add the ignore-auto-bump-version label to the github PR.

@content-bot
Copy link
Collaborator

This PR was automatically updated by a GitHub Action

  • Gmail pack version was bumped to 1.3.28.

To stop automatic version bumps, add the ignore-auto-bump-version label to the github PR.

@content-bot
Copy link
Collaborator

This PR was automatically updated by a GitHub Action

  • Gmail pack version was bumped to 1.3.29.

To stop automatic version bumps, add the ignore-auto-bump-version label to the github PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants