Skip to content

ReBenchDB.send_results() is expected to return only a bool#298

Merged
smarr merged 2 commits into
masterfrom
fix-result-of-sending-to-rebenchdb
Jul 3, 2026
Merged

ReBenchDB.send_results() is expected to return only a bool#298
smarr merged 2 commits into
masterfrom
fix-result-of-sending-to-rebenchdb

Conversation

@smarr

@smarr smarr commented Jul 3, 2026

Copy link
Copy Markdown
Owner

We were returning a tuple of bool and string, and checked for true, which would always be true instead of actually looking at the success flag.

This now returns only the flag, which is the right bool to check.

In addition, we change the backoff behavior when sending data fails.
We cap the backoff at 5min, and will try up to 10 times.

@smarr smarr added the bug label Jul 3, 2026
@smarr smarr force-pushed the fix-result-of-sending-to-rebenchdb branch from 2758580 to 67cc33b Compare July 3, 2026 13:08
@coveralls

coveralls commented Jul 3, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 85.04% (+0.05%) from 84.992% — fix-result-of-sending-to-rebenchdb into master

smarr added 2 commits July 3, 2026 15:21
Signed-off-by: Stefan Marr <git@stefan-marr.de>
After the time out is at 5min, cap it here. Wait 10 times but do a exponential backoff only until we reach a 5min wait time.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
@smarr smarr force-pushed the fix-result-of-sending-to-rebenchdb branch from ec202dd to afb43ec Compare July 3, 2026 13:23
@smarr smarr merged commit 5235a8b into master Jul 3, 2026
14 checks passed
@smarr smarr deleted the fix-result-of-sending-to-rebenchdb branch July 3, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants