Skip to content

Fix supervisor takeover script#106

Open
pipex wants to merge 2 commits intomainfrom
takeover-old-os
Open

Fix supervisor takeover script#106
pipex wants to merge 2 commits intomainfrom
takeover-old-os

Conversation

@pipex
Copy link
Copy Markdown
Contributor

@pipex pipex commented Apr 17, 2026

It was failing with older OS versions that still use resin_supervisor as a container. The script was not falling back to resin_supervisor when inspecting the containe

Includes a fix for a flaky test without which the PR cannot be merged

Change-type: patch

pipex added 2 commits April 17, 2026 15:24
It was failing with older OS versions that still use resin_supervisor as
a container. The script was not falling back to `resin_supervisor` when
inspecting the container

Change-type: patch
Ordering of results seems to be system dependent, so we sort entries
before comparing.
@flowzone-app flowzone-app bot enabled auto-merge April 17, 2026 20:03
@pipex pipex requested a review from kb2ma April 17, 2026 20:30
Copy link
Copy Markdown

@kb2ma kb2ma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, how is the test fix related to this PR?


find_docker_image() {
docker inspect "$1" 2>/dev/null | jq -r '.[].Image'
img=$(docker inspect "$1" 2>/dev/null | jq -r '.[].Image')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the binary named "docker" instead of "balena" if it runs on a device?

Copy link
Copy Markdown
Contributor Author

@pipex pipex Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because it uses the docker CLI from within the helios container

@pipex
Copy link
Copy Markdown
Contributor Author

pipex commented Apr 18, 2026

Also, how is the test fix related to this PR?

It's not, but without the fix tests were not passing

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.

2 participants