Skip to content

Thread --timeout through microblog deploy poll loop - #30

Open
superterran wants to merge 1 commit into
mainfrom
fix/microblog-deploy-timeout-plumbing
Open

Thread --timeout through microblog deploy poll loop#30
superterran wants to merge 1 commit into
mainfrom
fix/microblog-deploy-timeout-plumbing

Conversation

@superterran

Copy link
Copy Markdown
Contributor

Summary

  • Every recent "Deploy to Micro.blog" run (all 5 most-recent runs on main) has ended in failure with the same tail: Timeout reached (60s) after 12 polls in poll_check_endpoint, then exit 1.
  • Root cause is a plumbing bug, not a real deploy failure. deploy.yml calls the script with --all --timeout 120, but deploy() (line 261) never accepted a timeout kwarg, so the --all code path called poll_check_endpoint() with its default 60s regardless. The CLI flag was silently ignored.
  • Fix: add a monitor_timeout kwarg to deploy(), pass args.timeout in from main(), and hand it to poll_check_endpoint(timeout=...). No workflow changes needed — the workflow already passes --timeout 120.
  • Detected by the nightly GH failure sweep (Hobbs).

Test plan

  • After merge, watch the next scheduled Deploy to Micro.blog run.
  • Confirm the log shows (Timeout: 120s, interval: 5s) instead of 60s.
  • Confirm the run finishes green (or, if it still fails, that the tail is a different, real error).

The deploy workflow calls `microblog_deploy.py --all --timeout 120`,
but `--all` routed through `deploy()`, which never accepted a timeout
parameter and always called `poll_check_endpoint()` with its default
60s. The CLI flag was silently ignored, so every recent scheduled and
push deploy has hit the 60s poll cap and finished as a failure even
when the Hugo build eventually completed on Micro.blog's side.

Plumb `monitor_timeout` from `main()` -> `deploy()` -> `poll_check_endpoint()`
so `--timeout 120` (or any override) actually reaches the poll loop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant