Documentation
¶
Index ¶
- func CheckDependencyErrors(failedArtifacts []*buildplan.Artifact) (map[strfmt.UUID]bool, error)
- func CheckDependencyFixes(auth *authentication.Auth, failedArtifacts []*buildplan.Artifact) (map[strfmt.UUID]bool, error)
- func CheckWasDependencyError(client *http.Client, logURL string) (bool, error)
- type ArtifactOutput
- type Params
- type ProjectErrorsRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDependencyErrors ¶
Perform asynchronous checks for dependency errors to improve efficiency in large projects with multiple failures.
func CheckDependencyFixes ¶
func CheckDependencyFixes(auth *authentication.Auth, failedArtifacts []*buildplan.Artifact) (map[strfmt.UUID]bool, error)
Check whether a newer revision is available for each artifact version. If found, assume the issue is resolved so that a new build could be retried.
func CheckWasDependencyError ¶
For now, dependency errors are detected by downloading the logs and scanning for ModuleNotFoundError. Not perfect, but sufficient for Python and prevents sending large logs to the LLM prematurely. TODO: Implement a more robust solution that considers other languages. Ideally, this returns an error type, were 'dependency' is just one of them; this will give the caller an overview of failure categories.
Types ¶
type ArtifactOutput ¶
type ArtifactOutput struct {
Name string `json:"name"`
Version string `json:"version"`
Namespace string `json:"namespace"`
IsBuildtimeDependency bool `json:"isBuildtimeDependency"`
IsRuntimeDependency bool `json:"isRuntimeDependency"`
LogURL string `json:"logURL"`
SourceURI string `json:"sourceURI"`
WasFixed bool `json:"wasFixed"`
IsDependencyError bool `json:"isDependencyError"`
}
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
func NewParams ¶
func NewParams(namespace *project.Namespaced) *Params
type ProjectErrorsRunner ¶
type ProjectErrorsRunner struct {
// contains filtered or unexported fields
}
func New ¶
func New(p *primer.Values) *ProjectErrorsRunner
func (*ProjectErrorsRunner) Run ¶
func (runner *ProjectErrorsRunner) Run(params *Params) error