Skip to content

test: fuzz UruncConfigFromMap - #1207

Open
pocopepe wants to merge 1 commit into
urunc-dev:mainfrom
pocopepe:fuzz-config
Open

pocopepe wants to merge 1 commit into
urunc-dev:mainfrom
pocopepe:fuzz-config

Conversation

@pocopepe

Copy link
Copy Markdown
Contributor

Description

This adds a fuzz target for UruncConfigFromMap, which rebuilds the urunc config from the annotations saved in state.json. It takes a JSON map as one []byte and checks that every field an entry names holds its value, that unnamed defaults are kept, and that Map() and back gives the same config.

The seeds use plain f.Add until #1195 is merged, then I'll switch them to fuzzseed.Add so it reaches cfl corpus

Related issues

Ref #852

How was this tested?

Tested with a local run of cfl to mimic the ci. Also ran make fuzz FUZZTIME=30s just to double check everything.

LLM usage

Opus 5.5

Checklist

  • I have read the contribution guide.
  • The linter passes locally (make lint).
  • The e2e tests of at least one tool pass locally (make test_ctr, make test_nerdctl, make test_docker, make test_crictl).
  • If LLMs were used: I have read the llm policy.

ref urunc-dev#852

Signed-off-by: viju <avijusanjai@gmail.com>
@netlify

netlify Bot commented Nov 16, 2026

Copy link
Copy Markdown

👷 Deploy request for urunc pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 49fde96

This branch has not been deployed

No deployments
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.

1 participant