Skip to content

bug: adding a repository without configuration file does not give you a proper error message #6124

@wvandeun

Description

@wvandeun

Component

Git Integration

Infrahub version

1.1.9

Current Behavior

When you add a git repository to Infrahub that is missing a .infrahub.yml configuration file, then you get an import error sync status on the repository. All the tasks on the repository show as completed. There is no clear error message that describes what is wrong, or why the import error is appearing.

Image Image

Expected Behavior

A clear error message, or failing task that describes what is wrong, the missing configuration file in the repository.

Steps to Reproduce

  • Spin up instance of Infrahub
  • Add https://github.com/opsmill/schema-library.git as a read-only repository to Infrahub (or any other repository with missing .infrahub.yml configuration file)
  • Check the sync status attribute of the repository
  • Check the tasks log on the repository

Additional Information

No response

Metadata

Metadata

Assignees

Labels

group/backendIssue related to the backend (API Server, Git Agent)type/bugSomething isn't working as expected

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions