.github/workflows/deploy-pr-preview.yml → grafana/writers-toolkit/.github/workflows/deploy-preview.ymlgcx
gcx
| Primary Language | Go |
|---|---|
| Primary Framework | Go Service |
| Detected Frameworks | Go Service; Docker Compose; Container |
| Deployable Types | API; Service |
| Technology Stack | Go, Docker, CI/CD, Kubernetes |
| Default Branch | main |
| Documentation Priority | P1 |
| Last Repository Scan | 11/15/2026, 5:10:26 AM |
| Source Repository | Open on GitHub |
grafana/gcx — Pipeline Categories Overview
Pipeline Anti-Patterns Detected
Cross-Workflow Triggers & Reusable Calls
grafana/gcx — Module Architecture Tree
Arc42 Architecture & Dependency Report
Repository Architecture Analysis: grafana/gcx
Metadata
- SHA:
465ba1e44cd1b63c82c4d69b810d9d7c857b0363 - Primary Ecosystem: Go
Quality Metrics
- ast_engine: fallback
- avg_cognitive_complexity: 0.0
- avg_cyclomatic_complexity: 0.0
- component_count: 250
- dead_code_count: 0
- dead_code_symbols: 0 entry(ies)
- duplication_pct: 0.0
- file_complexities: 0 entry(ies)
- files_analyzed: 1976
- fitness_passed: True
- fitness_violation_count: 0
- framework: Go Service
- import_edges: 0 entry(ies)
- loc: 422309
- max_cognitive_complexity: 0
- max_cyclomatic_complexity: 0
- sloc: 342454
- test_file_count: 1008
Architecture: grafana/gcx
Context
- Repository:
grafana/gcx - SHA:
465ba1e44cd1b63c82c4d69b810d9d7c857b0363 - Ecosystem: Go
- Framework: Go Service
Building Block View
graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
repo_root(["grafana/gcx (250 components)"]):::atlasRoot
subgraph sg_dir_0_cmd["cmd (249)"]
direction TB
dir_0_cmd["cmd (249)"]:::atlasCategory
sub_0_0_gcx_instrumentation["gcx/instrumentation (66)"]:::atlasWorkflow
dir_0_cmd --> sub_0_0_gcx_instrumentation
sub_0_1_gcx_resources["gcx/resources (42)"]:::atlasWorkflow
dir_0_cmd --> sub_0_1_gcx_resources
sub_0_2_gcx_fail["gcx/fail (31)"]:::atlasWorkflow
dir_0_cmd --> sub_0_2_gcx_fail
sub_0_more["+14 more submodules (110)"]:::atlasMore
dir_0_cmd --> sub_0_more
end
repo_root --> dir_0_cmd
dir_1_claude_plugin["claude-plugin (1)"]:::atlasCategory
repo_root --> dir_1_claude_plugin
Component Details
Showing top 60 representative components out of 250 across 2 module group(s):
-
Module
cmd(249 components — module: 249) -
Module
claude-plugin(1 components — module: 1) -
agent_output_contract_test (
cmd/gcx/api/agent_output_contract_test.go): module -
agent_output_contract_test (
cmd/gcx/config/agent_output_contract_test.go): module -
agent_output_contract_test (
cmd/gcx/dev/agent_output_contract_test.go): module -
agent_output_contract_test (
cmd/gcx/linter/agent_output_contract_test.go): module -
agentconformance_test (
cmd/gcx/root/agentconformance_test.go): module -
agento11y_config_routing_test (
cmd/gcx/root/agento11y_config_routing_test.go): module -
agento11y_test (
cmd/gcx/fail/agento11y_test.go): module -
agento11y_workflow_test (
cmd/gcx/resources/agento11y_workflow_test.go): module -
agenttelemetry_process_test (
cmd/gcx/agenttelemetry_process_test.go): module -
appo11y_config_routing_test (
cmd/gcx/root/appo11y_config_routing_test.go): module -
assets (
claude-plugin/assets.go): module -
assistant_test (
cmd/gcx/fail/assistant_test.go): module -
auth_remediation_test (
cmd/gcx/fail/auth_remediation_test.go): module -
basic_test (
cmd/gcx/login/basic_test.go): module -
batchvolume_test (
cmd/gcx/resources/batchvolume_test.go): module -
capture (
cmd/gcx/fail/capture.go): module -
capture_guard_test (
cmd/gcx/fail/capture_guard_test.go): module -
capture_test (
cmd/gcx/fail/capture_test.go): module -
check_test (
cmd/gcx/config/check_test.go): module -
clear (
cmd/gcx/instrumentation/services/clear.go): module -
clear_test (
cmd/gcx/instrumentation/services/clear_test.go): module -
client (
cmd/gcx/instrumentation/clusters/client.go): module -
client_test (
cmd/gcx/instrumentation/clusters/client_test.go): module -
cloud_orgs (
cmd/gcx/fail/cloud_orgs.go): module -
cloud_orgs_errors_test (
cmd/gcx/root/cloud_orgs_errors_test.go): module -
cloud_orgs_test (
cmd/gcx/fail/cloud_orgs_test.go): module -
codec (
cmd/gcx/instrumentation/check/codec.go): module -
codec_notruncate_test (
cmd/gcx/resources/codec_notruncate_test.go): module -
command (
cmd/gcx/agent/command.go): module -
command (
cmd/gcx/api/command.go): module -
command (
cmd/gcx/cloud/command.go): module -
command (
cmd/gcx/commands/command.go): module -
command (
cmd/gcx/config/command.go): module -
command (
cmd/gcx/datasources/command.go): module -
command (
cmd/gcx/dev/command.go): module -
command (
cmd/gcx/docs/command.go): module -
command (
cmd/gcx/helptree/command.go): module -
command (
cmd/gcx/instrumentation/check/command.go): module -
command (
cmd/gcx/instrumentation/clusters/apps/command.go): module -
command (
cmd/gcx/instrumentation/clusters/command.go): module -
command (
cmd/gcx/instrumentation/command.go): module -
command (
cmd/gcx/instrumentation/explain/command.go): module -
command (
cmd/gcx/instrumentation/services/command.go): module -
command (
cmd/gcx/instrumentation/setup/command.go): module -
command (
cmd/gcx/instrumentation/status/command.go): module -
command (
cmd/gcx/linter/command.go): module -
command (
cmd/gcx/login/command.go): module -
command (
cmd/gcx/providers/command.go): module -
command (
cmd/gcx/resources/command.go): module -
command (
cmd/gcx/root/command.go): module -
command_config_test (
cmd/gcx/resources/command_config_test.go): module -
command_test (
cmd/gcx/api/command_test.go): module -
command_test (
cmd/gcx/cloud/command_test.go): module -
command_test (
cmd/gcx/commands/command_test.go): module -
command_test (
cmd/gcx/config/command_test.go): module -
command_test (
cmd/gcx/docs/command_test.go): module -
command_test (
cmd/gcx/instrumentation/command_test.go): module -
command_test (
cmd/gcx/instrumentation/explain/command_test.go): module -
command_test (
cmd/gcx/login/command_test.go): module -
command_test (
cmd/gcx/providers/command_test.go): module
6-Dimension Repository Scorecard
- Overall Grade:
C(77.05/100) - Technical Debt Score: 22.95
- Estimated Remediation Effort: 23.74h
| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | A | 100.00 | 0.20 | avg_cc=0.00, max_cc=0, duplication=0.00%, dead_code=0 |
| Dependency Health | B | 85.00 | 0.15 | dependencies=180, outdated=0, vulnerable=0, has_lockfile=False |
| Maintainability | A | 100.00 | 0.15 | avg_cognitive=0.00, max_cognitive=0, fitness_violations=0, oversized_files=0 |
| Pipeline Health | F | 0.00 | 0.15 | workflows=9, operational_antipatterns=20, parallel_branches=True |
| Security | A | 94.00 | 0.20 | vulnerabilities=0, secrets=0, pipeline_security_findings=1 |
| Test Coverage | C | 70.00 | 0.15 | coverage=unavailable, ci_test_job=True, test_files_detected=True |
Supply Chain Dependencies, Vulnerabilities & Secrets
- Dependencies Parsed: 180 | Vulnerabilities: 0 | Secrets: 0
Inventory Sample
charm.land/glamour/v22.0.1(golang,go.mod)charm.land/huh/v22.0.3(golang,go.mod)charm.land/lipgloss/v22.0.6(golang,go.mod)github.com/Masterminds/semver/v33.5.0(golang,go.mod)github.com/NimbleMarkets/ntcharts/v22.9.0(golang,go.mod)github.com/dustin/go-humanize1.1.0(golang,go.mod)github.com/fatih/color1.19.0(golang,go.mod)github.com/fsnotify/fsnotify1.10.1(golang,go.mod)github.com/go-chi/chi/v55.5.0(golang,go.mod)github.com/go-logfmt/logfmt0.6.1(golang,go.mod)github.com/go-logr/logr1.4.4(golang,go.mod)github.com/go-openapi/runtime0.33.4(golang,go.mod)github.com/go-openapi/strfmt0.27.4(golang,go.mod)github.com/goccy/go-yaml1.19.2(golang,go.mod)github.com/godbus/dbus/v55.2.4(golang,go.mod)github.com/gofrs/flock0.13.1(golang,go.mod)github.com/google/go-cmp0.7.0(golang,go.mod)github.com/google/uuid1.6.0(golang,go.mod)github.com/gorilla/websocket1.5.4-0.20250319132907-e064f32e3674(golang,go.mod)github.com/grafana/authlib/types0.0.0-20260427145542-9c256e2dbcb2(golang,go.mod)github.com/grafana/grafana-app-sdk/logging0.61.1(golang,go.mod)github.com/grafana/grafana-foundation-sdk/go0.0.22(golang,go.mod)github.com/grafana/grafana-openapi-client-go0.0.0-20260414120814-5b95bb183fae(golang,go.mod)github.com/grafana/grafana/pkg/apimachinery0.0.0-20250903133002-4e28cba1c53a(golang,go.mod)github.com/grafana/mcp-doc-server1.0.0(golang,go.mod)github.com/grafana/mcp-grafana/lokiguard0.1.0(golang,go.mod)github.com/grafana/otel-checker0.4.0(golang,go.mod)github.com/grafana/promql-builder/go0.0.6(golang,go.mod)github.com/invopop/jsonschema0.14.0(golang,go.mod)github.com/itchyny/gojq0.12.20(golang,go.mod)- … (+150 more dependencies)
Section 7: Code-to-Cloud Deployment Traceability
flowchart LR
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
subgraph code_modules["Code Modules"]
mod_59d72133_05f6_4b71_8e9c_003403b0ce64["59d72133-05f6-4b71-8e9c-003403b0ce64"]:::atlasCategory
mod_experimental_sandbox["experimental/sandbox"]:::atlasCategory
end
subgraph build_artifacts["Build Artifacts / Containers"]
art_Dockerfile["Dockerfile"]:::atlasWorkflow
art_docker_compose_yml["docker-compose.yml"]:::atlasWorkflow
end
subgraph ci_jobs["CI/CD Jobs"]
job_publish_gcx_wasm_yaml_build["publish-gcx-wasm.yaml#build"]:::atlasJob
job_publish_gcx_wasm_yaml_precompile["publish-gcx-wasm.yaml#precompile"]:::atlasJob
job_publish_gcx_wasm_yaml_publish["publish-gcx-wasm.yaml#publish"]:::atlasJob
job_sandbox_yaml_sandbox["sandbox.yaml#sandbox"]:::atlasJob
end
mod_59d72133_05f6_4b71_8e9c_003403b0ce64 -->|BUILT_BY| job_publish_gcx_wasm_yaml_precompile
mod_59d72133_05f6_4b71_8e9c_003403b0ce64 -->|PACKAGED_BY| art_Dockerfile
mod_59d72133_05f6_4b71_8e9c_003403b0ce64 -->|PACKAGED_BY| art_docker_compose_yml
mod_experimental_sandbox -->|BUILT_BY| job_publish_gcx_wasm_yaml_build
mod_experimental_sandbox -->|BUILT_BY| job_publish_gcx_wasm_yaml_precompile
mod_experimental_sandbox -->|BUILT_BY| job_sandbox_yaml_sandbox
mod_experimental_sandbox -->|DEPLOYED_BY| job_publish_gcx_wasm_yaml_publish
art_Dockerfile -->|BUILT_BY| job_publish_gcx_wasm_yaml_precompile
59d72133-05f6-4b71-8e9c-003403b0ce64(code_module) —[BUILT_BY]—>publish-gcx-wasm.yaml#precompile(ci_job)59d72133-05f6-4b71-8e9c-003403b0ce64(code_module) —[PACKAGED_BY]—>Dockerfile(container)59d72133-05f6-4b71-8e9c-003403b0ce64(code_module) —[PACKAGED_BY]—>docker-compose.yml(container)experimental/sandbox(code_module) —[BUILT_BY]—>publish-gcx-wasm.yaml#build(ci_job)experimental/sandbox(code_module) —[BUILT_BY]—>publish-gcx-wasm.yaml#precompile(ci_job)experimental/sandbox(code_module) —[BUILT_BY]—>sandbox.yaml#sandbox(ci_job)experimental/sandbox(code_module) —[DEPLOYED_BY]—>publish-gcx-wasm.yaml#publish(ci_job)Dockerfile(container) —[BUILT_BY]—>publish-gcx-wasm.yaml#precompile(ci_job)
CI/CD Pipeline Topology
graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
pipeline_root(["grafana/gcx (9 workflows)"]):::atlasRoot
subgraph sg_grp_0_Release___Deploy["Release & Deploy (5 workflows · 7 jobs)"]
direction TB
subgraph sg_wf_3_Deploy_pr_preview["Deploy pr preview (1 jobs)"]
direction TB
wf_3_Deploy_pr_preview(["Trigger: Deploy pr preview"]):::atlasWorkflow
job_3_deploy_pr_preview["deploy-pr-preview"]:::atlasJob
wf_3_Deploy_pr_preview --> job_3_deploy_pr_preview
end
pipeline_root --> wf_3_Deploy_pr_preview
subgraph sg_wf_4_Publish_gcx_wasm["Publish gcx.wasm (3 jobs)"]
direction TB
wf_4_Publish_gcx_wasm(["Trigger: Publish gcx.wasm"]):::atlasWorkflow
job_4_build["build"]:::atlasJob
job_4_precompile["precompile"]:::atlasJob
job_4_publish["publish"]:::atlasJob
wf_4_Publish_gcx_wasm --> job_4_build
job_4_build --> job_4_precompile
job_4_build --> job_4_publish
job_4_precompile --> job_4_publish
end
pipeline_root --> wf_4_Publish_gcx_wasm
subgraph sg_wf_5_Publish_Homebrew_Formula["Publish Homebrew Formula (1 jobs)"]
direction TB
wf_5_Publish_Homebrew_Formula(["Trigger: Publish Homebrew Formula"]):::atlasWorkflow
job_5_publish["publish"]:::atlasJob
wf_5_Publish_Homebrew_Formula --> job_5_publish
end
pipeline_root --> wf_5_Publish_Homebrew_Formula
subgraph sg_wf_6_Release["Release (1 jobs)"]
direction TB
wf_6_Release(["Trigger: Release"]):::atlasWorkflow
job_6_release["release"]:::atlasJob
wf_6_Release --> job_6_release
end
pipeline_root --> wf_6_Release
subgraph sg_wf_8_Windows_release_smoke["Windows release smoke (1 jobs)"]
direction TB
wf_8_Windows_release_smoke(["Trigger: Windows release smoke"]):::atlasWorkflow
job_8_smoke["smoke"]:::atlasJob
wf_8_Windows_release_smoke --> job_8_smoke
end
pipeline_root --> wf_8_Windows_release_smoke
end
subgraph sg_grp_1_CI___Verification["CI & Verification (4 workflows · 8 jobs)"]
direction TB
subgraph sg_wf_0_CI["CI (5 jobs)"]
direction TB
wf_0_CI(["Trigger: CI"]):::atlasWorkflow
job_0_linters["linters"]:::atlasJob
job_0_tests["tests"]:::atlasJob
job_0_windows["windows"]:::atlasJob
wf_0_CI --> job_0_linters
wf_0_CI --> job_0_tests
wf_0_CI --> job_0_windows
end
pipeline_root --> wf_0_CI
subgraph sg_wf_1_Claude_Code_Review["Claude Code Review (1 jobs)"]
direction TB
wf_1_Claude_Code_Review(["Trigger: Claude Code Review"]):::atlasWorkflow
job_1_claude_review["claude-review"]:::atlasJob
wf_1_Claude_Code_Review --> job_1_claude_review
end
pipeline_root --> wf_1_Claude_Code_Review
subgraph sg_wf_2_Claude_Code["Claude Code (1 jobs)"]
direction TB
wf_2_Claude_Code(["Trigger: Claude Code"]):::atlasWorkflow
job_2_claude["claude"]:::atlasJob
wf_2_Claude_Code --> job_2_claude
end
pipeline_root --> wf_2_Claude_Code
subgraph sg_wf_7_Sandbox["Sandbox (1 jobs)"]
direction TB
wf_7_Sandbox(["Trigger: Sandbox"]):::atlasWorkflow
job_7_sandbox["sandbox"]:::atlasJob
wf_7_Sandbox --> job_7_sandbox
end
pipeline_root --> wf_7_Sandbox
end6-Dimension Scorecard Breakdown
Code Quality
Weight 20%avg_cc=0.00, max_cc=0, duplication=0.00%, dead_code=0
Security
Weight 20%vulnerabilities=0, secrets=0, pipeline_security_findings=1
Maintainability
Weight 15%avg_cognitive=0.00, max_cognitive=0, fitness_violations=0, oversized_files=0
Test Coverage
Weight 15%coverage=unavailable, ci_test_job=True, test_files_detected=True
Dependency Health
Weight 15%dependencies=180, outdated=0, vulnerable=0, has_lockfile=False
Pipeline Health
Weight 15%workflows=9, operational_antipatterns=20, parallel_branches=True
Module Complexity & Quality Heatmap
No per-file complexity hotspots recorded in this report.
Architectural Fitness Rules
All architectural boundary, cycle, and complexity thresholds passed.
Supply-Chain Dependencies & OSV Vulnerabilities
No known OSV vulnerabilities detected across 180 parsed dependencies.
Redacted Secret Findings
No hardcoded secret patterns detected.
Code-to-Cloud & Workspace Packages
Workspace Packages
Single-package repository or no monorepo workspace manifests.