Skip to content

Error Report: func build Command Testing (LFX Mentorship) #3225

@RayyanSeliya

Description

@RayyanSeliya

Summary

Comprehensive testing of the func build command identified 30+ issues across 11 categories, with the primary concern being a validation order problem where the system attempts to build before validating parameters, leading to wasted build time and misleading error messages. Key findings include missing early validation for registry format, path, authentication credentials, and builder-image compatibility; non-educational error messages that lack examples or explanations of valid formats; and generic build failure errors that mask actual underlying problems such as authentication failures or incompatible builder configurations. The most critical issues involve wrong validation order (e.g., attempting build before checking registry format validity or authentication credentials), missing registry handling that prompts users before showing errors, and silent flag ignoring (e.g., host builder silently ignoring builder-image flag without user notification). Additionally, several error messages are technically correct but lack educational guidance, such as not explaining why certain builder types don't support specific flags or what valid registry formats look like.

** Full Detailed Report**: Link to Google Docs : https://docs.google.com/document/d/17T3CdZeMFajtTOLgFXMVS0GdOoiWhkcb66pMyBCkgUw/edit?usp=sharing

Resolved Issues

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

  1. Empty Registry validation (1b)
  2. Conflicting Image and Registry validation (1d)
  3. Missing registry

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