Skip to content

Error Report: func list Command Testing (LFX Mentorship) #3231

@RayyanSeliya

Description

@RayyanSeliya

Summary

Comprehensive testing of the func list command identified 3+ critical issues related to output format validation, with the primary concern being application panics where invalid, case-sensitive, or empty output format values cause the application to crash with stack traces instead of returning user-friendly error messages. Key findings include the critical bug where unsupported format values like wide cause panics instead of graceful error handling; case-sensitive format validation where uppercase variations like JSON and YAML cause panics instead of either accepting case-insensitive input or providing clear error messages; and missing pre-validation where empty strings and invalid format values are not validated before being passed to the output formatter, resulting in application crashes. All format-related errors expose internal stack traces to users and fail to provide actionable guidance on valid format options, making the command unreliable and user-hostile when format values are incorrect.

Full Detailed Report: Link to Google Docs - https://docs.google.com/document/d/1qyHU5ufKDWZEh40ofWRxA6qdnIzw7ImEV4EYHbN7Zk0/edit?usp=sharing

Resolved Issues

The following issues have been marked as resolved in the detailed report:

(No issues marked as resolved yet)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions