Skip to content

🌱 Implement image-url-command v2#2025

Open
guettli wants to merge 7 commits into
mainfrom
tg/img-url-cmd-via-go
Open

🌱 Implement image-url-command v2#2025
guettli wants to merge 7 commits into
mainfrom
tg/img-url-cmd-via-go

Conversation

@guettli
Copy link
Copy Markdown
Collaborator

@guettli guettli commented May 21, 2026

Image URL Command v2: Better feedback from image-url-command to caph.

btw, I use ./hack/update-operator-dev-deployment.sh to update the cluster. This installs the caph image from current code and updates the CRDs.

@github-actions github-actions Bot added size/L Denotes a PR that changes 200-800 lines, ignoring generated files. area/code Changes made in the code directory area/api Changes made in the api directory labels May 21, 2026
guettli and others added 6 commits May 21, 2026 13:23
Fix gci import alignment and return err instead of nil in StateOfImageURLCommandV2 error path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add top-level Status field to ImageURLCommandOutputV2. StateOfImageURLCommandV2
now treats a missing or unparseable Status as "not done yet" (requeue) instead
of failing immediately — the binary writes output.json atomically so the file
is either complete with a valid status or absent. Also pass --api-version flag
to the binary via StartImageURLCommand's new apiVersion parameter.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…t.json

When the process is gone (ps check fails) but output.json is missing or
incomplete, return ImageURLCommandStateFailed right away instead of
ImageURLCommandStateRunning. This prevents waiting up to 7 minutes for the
timeout to fire when the binary crashed before writing its output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Uses an in-process fake SSH server so the tests run without any external
infrastructure. The two new failure-path tests would have caught the bug
fixed in the previous commit: when the process has exited but output.json
is missing or has no Status field, the old code returned
ImageURLCommandStateRunning (waiting for the 7-minute timeout) instead of
ImageURLCommandStateFailed (immediate termination).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the area/hack Changes made in the hack directory label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api Changes made in the api directory area/code Changes made in the code directory area/hack Changes made in the hack directory size/L Denotes a PR that changes 200-800 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant