rate-limiting feinschliff: 429-retry, API-call reduction, auto-route detection

AUFGABE 1 — test_03 API-calls reduzieren:
- Skip get_latest_timestamp on source room; use post_message's returned ts as cursor (saves 1 channels.history call)
- Source polling: initial_interval=5s (was 2s), timeout=30s (was 25s)
- Target polling: timeout=60s (was 25s), initial_interval=8s (was 2s)
- post_message() now returns (msg_id, ts) tuple — all call sites updated

AUFGABE 2 — 429-retry strategy verbessern:
- rc_rest.py: 5 retries with 3s/6s/12s/20s/30s backoff (was 3 retries 3s/6s/12s)
- polling.py: 5 consecutive 429s before RateLimitSkip (was 3)
- polling.py: 429 backoff max 30s (was 24s)

AUFGABE 3 — rate-limit-cooldown erhöhen:
- conftest.py: 20s between tests (was 15s)

AUFGABE 4 — test_03 auto-route robustness:
- Detect auto-route (wechseln/sehe dich/thema) vs button-move-request (kopieren/rüber/attachments)
- Auto-route: pytest.skip with reason, no button click, no target verification
- Button-request: proceed with existing button-click + target-verification flow
This commit is contained in:
Bernd (Hermes)
2026-07-28 18:34:07 +02:00
parent 57ebbc6d6b
commit aa37de3e6e
7 changed files with 106 additions and 52 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ def test_04_multi_room(
main_cursor = get_latest_timestamp(rc_client, test_room_id, rate_limiter=rate_limiter)
logger.info("Test 04: main room cursor = %s", main_cursor[:19])
msg_id = post_test_message(
msg_id, _ = post_test_message(
rc_client, test_room_id, keyword_text,
posted_ids_main, rate_limiter,
)