Skip to content

fix: podman create requires dummy command for static plugin images#2551

Merged
gashcrumb merged 1 commit into
redhat-developer:mainfrom
gustavolira:fix/instrument-plugin-podman-create
Jun 3, 2026
Merged

fix: podman create requires dummy command for static plugin images#2551
gashcrumb merged 1 commit into
redhat-developer:mainfrom
gustavolira:fix/instrument-plugin-podman-create

Conversation

@gustavolira

Copy link
Copy Markdown
Member

Problem

The instrument job introduced in #2383 fails when creating containers from plugin OCI images:

Error: no command or entrypoint provided, and no CMD or ENTRYPOINT from image
Process completed with exit code 125.

Plugin images are static file bundles (contain only JS/CSS assets, no executable). They have no CMD or ENTRYPOINT defined. Running podman create without a command argument fails.

Fix

Pass /bin/true as a dummy command:

CID=$(podman create "$PROD_IMAGE" /bin/true)

The container is never actually run - it's only created so we can extract files with podman cp. The dummy command satisfies podman's requirement.

Testing

Validated fix against the failed run:

After merge, will re-run /publish on #2550 to validate end-to-end coverage collection.

Impact

Without this fix, all coverage collection is broken - the instrument job fails immediately for every workspace.

Plugin OCI images are static file bundles with no CMD or ENTRYPOINT.
Running 'podman create' without a command argument fails with:
  Error: no command or entrypoint provided, and no CMD or ENTRYPOINT from image

Fix: Pass /bin/true as a dummy command. The container is never run,
just created so we can extract files with podman cp.

Fixes instrumentation job failure on PR redhat-developer#2550.
Ref: https://github.com/redhat-developer/rhdh-plugin-export-overlays/actions/runs/26902663501
@gustavolira gustavolira requested review from a team, gashcrumb and kadel as code owners June 3, 2026 18:04
@sonarqubecloud

sonarqubecloud Bot commented Jun 3, 2026

Copy link
Copy Markdown

@openshift-ci openshift-ci Bot added the lgtm label Jun 3, 2026
@gashcrumb gashcrumb merged commit f2928a5 into redhat-developer:main Jun 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants