Skip to content

Introduce fuzz and snapshot tests for tag parsing #21

@CasperKristiansson

Description

@CasperKristiansson

Summary

Bolster the tag parser with fuzz testing and snapshot coverage across all supported file types to prevent regressions like the AWS Lambda image rewrite bug.

Why

Tag parsing mistakes are high-impact. Fuzzing and exhaustive snapshots reduce the chance of subtle errors slipping through when adding new grammars or registries.

What needs to happen

  • Add fuzz tests (e.g. using fast-check or similar) targeting Docker tag parsing and version detection utilities.
  • Create snapshot tests for each supported file type, verifying both positive matches and skip cases.
  • Integrate the fuzz run into CI with sensible runtime limits.
  • Document how to run the fuzz tests locally.

References

Acceptance criteria

  • Fuzz tests run in CI and catch malformed tag handling.
  • Snapshot fixtures cover existing and newly-supported file types.
  • Documentation explains the test strategy and how to execute it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions