Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
224 changes: 0 additions & 224 deletions core/scripts/cre/environment/LOADTEST.md

This file was deleted.

79 changes: 46 additions & 33 deletions core/scripts/cre/environment/completions.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ func buildCommandTree() *CompletionNode {
{Text: "setup", Description: "Setup the CRE environment prerequisites"},
{Text: "build-caps", Description: "Build capabilities binaries"},
{Text: "workflow", Description: "Workflow management commands"},
{Text: "beholder", Description: "Beholder stack management commands"},
{Text: "chip-ingress-stack", Description: "Chip Ingress stack management commands (Red Panda + ChIP ingress)"},
{Text: "beholder", Description: "Deprecated: use chip-ingress-stack"},
{Text: "swap", Description: "Swap capabilities or nodes in running environment"},
{Text: "state", Description: "Manage and view environment state"},
{Text: "billing", Description: "Billing Platform Service management commands"},
Expand All @@ -244,10 +245,10 @@ func buildCommandTree() *CompletionNode {
{Text: "--extra-allowed-gateway-ports", Description: "Extra allowed ports for outgoing connections from the Gateway Connector (e.g. 8080,8081)"},
{Text: "--with-example", Description: "Deploys and registers example workflow (default: false)"},
{Text: "--example-workflow-timeout", Description: "Time to wait until example workflow succeeds (e.g. 10s, 1m, 1h) (default: 5m)"},
{Text: "--with-beholder", Description: "Deploys Beholder (Chip Ingress + Red Panda) (default: false)"},
{Text: "--with-chip-ingress-stack", Description: "Deploy Chip Ingress stack (Chip Ingress + Red Panda) (default: false)"},
{Text: "--with-beholder", Description: "Deprecated: use --with-chip-ingress-stack (default: false)"},
{Text: "--with-dashboards", Description: "Deploys Observability Stack and Grafana Dashboards (default: false)"},
{Text: "--with-billing", Description: "Deploys Billing Platform Service (default: false)"},
{Text: "--with-proto-configs", Description: "Paths to protobuf config files for Beholder, comma separated (default: ./proto-configs/default.toml)"},
{Text: "--auto-setup", Description: "Runs setup before starting the environment (default: false)"},
{Text: "--setup-config", Description: "Path to the TOML configuration file for the setup command"},
},
Expand All @@ -256,7 +257,7 @@ func buildCommandTree() *CompletionNode {
// ENV STOP - flags
envStopNode := &CompletionNode{
Flags: []prompt.Suggest{
{Text: "--all", Description: "Remove also all extra services (beholder, billing, observability) (default: false)"},
{Text: "--all", Description: "Remove also all extra services (chip ingress stack, billing, observability) (default: false)"},
},
}

Expand Down Expand Up @@ -342,40 +343,52 @@ func buildCommandTree() *CompletionNode {

envNode.Children["workflow"] = workflowNode

// ENV BEHOLDER - beholder management
beholderNode := &CompletionNode{
Suggestions: []prompt.Suggest{
{Text: "start", Description: "Start the Beholder stack"},
{Text: "stop", Description: "Stop the Beholder stack"},
{Text: "create-kafka-topics", Description: "Create Kafka topics for Beholder"},
{Text: "fetch-and-register-protos", Description: "Fetch and register protobuf definitions"},
},
Children: make(map[string]*CompletionNode),
}
// ENV CHIP-INGRESS-STACK (and deprecated beholder alias) — same subcommand tree
chipIngressStackCompletionNode := func(deprecated bool) *CompletionNode {
desc := func(primary, dep string) string {
if deprecated {
return dep
}
return primary
}
n := &CompletionNode{
Suggestions: []prompt.Suggest{
{Text: "start", Description: desc("Start the Chip Ingress stack", "Deprecated alias: start stack (use chip-ingress-stack)")},
{Text: "stop", Description: desc("Stop the Chip Ingress stack", "Deprecated alias: stop stack (use chip-ingress-stack)")},
{Text: "create-topics", Description: desc("Create Kafka topics for the Chip Ingress stack", "Deprecated alias: create topics")},
{Text: "register-protos", Description: desc("Fetch and register protobuf definitions", "Deprecated alias: register protos")},
},
Children: make(map[string]*CompletionNode),
}

beholderNode.Children["start"] = &CompletionNode{
Flags: []prompt.Suggest{
{Text: "--with-proto-configs", Description: "Paths to protobuf config files for Beholder, comma separated (default: ./proto-configs/default.toml)"},
{Text: "--wait-on-error-timeout", Description: "Time to wait before removing Docker containers if environment fails to start (e.g. 10s, 1m, 1h) (default: 15s)"},
},
}
n.Children["start"] = &CompletionNode{
Flags: []prompt.Suggest{
{Text: "--wait-on-error-timeout", Description: "Time to wait before removing Docker containers if environment fails to start (e.g. 10s, 1m, 1h) (default: 15s)"},
{Text: "--grpc-port", Description: "gRPC port for the Chip Ingress stack"},
},
}

beholderNode.Children["create-kafka-topics"] = &CompletionNode{
Flags: []prompt.Suggest{
{Text: "--red-panda-kafka-url", Description: "⚠️ Red Panda Kafka URL (required)"},
{Text: "--topics", Description: "⚠️ Kafka topics to create (e.g. 'topic1,topic2') (required)"},
{Text: "--purge-topics", Description: "Remove existing Kafka topics (default: false)"},
},
}
n.Children["create-topics"] = &CompletionNode{
Flags: []prompt.Suggest{
{Text: "--red-panda-kafka-url", Description: "⚠️ Red Panda Kafka URL (required)"},
{Text: "--topics", Description: "⚠️ Kafka topics to create (e.g. 'topic1,topic2') (required)"},
{Text: "--purge-topics", Description: "Remove existing Kafka topics (default: false)"},
},
}

beholderNode.Children["fetch-and-register-protos"] = &CompletionNode{
Flags: []prompt.Suggest{
{Text: "--red-panda-schema-registry-url", Description: "Red Panda Schema Registry URL (default: http://localhost:8081)"},
{Text: "--with-proto-configs", Description: "Paths to protobuf config files for Beholder, comma separated (default: ./proto-configs/default.toml)"},
},
n.Children["register-protos"] = &CompletionNode{
Flags: []prompt.Suggest{
{Text: "--chip-ingress-grpc-url", Description: "Chip Ingress gRPC URL"},
},
}

n.Children["stop"] = &CompletionNode{}

return n
}

envNode.Children["beholder"] = beholderNode
envNode.Children["chip-ingress-stack"] = chipIngressStackCompletionNode(false)
envNode.Children["beholder"] = chipIngressStackCompletionNode(true)

// ENV SWAP - swap capabilities or nodes
swapNode := &CompletionNode{
Expand Down
2 changes: 1 addition & 1 deletion core/scripts/cre/environment/configs/chip-ingress.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# beholder
# Chip Ingress stack (local CRE)
[chip_ingress]
# compose_file will be auto-detected from go.mod version if not specified
# compose_file='https://raw.githubusercontent.com/smartcontractkit/chainlink-testing-framework/refs/tags/framework/components/dockercompose/v0.1.19/framework/components/dockercompose/chip_ingress_set/docker-compose.yml'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
# command: ctf obs up
Endpoint = 'host.docker.internal:4317'
# default service-name and port used by locally running Chip Ingress
# command: go run . env beholder start
# command: go run . env chip-ingress-stack start
ChipIngressEndpoint = 'chip-ingress:50051'
InsecureConnection = true
TraceSampleRatio = 1
Expand Down
Loading
Loading