fix: add timeout and retries to Play Store upload (#185) #195

Merged
guettlibot merged 0 commits from issue-185-fix into main 2026-05-24 02:45:10 +00:00
guettlibot commented 2026-05-24 02:39:02 +00:00 (Migrated from codeberg.org)

Summary

  • Replace requests/AuthorizedSession with googleapiclient.discovery + google_auth_httplib2.AuthorizedHttp(timeout=300) to enforce a hard socket timeout on all API calls
  • Add num_retries=3 to every .execute() call (edits insert, bundle upload, track update, commit) for automatic retry on transient failures
  • Update flake.nix and ci/main.go to depend on google-api-python-client, google-auth-httplib2, httplib2 instead of google-auth + requests
  • Add scripts/test_deploy_playstore.py with unit tests covering the timeout configuration and num_retries usage

Test plan

  • scripts/test_deploy_playstore.py — 7 unit tests all pass locally
  • CI full check suite passes

Closes #185

🤖 Generated with Claude Code

## Summary - Replace `requests`/`AuthorizedSession` with `googleapiclient.discovery` + `google_auth_httplib2.AuthorizedHttp(timeout=300)` to enforce a hard socket timeout on all API calls - Add `num_retries=3` to every `.execute()` call (edits insert, bundle upload, track update, commit) for automatic retry on transient failures - Update `flake.nix` and `ci/main.go` to depend on `google-api-python-client`, `google-auth-httplib2`, `httplib2` instead of `google-auth` + `requests` - Add `scripts/test_deploy_playstore.py` with unit tests covering the timeout configuration and num_retries usage ## Test plan - [x] `scripts/test_deploy_playstore.py` — 7 unit tests all pass locally - [ ] CI full check suite passes Closes #185 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.