Skip to content

Conversation

SAKURA-CAT
Copy link
Member

Raised the total HTTP retry attempts from 3 to 10 and increased the backoff factor to 0.5 in the Client class. Updated the corresponding unit test to match the new retry logic and simplified response assertions.

for: #1252

Raised the total HTTP retry attempts from 3 to 10 and increased the backoff factor to 0.5 in the Client class. Updated the corresponding unit test to match the new retry logic and simplified response assertions.
@SAKURA-CAT SAKURA-CAT requested a review from Zeyi-Lin September 9, 2025 05:50
@SAKURA-CAT SAKURA-CAT self-assigned this Sep 9, 2025
@SAKURA-CAT SAKURA-CAT added the 🐛 bug Something isn't working label Sep 9, 2025
Moved session creation with retry mechanism to a new create_session utility in swanlab/core_python/session.py. Updated client and auth modules to use this shared session logic. Added unit tests for session retry behavior and removed redundant retry test from test_client.py.
Moved session creation logic with retry and custom headers to a shared create_session function in swanlab.core_python.session. Updated ApiHTTP to use this function. Added unit tests to verify session headers and header merging behavior.
@SAKURA-CAT SAKURA-CAT merged commit 70ccf47 into main Sep 9, 2025
5 checks passed
@SAKURA-CAT SAKURA-CAT deleted the fix/retry branch September 9, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants