cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainlinkVersionFlag                        = "chainlink-version"
	ChainlinkUpgradeVersionFlag                 = "chainlink-upgrade-version"
	ChainlinkPostgresVersionFlag                = "chainlink-postgres-version"
	SelectedNetworksFlag                        = "selected-networks"
	FromBase64ConfigFlag                        = "from-base64-config"
	LoggingLokiBasicAuthFlag                    = "logging-loki-basic-auth"
	LoggingLokiEndpointFlag                     = "logging-loki-endpoint"
	LoggingRunIDFlag                            = "logging-run-id"
	LoggingLokiTenantIDFlag                     = "logging-loki-tenant-id"
	LoggingGrafanaBaseURLFlag                   = "logging-grafana-base-url"
	LoggingGrafanaDashboardURLFlag              = "logging-grafana-dashboard-url"
	LoggingGrafanaBearerTokenFlag               = "logging-grafana-bearer-token"
	LoggingLogTargetsFlag                       = "logging-log-targets"
	LoggingTestLogCollectFlag                   = "logging-test-log-collect"
	PyroscopeEnabledFlag                        = "pyroscope-enabled"
	PyroscopeServerURLFlag                      = "pyroscope-server-url"
	PyroscopeKeyFlag                            = "pyroscope-key"
	PyroscopeEnvironmentFlag                    = "pyroscope-environment"
	PrivateEthereumNetworkExecutionLayerFlag    = "private-ethereum-network-execution-layer"
	PrivateEthereumNetworkEthereumVersionFlag   = "private-ethereum-network-ethereum-version"
	PrivateEthereumNetworkCustomDockerImageFlag = "private-ethereum-network-custom-docker-image"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type CITestConf

type CITestConf struct {
	ID                         string            `yaml:"id" json:"id"`
	IDSanitized                string            `json:"id_sanitized"`
	Path                       string            `yaml:"path" json:"path"`
	TestEnvType                string            `yaml:"test_env_type" json:"test_env_type"`
	RunsOn                     string            `yaml:"runs_on" json:"runs_on"`
	TestCmd                    string            `yaml:"test_cmd" json:"test_cmd"`
	TestConfigOverrideRequired bool              `yaml:"test_config_override_required" json:"testConfigOverrideRequired"`
	TestSecretsRequired        bool              `yaml:"test_secrets_required" json:"testSecretsRequired"`
	TestInputs                 map[string]string `yaml:"test_inputs" json:"test_inputs"`
	RemoteRunnerMemory         string            `yaml:"remote_runner_memory" json:"remoteRunnerMemory"`
	PyroscopeEnv               string            `yaml:"pyroscope_env" json:"pyroscopeEnv"`
	Workflows                  []string          `yaml:"workflows" json:"workflows"`
}

CITestConf defines the configuration for running a test in a CI environment, specifying details like test ID, path, type, runner settings, command, and associated workflows.

type Config

type Config struct {
	Tests []CITestConf `yaml:"runner-test-matrix"`
}

type JobConfig

type JobConfig struct {
	Jobs map[string]struct {
		Strategy struct {
			Matrix struct {
				Test []struct {
					Path     string `yaml:"path"`
					TestOpts string `yaml:"testOpts"`
				} `yaml:"test"`
			} `yaml:"matrix"`
		} `yaml:"strategy"`
	} `yaml:"jobs"`
}

type OverrideConfig

type OverrideConfig struct {
	ChainlinkImage                           string
	ChainlinkVersion                         string
	ChainlinkUpgradeImage                    string
	ChainlinkUpgradeVersion                  string
	ChainlinkPostgresVersion                 string
	SelectedNetworks                         []string
	PyroscopeEnabled                         bool
	PyroscopeServerURL                       string
	PyroscopeEnvironment                     string
	PyroscopeKey                             string
	LoggingTestLogCollect                    bool
	LoggingRunID                             string
	LoggingLogTargets                        []string
	LoggingLokiTenantID                      string
	LoggingLokiEndpoint                      string
	LoggingLokiBasicAuth                     string
	LoggingGrafanaBaseURL                    string
	LoggingGrafanaDashboardURL               string
	LoggingGrafanaBearerToken                string
	PrivateEthereumNetworkExecutionLayer     string
	PrivateEthereumNetworkEthereumVersion    string
	PrivateEthereumNetworkCustomDockerImages string
}

OverrideConfig holds the configuration data for overrides

type Test

type Test struct {
	Name string
	Path string
}

Jump to

Keyboard shortcuts

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