projecterrors

package
v0.0.0-...-37118a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2026 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDependencyErrors

func CheckDependencyErrors(failedArtifacts []*buildplan.Artifact) (map[strfmt.UUID]bool, error)

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

func CheckWasDependencyError(client *http.Client, logURL string) (bool, error)

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 (*ProjectErrorsRunner) Run

func (runner *ProjectErrorsRunner) Run(params *Params) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL