Skip to content

name sidecar volumes based on image hash instead of tag#15

Merged
acarl005 merged 1 commit intomainfrom
andy/fix-sidecar-volume-naming
Feb 4, 2026
Merged

name sidecar volumes based on image hash instead of tag#15
acarl005 merged 1 commit intomainfrom
andy/fix-sidecar-volume-naming

Conversation

@acarl005
Copy link
Copy Markdown
Collaborator

@acarl005 acarl005 commented Feb 3, 2026

This PR fixes an issue where a stale version of the Warp CLI would run.

We don't have the Namespace concept of a "sidecar volume" in the self-hosted workers. Instead, we need to manually build a volume from the sidecar container's filesystem and mount that into each task's container. That's a lot of work, so we try to only build that volume when it is actually necessary. Before building it, we use VolumeInspect to check if the volume exists and if not, call VolumeCreate. How effective this is depends on the naming scheme for the volume.

Unfortunately, the naming was off. I named it based on the image name + tag (e.g. warpdotdev-warp-agent-latest-dev). When we update a tag, it would not realize that the volume needs to be updated. In this PR, I change the naming scheme to be based on the has which fixes the issue (e.g. warpdotdev-warp-agent-5b7279537a55).

@acarl005 acarl005 requested a review from bnavetta February 3, 2026 23:15
@acarl005 acarl005 merged commit 57c2fb9 into main Feb 4, 2026
@acarl005 acarl005 deleted the andy/fix-sidecar-volume-naming branch February 9, 2026 18:27
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