Skip to content

add preflight compilation check #3246

add preflight compilation check

add preflight compilation check #3246

Triggered via pull request February 24, 2026 21:21
@amalavetamalavet
synchronize #1266
ale/compile
Status Failure
Total duration 2m 47s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 5 warnings
lint
issues found
lint: cmd/grafana-app-sdk/generate.go#L303
string `.go` has 3 occurrences, make it a constant (goconst)
lint: cmd/grafana-app-sdk/generate.go#L253
cognitive complexity 67 of func `preflightGeneratedGoCodeCompiles` is high (> 50) (gocognit)
test / integration-test
Process completed with exit code 1.
test / integration-test
package codegen-tests/pkg/generated/customkind/v1_0 is not in std (/opt/hostedtoolcache/go/1.25.0/x64/src/codegen-tests/pkg/generated/customkind/v1_0)
test / integration-test
package codegen-tests/pkg/generated/customkind/v0_0 is not in std (/opt/hostedtoolcache/go/1.25.0/x64/src/codegen-tests/pkg/generated/customkind/v0_0)
test / build
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
Go Workspace Check
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
lint
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
test / unit-test
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
test / integration-test
Restore cache failed: Dependencies file is not found in /home/runner/work/grafana-app-sdk/grafana-app-sdk. Supported file pattern: go.sum