Repository navigation
Unify requests to cidb, sleep on errors - #115436
Conversation
|
Workflow [PR], commit [0e12cc5] Summary: ✅ AI ReviewSummaryThis PR factors CIDB POST handling into Findings
Tests
Final VerdictChanges required before merge. |
3a9549f to
4a8f10d
Compare
4a8f10d to
c3681ac
Compare
c3681ac to
0e12cc5
Compare
| ) | ||
|
|
||
| return False, error | ||
| if not payload == 1: |
There was a problem hiding this comment.
CIDB.check used to retry the whole smoke-test validation loop, so even a transient 200 OK response with the wrong JSON payload got another attempt. After moving the payload == 1 check below _post_with_retries, that class of error now returns False immediately instead of backing off and retrying. With mocked responses [0, 1], the current code makes one request and fails, while the previous loop would succeed on the second attempt. Because _check_db gates workflow generation, a temporary proxy/auth JSON payload can still abort the run too quickly unless this validation stays inside the retry loop or _post_with_retries grows a response validator.
There was a problem hiding this comment.
we don't have any proxy there
Sounds safe enough
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Compile time of recompiled translation units13 translation units recompiled, 62 s compile time in total, 13 of them have a recent master baseline. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Sleep progressively on errors in requests to CIDB; address issues with too-quick failures.
Example
See the timestamps.
Workflow [PR]
Sync PR [sync-upstream/pr/115436]
Version info
26.8.1.1766(included in26.8and later)