Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stress-test: OCI Artifact support fails due to missiing rootfs in image configuration #854

Open
Mossaka opened this issue Feb 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Mossaka
Copy link
Member

Mossaka commented Feb 14, 2025

The stress test tool currently fails when trying to test with OCI artifacts such as ghcr.io/conta inerd/runwasi/wasi-demo-oci-artifact:latest due to an assumption about the image configuration format.

It failed with

Error: serde failed

Caused by:
    missing field `rootfs` at line 10 column 1

The image_config() implementation in client.rs attempts to parse all the images using ImageConfiguration which expects a standard container image with a rootfs field.

However, OCI Artifacts have a different configuration format. See https://tag-runtime.cncf.io/wgs/wasm/deliverables/wasm-oci-artifact/

Suggested solutions

  1. Detect if the target is an OCI artifact and use the appropriate parsing
@Mossaka Mossaka added the bug Something isn't working label Feb 16, 2025
Mossaka added a commit to Mossaka/runwasi that referenced this issue Feb 18, 2025
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant