Commit 1a86aa8
authored
Add retry to manage group members in oss fuzz cc groups (google#5205)
The fix from google#5195 was not
enough to fix the permission denied errors the cronjob is hitting, as
seen by logs: https://cloudlogging.app.goo.gl/A5TjUfxFoJRbtuLx7
As these errors do not really seem an access/credentials issue, since
the SA is the owner of all groups it tries to manage, it could
potentially be an issue with the cloud identity API rate limit. So, this
PR is another tentative to mitigate these errors by wrapping the API
calls to add/remove members with a retry logic, which delays the calls
and adds exponential backoff.
Context: b/4779641281 parent ed2c78e commit 1a86aa8
1 file changed
Lines changed: 26 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
50 | 73 | | |
51 | 74 | | |
52 | 75 | | |
| |||
89 | 112 | | |
90 | 113 | | |
91 | 114 | | |
92 | | - | |
| 115 | + | |
93 | 116 | | |
94 | 117 | | |
95 | 118 | | |
96 | 119 | | |
97 | 120 | | |
98 | | - | |
99 | | - | |
100 | | - | |
| 121 | + | |
| 122 | + | |
101 | 123 | | |
102 | 124 | | |
103 | 125 | | |
| |||
0 commit comments