GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(farm): stop the containers gracefully, appium and the uploader first by azarouski · Pull Request #489 · zebrunner/mcloud-agent

Conversation

@azarouski

@azarouski azarouski commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #488

  • zebrunner-farm stop, restart, down: the containers of a device are stopped in the order appium (docker stop -t 40: it finishes the recordings of the active sessions), uploader (-t 130: its FINISH_TIMEOUT is 120 s), stf (-t 30), connector (-t 10), instead of connector first with the default 10 s.
  • restart and down: every container is stopped that way before its docker rm -f; the volume of the logs is removed after all of them, when the uploader has exited (it was removed after SIGKILL of all the containers).
  • The macOS devices listener waits for zebrunner-farm restart/down 30 min as mcloud-device-restart@ of Linux (it killed them after 100 s, a graceful stop with uploads takes longer).
  • README (Devices management), golden files regenerated.

Verified:

  • make lint test on Linux (build host): pass; tests/listener_test.sh on macOS: pass.
  • The new checks fail without the fix (only zebrunner-farm and the listener reverted): the stop order and timeouts, the stop before the removal and the volume last, the listener timeout equal to the restart unit.

Not verified: a real stop with a recording in progress (needs a device); the timeouts follow the code of appium (stopFfmpeg: 30 s) and artifacts-uploader (FINISH_TIMEOUT=120).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@azarouski
fix(farm): stop the containers gracefully, appium and the uploader first
137b12e
Fixes #488

Co-authored-by: Copilot <[email protected]>
This was referenced Nov 13, 2026
fix(farm): pass the STF API and the location to appium of both platforms, drop the unused variables #491
Merged
fix(farm): lock every device of a group, not only a single device #494
Merged
fix(entrypoint): stop at once on SIGTERM before the start of STF zebrunner/mcloud-device#239
Merged
feat(ios): clone the Developer Disk Images and mount them into the connectors #500
Merged
@azarouski
azarouski merged commit fc3452d into develop Nov 16, 2026
4 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@azarouski
azarouski deleted the fix-graceful-stop branch November 16, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

zebrunner-farm restart and down kill the containers and lose the pending videos and logs

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@azarouski
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.