Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wvandeun opened this issue Mar 23, 2025 · 0 comments
Labels
group/backend Issue related to the backend (API Server, Git Agent) type/bug Something isn't working as expected

Comments

@wvandeun
Copy link
Contributor

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

@wvandeun wvandeun added the type/bug Something isn't working as expected label Mar 23, 2025
@dgarros dgarros added the group/backend Issue related to the backend (API Server, Git Agent) label Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent) type/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants