Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v10.4.x] SQLStore: Disable redundant create and drop unique index migrations on dashboard table #86866

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport a5a3ee9 from #86857


What is this feature?

Fix migration failure when trying to create unique index on dashboard table for org_id, folder_uid, title columns
when there is a folder and dashboard with the same title exist under the same folder like the following:

Migration failure

logger=migrator t=2024-04-23T14:17:33.213655619Z level=info msg="Executing migration" id="Add unique index for dashboard_org_id_folder_uid_title"

logger=migrator t=2024-04-23T14:17:33.229140986Z level=error msg="Executing migration failed" id="Add unique index for dashboard_org_id_folder_uid_title" error="pq: could not create unique index \"UQE_dashboard_org_id_folder_uid_title\"" duration=15.484242ms

logger=migrator t=2024-04-23T14:17:33.229164783Z level=error msg="Exec failed" error="pq: could not create unique index \"UQE_dashboard_org_id_folder_uid_title\"" sql="CREATE UNIQUE INDEX \"UQE_dashboard_org_id_folder_uid_title\" ON \"dashboard\" (\"org_id\",\"folder_uid\",\"title\");"

These index is redundant and there is follow up migrations dropping the index and create a unique index on:
org_id, folder_uid, title, is_folder columns
instead.

This fix replace the create and drop indexes to dummy migrations so that they do not have any effect.
Setups that the specific migrations are executed are not affected because the migrations are marked as executed in the database.
For new setups the migrations are executed (doing nothing) and marked as completed in the database.

Why do we need this feature?

[Add a description of the problem the feature is trying to solve.]

Who is this feature for?

[Add information on what kind of user the feature is for.]

Which issue(s) does this PR fix?:

Fixes #

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

…n dashboard table (#86857)

SQLStore: Disable create and drop unique index migrations
(cherry picked from commit a5a3ee9)
@grafana-delivery-bot grafana-delivery-bot bot requested a review from a team as a code owner April 24, 2024 14:27
@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.4.x milestone Apr 24, 2024
@grafana-delivery-bot grafana-delivery-bot bot requested review from papagian, diegommm and idafurjes and removed request for a team April 24, 2024 14:27
@papagian
Copy link
Contributor

/deploy-to-hg

@ephemeral-instances-bot
Copy link

  • Preparing your instance. A comment containing your instance's url will be added to this PR when the instance is ready.
  • Your instance will be ready in ~10 minutes. Follow the workflow progress
  • Slack channel: #proj-ephemeral-hg-instances
  • Building instance with backport-86857-to-v10.4.x oss branch and main enterprise branch. How to choose a branch

@ephemeral-instances-bot
Copy link

Error building instance: Contact #proj-ephemeral-hg-instances if it is not a compile error. Logs

handling pull request comment event: running grafana-build deb: executing command: stdout= stderr=go: downloading dagger.io/dagger v0.11.0
go: downloading github.com/urfave/cli/v2 v2.27.1
go: downloading go.opentelemetry.io/otel v1.25.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.25.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.25.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.25.0
go: downloading go.opentelemetry.io/otel/sdk v1.25.0
go: downloading go.opentelemetry.io/otel/trace v1.25.0
go: downloading golang.org/x/sync v0.6.0
go: downloading github.com/Khan/genqlient v0.6.0
go: downloading github.com/vektah/gqlparser/v2 v2.5.6
go: downloading go.opentelemetry.io/proto/otlp v1.1.0
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda
go: downloading google.golang.org/grpc v1.63.0
go: downloading github.com/go-logr/logr v1.4.1
go: downloading go.opentelemetry.io/otel/metric v1.25.0
go: downloading golang.org/x/sys v0.18.0
go: downloading google.golang.org/protobuf v1.33.0
go: downloading github.com/adrg/xdg v0.4.0
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/99designs/gqlgen v0.17.31
go: downloading golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
go: downloading github.com/cenkalti/backoff/v4 v4.3.0
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
go: downloading github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0
go: downloading github.com/go-logr/stdr v1.2.2
go: downloading github.com/Masterminds/semver v1.5.0
go: downloading golang.org/x/net v0.23.0
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de
go: downloading golang.org/x/text v0.14.0
2024/04/24 14:54:42 OTEL_EXPORTER_OTLP_ENDPOINT not set. Disabling tracing.
time=2024-04-24T14:54:48.978Z level=INFO msg="Initializing tar.gz artifact with options" name=grafana-pro "build ID"=12345 version=10.1.0 distro=linux/amd64/dynamic static=false enterprise=true
2024/04/24 14:54:48 if git -C src checkout backport-86857-to-v10.4.x; then echo "checked out backport-86857-to-v10.4.x"; else exit 3; fi
2024/04/24 14:58:01 if git -C src checkout main; then echo "checked out main"; else exit 3; fi
time=2024-04-24T14:58:05.778Z level=INFO msg="Initializing backend artifact with options" static=false version=10.1.0 name=grafana-pro distro=linux/amd64/dynamic
2024/04/24 14:58:05 if git -C src checkout backport-86857-to-v10.4.x; then echo "checked out backport-86857-to-v10.4.x"; else exit 3; fi
time=2024-04-24T14:58:05.799Z level=INFO msg="Adding artifact to dag..." filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb artifact=deb:pro:linux/amd64/dynamic
time=2024-04-24T14:58:05.799Z level=INFO msg="getting dependencies..." artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb service=ArtifactHandler
time=2024-04-24T14:58:05.799Z level=INFO msg="got dependencies" artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb service=ArtifactHandler count=1
time=2024-04-24T14:58:05.799Z level=INFO msg="getting dependencies..." artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.tar.gz service=ArtifactHandler
time=2024-04-24T14:58:05.799Z level=INFO msg="got dependencies" artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.tar.gz service=ArtifactHandler count=5
time=2024-04-24T14:58:05.799Z level=INFO msg="getting dependencies..." artifact=deb:pro:linux/amd64/dynamic filename=bin/grafana-pro/linux/amd64/dynamic service=ArtifactHandler
time=2024-04-24T14:58:05.799Z level=INFO msg="got dependencies" artifact=deb:pro:linux/amd64/dynamic filename=bin/grafana-pro/linux/amd64/dynamic service=ArtifactHandler count=0
time=2024-04-24T14:58:05.799Z level=INFO msg="getting builder..." artifact=deb:pro:linux/amd64/dynamic filename=bin/grafana-pro/linux/amd64/dynamic service=ArtifactHandler
time=2024-04-24T14:58:05.799Z level=INFO msg="got builder" artifact=deb:pro:linux/amd64/dynamic filename=bin/grafana-pro/linux/amd64/dynamic service=ArtifactHandler
time=2024-04-24T14:58:05.799Z level=INFO msg="building directory..." artifact=deb:pro:linux/amd64/dynamic filename=bin/grafana-pro/linux/amd64/dynamic service=ArtifactHandler
2024/04/24 14:58:05 Building with command 'if [ -d pkg/cmd/grafana ]; then go build -ldflags="-X "main.version=10.1.0" -X "main.commit=$(cat ./.buildinfo.commit)" -X "main.buildBranch=$(cat ./.buildinfo.branch)" -X "main.enterpriseCommit=$(cat ./.buildinfo.enterprise-commit)" " -o=bin/grafana-pro/linux/amd64/dynamic/grafana -trimpath -tags=osusergo,pro ./pkg/cmd/grafana; fi'
2024/04/24 14:58:05 Building with command 'if [ -d pkg/cmd/grafana-server ]; then go build -ldflags="-X "main.version=10.1.0" -X "main.commit=$(cat ./.buildinfo.commit)" -X "main.buildBranch=$(cat ./.buildinfo.branch)" -X "main.enterpriseCommit=$(cat ./.buildinfo.enterprise-commit)" " -o=bin/grafana-pro/linux/amd64/dynamic/grafana-server -trimpath -tags=osusergo,pro ./pkg/cmd/grafana-server; fi'
2024/04/24 14:58:05 Building with command 'if [ -d pkg/cmd/grafana-cli ]; then go build -ldflags="-X "main.version=10.1.0" -X "main.commit=$(cat ./.buildinfo.commit)" -X "main.buildBranch=$(cat ./.buildinfo.branch)" -X "main.enterpriseCommit=$(cat ./.buildinfo.enterprise-commit)" " -o=bin/grafana-pro/linux/amd64/dynamic/grafana-cli -trimpath -tags=osusergo,pro ./pkg/cmd/grafana-cli; fi'
2024/04/24 14:58:05 Building with command 'if [ -d pkg/cmd/grafana-example-apiserver ]; then go build -ldflags="-X "main.version=10.1.0" -X "main.commit=$(cat ./.buildinfo.commit)" -X "main.buildBranch=$(cat ./.buildinfo.branch)" -X "main.enterpriseCommit=$(cat ./.buildinfo.enterprise-commit)" " -o=bin/grafana-pro/linux/amd64/dynamic/grafana-example-apiserver -trimpath -tags=osusergo,pro ./pkg/cmd/grafana-example-apiserver; fi'
time=2024-04-24T14:58:05.799Z level=INFO msg="done building directory" artifact=deb:pro:linux/amd64/dynamic filename=bin/grafana-pro/linux/amd64/dynamic service=ArtifactHandler
time=2024-04-24T14:58:05.799Z level=INFO msg="getting dependencies..." artifact=10.1.0 filename=deb:pro:linux/amd64/dynamic/grafana-enterprise/public service=ArtifactHandler
time=2024-04-24T14:58:05.799Z level=INFO msg="got dependencies" artifact=10.1.0 filename=deb:pro:linux/amd64/dynamic/grafana-enterprise/public service=ArtifactHandler count=0
time=2024-04-24T14:58:05.799Z level=INFO msg="getting builder..." artifact=10.1.0 filename=deb:pro:linux/amd64/dynamic/grafana-enterprise/public service=ArtifactHandler
time=2024-04-24T14:58:50.505Z level=INFO msg="got builder" artifact=10.1.0 filename=deb:pro:linux/amd64/dynamic/grafana-enterprise/public service=ArtifactHandler
time=2024-04-24T14:58:50.505Z level=INFO msg="building directory..." artifact=10.1.0 filename=deb:pro:linux/amd64/dynamic/grafana-enterprise/public service=ArtifactHandler
time=2024-04-24T14:58:50.505Z level=INFO msg="done building directory" artifact=10.1.0 filename=deb:pro:linux/amd64/dynamic/grafana-enterprise/public service=ArtifactHandler
time=2024-04-24T14:58:50.506Z level=INFO msg="getting dependencies..." artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/npm-packages service=ArtifactHandler
time=2024-04-24T14:58:50.506Z level=INFO msg="got dependencies" artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/npm-packages service=ArtifactHandler count=0
time=2024-04-24T14:58:50.506Z level=INFO msg="getting builder..." artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/npm-packages service=ArtifactHandler
time=2024-04-24T14:58:50.536Z level=INFO msg="got builder" artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/npm-packages service=ArtifactHandler
time=2024-04-24T14:58:50.536Z level=INFO msg="building directory..." artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/npm-packages service=ArtifactHandler
time=2024-04-24T14:58:50.536Z level=INFO msg="done building directory" artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/npm-packages service=ArtifactHandler
time=2024-04-24T14:58:50.536Z level=INFO msg="getting dependencies..." artifact=deb:pro:linux/amd64/dynamic filename=bin/bundled-plugins service=ArtifactHandler
time=2024-04-24T14:58:50.536Z level=INFO msg="got dependencies" artifact=deb:pro:linux/amd64/dynamic filename=bin/bundled-plugins service=ArtifactHandler count=0
time=2024-04-24T14:58:50.536Z level=INFO msg="getting builder..." artifact=deb:pro:linux/amd64/dynamic filename=bin/bundled-plugins service=ArtifactHandler
time=2024-04-24T14:58:50.591Z level=INFO msg="got builder" artifact=deb:pro:linux/amd64/dynamic filename=bin/bundled-plugins service=ArtifactHandler
time=2024-04-24T14:58:50.591Z level=INFO msg="building directory..." artifact=deb:pro:linux/amd64/dynamic filename=bin/bundled-plugins service=ArtifactHandler
time=2024-04-24T14:58:50.591Z level=INFO msg="done building directory" artifact=deb:pro:linux/amd64/dynamic filename=bin/bundled-plugins service=ArtifactHandler
time=2024-04-24T14:58:50.591Z level=INFO msg="getting dependencies..." artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/storybook service=ArtifactHandler
time=2024-04-24T14:58:50.591Z level=INFO msg="got dependencies" artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/storybook service=ArtifactHandler count=0
time=2024-04-24T14:58:50.591Z level=INFO msg="getting builder..." artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/storybook service=ArtifactHandler
time=2024-04-24T14:58:50.613Z level=INFO msg="got builder" artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/storybook service=ArtifactHandler
time=2024-04-24T14:58:50.613Z level=INFO msg="building directory..." artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/storybook service=ArtifactHandler
time=2024-04-24T14:58:50.613Z level=INFO msg="done building directory" artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/storybook service=ArtifactHandler
time=2024-04-24T14:58:50.613Z level=INFO msg="getting builder..." artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.tar.gz service=ArtifactHandler
time=2024-04-24T14:58:50.613Z level=INFO msg="got builder" artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.tar.gz service=ArtifactHandler
time=2024-04-24T14:58:50.613Z level=INFO msg="building file..." artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.tar.gz service=ArtifactHandler
time=2024-04-24T14:58:50.613Z level=INFO msg="done building file" artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.tar.gz service=ArtifactHandler
time=2024-04-24T14:58:50.613Z level=INFO msg="getting builder..." artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb service=ArtifactHandler
time=2024-04-24T14:58:50.613Z level=INFO msg="got builder" artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb service=ArtifactHandler
time=2024-04-24T14:58:50.613Z level=INFO msg="building file..." artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb service=ArtifactHandler
time=2024-04-24T14:58:50.613Z level=INFO msg="done building file" artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb service=ArtifactHandler
time=2024-04-24T14:58:50.613Z level=INFO msg="Done adding artifact" filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb artifact=deb:pro:linux/amd64/dynamic
time=2024-04-24T14:58:50.613Z level=INFO msg="Exporting artifacts..."
time=2024-04-24T14:58:50.613Z level=INFO msg="Started exporting artifact..." artifact=deb:pro:linux/amd64/dynamic action=export
time=2024-04-24T14:58:50.613Z level=INFO msg="Acquiring semaphore" artifact=deb:pro:linux/amd64/dynamic action=export
time=2024-04-24T14:58:50.613Z level=INFO msg="Acquired semaphore" artifact=deb:pro:linux/amd64/dynamic action=export
time=2024-04-24T14:58:50.613Z level=INFO msg="Exporting artifact" artifact=deb:pro:linux/amd64/dynamic action=export
error exporting artifact 'grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb': input: container.from.withDirectory.withDirectory.withDirectory.withDirectory.withFile.withExec.withDirectory.withDirectory.withDirectory.withFile.withWorkdir.withExec.file resolve: process "make gen-go WIRE_TAGS=pro" did not complete successfully: exit code: 2

Stdout:
(re)installing /go/bin/wire-v0.5.0
generate go files
/go/bin/wire-v0.5.0 gen -tags pro ./pkg/server
Stderr:
find: scripts/drone: No such file or directory
go: downloading github.com/google/wire v0.6.0
go: downloading github.com/google/subcommands v1.2.0
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading golang.org/x/tools v0.17.0
go: downloading golang.org/x/mod v0.14.0
wire: /src/pkg/server/wireexts_enterprise.go:296:10: undefined: tracing.ProvideTracingConfig
wire: generate failed
make: *** [Makefile:113: gen-go] Error 1
exit status 1
exit status 1

@papagian
Copy link
Contributor

/deploy-to-hg

@ephemeral-instances-bot
Copy link

  • Preparing your instance. A comment containing your instance's url will be added to this PR when the instance is ready.
  • Your instance will be ready in ~10 minutes. Follow the workflow progress
  • Slack channel: #proj-ephemeral-hg-instances
  • Building instance with backport-86857-to-v10.4.x oss branch and main enterprise branch. How to choose a branch

@ephemeral-instances-bot
Copy link

Error building instance: Contact #proj-ephemeral-hg-instances if it is not a compile error. Logs

handling pull request comment event: running grafana-build deb: executing command: stdout= stderr=go: downloading dagger.io/dagger v0.11.0
go: downloading github.com/urfave/cli/v2 v2.27.1
go: downloading go.opentelemetry.io/otel v1.25.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.25.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.25.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.25.0
go: downloading go.opentelemetry.io/otel/sdk v1.25.0
go: downloading go.opentelemetry.io/otel/trace v1.25.0
go: downloading golang.org/x/sync v0.6.0
go: downloading github.com/go-logr/logr v1.4.1
go: downloading go.opentelemetry.io/otel/metric v1.25.0
go: downloading go.opentelemetry.io/proto/otlp v1.1.0
go: downloading google.golang.org/protobuf v1.33.0
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda
go: downloading google.golang.org/grpc v1.63.0
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
go: downloading github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673
go: downloading github.com/go-logr/stdr v1.2.2
go: downloading github.com/cenkalti/backoff/v4 v4.3.0
go: downloading golang.org/x/sys v0.18.0
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0
go: downloading github.com/Masterminds/semver v1.5.0
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading golang.org/x/net v0.23.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de
go: downloading github.com/Khan/genqlient v0.6.0
go: downloading github.com/vektah/gqlparser/v2 v2.5.6
go: downloading github.com/adrg/xdg v0.4.0
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/99designs/gqlgen v0.17.31
go: downloading golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
go: downloading golang.org/x/text v0.14.0
2024/04/24 15:10:14 OTEL_EXPORTER_OTLP_ENDPOINT not set. Disabling tracing.
time=2024-04-24T15:10:20.833Z level=INFO msg="Initializing tar.gz artifact with options" name=grafana-pro "build ID"=12345 version=10.1.0 distro=linux/amd64/dynamic static=false enterprise=true
2024/04/24 15:10:20 if git -C src checkout backport-86857-to-v10.4.x; then echo "checked out backport-86857-to-v10.4.x"; else exit 3; fi
2024/04/24 15:13:11 if git -C src checkout main; then echo "checked out main"; else exit 3; fi
time=2024-04-24T15:13:15.373Z level=INFO msg="Initializing backend artifact with options" static=false version=10.1.0 name=grafana-pro distro=linux/amd64/dynamic
2024/04/24 15:13:15 if git -C src checkout backport-86857-to-v10.4.x; then echo "checked out backport-86857-to-v10.4.x"; else exit 3; fi
time=2024-04-24T15:13:15.394Z level=INFO msg="Adding artifact to dag..." filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb artifact=deb:pro:linux/amd64/dynamic
time=2024-04-24T15:13:15.394Z level=INFO msg="getting dependencies..." artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb service=ArtifactHandler
time=2024-04-24T15:13:15.394Z level=INFO msg="got dependencies" artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb service=ArtifactHandler count=1
time=2024-04-24T15:13:15.394Z level=INFO msg="getting dependencies..." artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.tar.gz service=ArtifactHandler
time=2024-04-24T15:13:15.394Z level=INFO msg="got dependencies" artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.tar.gz service=ArtifactHandler count=5
time=2024-04-24T15:13:15.394Z level=INFO msg="getting dependencies..." artifact=deb:pro:linux/amd64/dynamic filename=bin/grafana-pro/linux/amd64/dynamic service=ArtifactHandler
time=2024-04-24T15:13:15.394Z level=INFO msg="got dependencies" artifact=deb:pro:linux/amd64/dynamic filename=bin/grafana-pro/linux/amd64/dynamic service=ArtifactHandler count=0
time=2024-04-24T15:13:15.394Z level=INFO msg="getting builder..." artifact=deb:pro:linux/amd64/dynamic filename=bin/grafana-pro/linux/amd64/dynamic service=ArtifactHandler
time=2024-04-24T15:13:15.394Z level=INFO msg="got builder" artifact=deb:pro:linux/amd64/dynamic filename=bin/grafana-pro/linux/amd64/dynamic service=ArtifactHandler
time=2024-04-24T15:13:15.394Z level=INFO msg="building directory..." artifact=deb:pro:linux/amd64/dynamic filename=bin/grafana-pro/linux/amd64/dynamic service=ArtifactHandler
2024/04/24 15:13:15 Building with command 'if [ -d pkg/cmd/grafana ]; then go build -ldflags="-X "main.version=10.1.0" -X "main.commit=$(cat ./.buildinfo.commit)" -X "main.buildBranch=$(cat ./.buildinfo.branch)" -X "main.enterpriseCommit=$(cat ./.buildinfo.enterprise-commit)" " -o=bin/grafana-pro/linux/amd64/dynamic/grafana -trimpath -tags=osusergo,pro ./pkg/cmd/grafana; fi'
2024/04/24 15:13:15 Building with command 'if [ -d pkg/cmd/grafana-server ]; then go build -ldflags="-X "main.version=10.1.0" -X "main.commit=$(cat ./.buildinfo.commit)" -X "main.buildBranch=$(cat ./.buildinfo.branch)" -X "main.enterpriseCommit=$(cat ./.buildinfo.enterprise-commit)" " -o=bin/grafana-pro/linux/amd64/dynamic/grafana-server -trimpath -tags=osusergo,pro ./pkg/cmd/grafana-server; fi'
2024/04/24 15:13:15 Building with command 'if [ -d pkg/cmd/grafana-cli ]; then go build -ldflags="-X "main.version=10.1.0" -X "main.commit=$(cat ./.buildinfo.commit)" -X "main.buildBranch=$(cat ./.buildinfo.branch)" -X "main.enterpriseCommit=$(cat ./.buildinfo.enterprise-commit)" " -o=bin/grafana-pro/linux/amd64/dynamic/grafana-cli -trimpath -tags=osusergo,pro ./pkg/cmd/grafana-cli; fi'
2024/04/24 15:13:15 Building with command 'if [ -d pkg/cmd/grafana-example-apiserver ]; then go build -ldflags="-X "main.version=10.1.0" -X "main.commit=$(cat ./.buildinfo.commit)" -X "main.buildBranch=$(cat ./.buildinfo.branch)" -X "main.enterpriseCommit=$(cat ./.buildinfo.enterprise-commit)" " -o=bin/grafana-pro/linux/amd64/dynamic/grafana-example-apiserver -trimpath -tags=osusergo,pro ./pkg/cmd/grafana-example-apiserver; fi'
time=2024-04-24T15:13:15.394Z level=INFO msg="done building directory" artifact=deb:pro:linux/amd64/dynamic filename=bin/grafana-pro/linux/amd64/dynamic service=ArtifactHandler
time=2024-04-24T15:13:15.394Z level=INFO msg="getting dependencies..." artifact=10.1.0 filename=deb:pro:linux/amd64/dynamic/grafana-enterprise/public service=ArtifactHandler
time=2024-04-24T15:13:15.394Z level=INFO msg="got dependencies" artifact=10.1.0 filename=deb:pro:linux/amd64/dynamic/grafana-enterprise/public service=ArtifactHandler count=0
time=2024-04-24T15:13:15.394Z level=INFO msg="getting builder..." artifact=10.1.0 filename=deb:pro:linux/amd64/dynamic/grafana-enterprise/public service=ArtifactHandler
time=2024-04-24T15:13:59.215Z level=INFO msg="got builder" artifact=10.1.0 filename=deb:pro:linux/amd64/dynamic/grafana-enterprise/public service=ArtifactHandler
time=2024-04-24T15:13:59.215Z level=INFO msg="building directory..." artifact=10.1.0 filename=deb:pro:linux/amd64/dynamic/grafana-enterprise/public service=ArtifactHandler
time=2024-04-24T15:13:59.215Z level=INFO msg="done building directory" artifact=10.1.0 filename=deb:pro:linux/amd64/dynamic/grafana-enterprise/public service=ArtifactHandler
time=2024-04-24T15:13:59.215Z level=INFO msg="getting dependencies..." artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/npm-packages service=ArtifactHandler
time=2024-04-24T15:13:59.215Z level=INFO msg="got dependencies" artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/npm-packages service=ArtifactHandler count=0
time=2024-04-24T15:13:59.215Z level=INFO msg="getting builder..." artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/npm-packages service=ArtifactHandler
time=2024-04-24T15:13:59.239Z level=INFO msg="got builder" artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/npm-packages service=ArtifactHandler
time=2024-04-24T15:13:59.239Z level=INFO msg="building directory..." artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/npm-packages service=ArtifactHandler
time=2024-04-24T15:13:59.239Z level=INFO msg="done building directory" artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/npm-packages service=ArtifactHandler
time=2024-04-24T15:13:59.239Z level=INFO msg="getting dependencies..." artifact=deb:pro:linux/amd64/dynamic filename=bin/bundled-plugins service=ArtifactHandler
time=2024-04-24T15:13:59.239Z level=INFO msg="got dependencies" artifact=deb:pro:linux/amd64/dynamic filename=bin/bundled-plugins service=ArtifactHandler count=0
time=2024-04-24T15:13:59.239Z level=INFO msg="getting builder..." artifact=deb:pro:linux/amd64/dynamic filename=bin/bundled-plugins service=ArtifactHandler
time=2024-04-24T15:13:59.287Z level=INFO msg="got builder" artifact=deb:pro:linux/amd64/dynamic filename=bin/bundled-plugins service=ArtifactHandler
time=2024-04-24T15:13:59.287Z level=INFO msg="building directory..." artifact=deb:pro:linux/amd64/dynamic filename=bin/bundled-plugins service=ArtifactHandler
time=2024-04-24T15:13:59.287Z level=INFO msg="done building directory" artifact=deb:pro:linux/amd64/dynamic filename=bin/bundled-plugins service=ArtifactHandler
time=2024-04-24T15:13:59.287Z level=INFO msg="getting dependencies..." artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/storybook service=ArtifactHandler
time=2024-04-24T15:13:59.287Z level=INFO msg="got dependencies" artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/storybook service=ArtifactHandler count=0
time=2024-04-24T15:13:59.287Z level=INFO msg="getting builder..." artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/storybook service=ArtifactHandler
time=2024-04-24T15:13:59.309Z level=INFO msg="got builder" artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/storybook service=ArtifactHandler
time=2024-04-24T15:13:59.309Z level=INFO msg="building directory..." artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/storybook service=ArtifactHandler
time=2024-04-24T15:13:59.309Z level=INFO msg="done building directory" artifact=deb:pro:linux/amd64/dynamic filename=10.1.0/storybook service=ArtifactHandler
time=2024-04-24T15:13:59.309Z level=INFO msg="getting builder..." artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.tar.gz service=ArtifactHandler
time=2024-04-24T15:13:59.309Z level=INFO msg="got builder" artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.tar.gz service=ArtifactHandler
time=2024-04-24T15:13:59.309Z level=INFO msg="building file..." artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.tar.gz service=ArtifactHandler
time=2024-04-24T15:13:59.309Z level=INFO msg="done building file" artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.tar.gz service=ArtifactHandler
time=2024-04-24T15:13:59.309Z level=INFO msg="getting builder..." artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb service=ArtifactHandler
time=2024-04-24T15:13:59.309Z level=INFO msg="got builder" artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb service=ArtifactHandler
time=2024-04-24T15:13:59.309Z level=INFO msg="building file..." artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb service=ArtifactHandler
time=2024-04-24T15:13:59.309Z level=INFO msg="done building file" artifact=deb:pro:linux/amd64/dynamic filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb service=ArtifactHandler
time=2024-04-24T15:13:59.309Z level=INFO msg="Done adding artifact" filename=grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb artifact=deb:pro:linux/amd64/dynamic
time=2024-04-24T15:13:59.309Z level=INFO msg="Exporting artifacts..."
time=2024-04-24T15:13:59.309Z level=INFO msg="Started exporting artifact..." artifact=deb:pro:linux/amd64/dynamic action=export
time=2024-04-24T15:13:59.309Z level=INFO msg="Acquiring semaphore" artifact=deb:pro:linux/amd64/dynamic action=export
time=2024-04-24T15:13:59.309Z level=INFO msg="Acquired semaphore" artifact=deb:pro:linux/amd64/dynamic action=export
time=2024-04-24T15:13:59.309Z level=INFO msg="Exporting artifact" artifact=deb:pro:linux/amd64/dynamic action=export
error exporting artifact 'grafana-pro_10.1.0_12345_linux_amd64-dynamic.deb': input: container.from.withDirectory.withDirectory.withDirectory.withDirectory.withFile.withExec.withDirectory.withDirectory.withDirectory.withFile.withWorkdir.withExec.file resolve: process "make gen-go WIRE_TAGS=pro" did not complete successfully: exit code: 2

Stdout:
(re)installing /go/bin/wire-v0.5.0
generate go files
/go/bin/wire-v0.5.0 gen -tags pro ./pkg/server
Stderr:
find: scripts/drone: No such file or directory
go: downloading github.com/google/wire v0.6.0
go: downloading github.com/google/subcommands v1.2.0
go: downloading golang.org/x/tools v0.17.0
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading golang.org/x/mod v0.14.0
wire: /src/pkg/server/wireexts_enterprise.go:296:10: undefined: tracing.ProvideTracingConfig
wire: generate failed
make: *** [Makefile:113: gen-go] Error 1
exit status 1
exit status 1

@papagian
Copy link
Contributor

/deploy-to-hg --enterprise-ref backport-86857-to-v10.4.x

@ephemeral-instances-bot
Copy link

  • Preparing your instance. A comment containing your instance's url will be added to this PR when the instance is ready.
  • Your instance will be ready in ~10 minutes. Follow the workflow progress
  • Slack channel: #proj-ephemeral-hg-instances
  • Building instance with backport-86857-to-v10.4.x oss branch and backport-86857-to-v10.4.x enterprise branch. How to choose a branch

@ephemeral-instances-bot
Copy link

@papagian papagian merged commit 3075d2d into v10.4.x Apr 24, 2024
20 checks passed
@papagian papagian deleted the backport-86857-to-v10.4.x branch April 24, 2024 15:37
@fabrizio-grafana fabrizio-grafana modified the milestones: 10.4.x, 10.4.3 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants