diff --git a/.drone.yml b/.drone.yml index d026d45679c..b583de99033 100644 --- a/.drone.yml +++ b/.drone.yml @@ -96,6 +96,36 @@ steps: TEST_MAX_WORKERS: 50% image: grafana/build-container:1.4.3 name: test-frontend +- commands: + - apt-get update + - apt-get install -yq postgresql-client + - dockerize -wait tcp://postgres:5432 -timeout 120s + - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql + - go clean -testcache + - ./bin/grabpl integration-tests --database postgres + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: postgres + PGPASSWORD: grafanatest + POSTGRES_HOST: postgres + image: grafana/build-container:1.4.3 + name: postgres-integration-tests +- commands: + - apt-get update + - apt-get install -yq default-mysql-client + - dockerize -wait tcp://mysql:3306 -timeout 120s + - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root + -prootpass + - go clean -testcache + - ./bin/grabpl integration-tests --database mysql + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: mysql + MYSQL_HOST: mysql + image: grafana/build-container:1.4.3 + name: mysql-integration-tests - commands: - ./bin/grabpl build-backend --jobs 8 --edition oss --build-id ${DRONE_BUILD_NUMBER} --variants linux-x64,linux-x64-musl,osx64,win64,armv6 --no-pull-enterprise @@ -225,38 +255,6 @@ steps: dry_run: true edition: oss ubuntu: false -- commands: - - apt-get update - - apt-get install -yq postgresql-client - - dockerize -wait tcp://postgres:5432 -timeout 120s - - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql - - go clean -testcache - - ./bin/grabpl integration-tests --database postgres - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: postgres - PGPASSWORD: grafanatest - POSTGRES_HOST: postgres - image: grafana/build-container:1.4.3 - name: postgres-integration-tests -- commands: - - apt-get update - - apt-get install -yq default-mysql-client - - dockerize -wait tcp://mysql:3306 -timeout 120s - - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root - -prootpass - - go clean -testcache - - ./bin/grabpl integration-tests --database mysql - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: mysql - MYSQL_HOST: mysql - image: grafana/build-container:1.4.3 - name: mysql-integration-tests trigger: event: - pull_request @@ -370,6 +368,36 @@ steps: TEST_MAX_WORKERS: 50% image: grafana/build-container:1.4.3 name: test-frontend +- commands: + - apt-get update + - apt-get install -yq postgresql-client + - dockerize -wait tcp://postgres:5432 -timeout 120s + - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql + - go clean -testcache + - ./bin/grabpl integration-tests --database postgres + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: postgres + PGPASSWORD: grafanatest + POSTGRES_HOST: postgres + image: grafana/build-container:1.4.3 + name: postgres-integration-tests +- commands: + - apt-get update + - apt-get install -yq default-mysql-client + - dockerize -wait tcp://mysql:3306 -timeout 120s + - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root + -prootpass + - go clean -testcache + - ./bin/grabpl integration-tests --database mysql + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: mysql + MYSQL_HOST: mysql + image: grafana/build-container:1.4.3 + name: mysql-integration-tests - commands: - ./bin/grabpl build-backend --jobs 8 --edition oss --build-id ${DRONE_BUILD_NUMBER} --no-pull-enterprise @@ -540,38 +568,6 @@ steps: ubuntu: true username: from_secret: docker_user -- commands: - - apt-get update - - apt-get install -yq postgresql-client - - dockerize -wait tcp://postgres:5432 -timeout 120s - - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql - - go clean -testcache - - ./bin/grabpl integration-tests --database postgres - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: postgres - PGPASSWORD: grafanatest - POSTGRES_HOST: postgres - image: grafana/build-container:1.4.3 - name: postgres-integration-tests -- commands: - - apt-get update - - apt-get install -yq default-mysql-client - - dockerize -wait tcp://mysql:3306 -timeout 120s - - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root - -prootpass - - go clean -testcache - - ./bin/grabpl integration-tests --database mysql - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: mysql - MYSQL_HOST: mysql - image: grafana/build-container:1.4.3 - name: mysql-integration-tests - commands: - ./scripts/circle-release-canary-packages.sh depends_on: @@ -585,8 +581,6 @@ steps: - ./bin/grabpl upload-packages --edition oss --packages-bucket grafana-downloads depends_on: - end-to-end-tests - - mysql-integration-tests - - postgres-integration-tests environment: GCP_GRAFANA_UPLOAD_KEY: from_secret: gcp_key @@ -827,6 +821,36 @@ steps: TEST_MAX_WORKERS: 50% image: grafana/build-container:1.4.3 name: test-frontend +- commands: + - apt-get update + - apt-get install -yq postgresql-client + - dockerize -wait tcp://postgres:5432 -timeout 120s + - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql + - go clean -testcache + - ./bin/grabpl integration-tests --database postgres + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: postgres + PGPASSWORD: grafanatest + POSTGRES_HOST: postgres + image: grafana/build-container:1.4.3 + name: postgres-integration-tests +- commands: + - apt-get update + - apt-get install -yq default-mysql-client + - dockerize -wait tcp://mysql:3306 -timeout 120s + - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root + -prootpass + - go clean -testcache + - ./bin/grabpl integration-tests --database mysql + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: mysql + MYSQL_HOST: mysql + image: grafana/build-container:1.4.3 + name: mysql-integration-tests - commands: - ./bin/grabpl build-backend --jobs 8 --edition oss --github-token $${GITHUB_TOKEN} --no-pull-enterprise ${DRONE_TAG} @@ -949,38 +973,6 @@ steps: ubuntu: true username: from_secret: docker_user -- commands: - - apt-get update - - apt-get install -yq postgresql-client - - dockerize -wait tcp://postgres:5432 -timeout 120s - - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql - - go clean -testcache - - ./bin/grabpl integration-tests --database postgres - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: postgres - PGPASSWORD: grafanatest - POSTGRES_HOST: postgres - image: grafana/build-container:1.4.3 - name: postgres-integration-tests -- commands: - - apt-get update - - apt-get install -yq default-mysql-client - - dockerize -wait tcp://mysql:3306 -timeout 120s - - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root - -prootpass - - go clean -testcache - - ./bin/grabpl integration-tests --database mysql - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: mysql - MYSQL_HOST: mysql - image: grafana/build-container:1.4.3 - name: mysql-integration-tests - commands: - yarn storybook:build - ./bin/grabpl verify-storybook @@ -1003,8 +995,6 @@ steps: - ./bin/grabpl upload-packages --edition oss --packages-bucket grafana-downloads depends_on: - end-to-end-tests - - mysql-integration-tests - - postgres-integration-tests environment: GCP_GRAFANA_UPLOAD_KEY: from_secret: gcp_key @@ -1209,6 +1199,36 @@ steps: TEST_MAX_WORKERS: 50% image: grafana/build-container:1.4.3 name: test-frontend +- commands: + - apt-get update + - apt-get install -yq postgresql-client + - dockerize -wait tcp://postgres:5432 -timeout 120s + - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql + - go clean -testcache + - ./bin/grabpl integration-tests --database postgres + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: postgres + PGPASSWORD: grafanatest + POSTGRES_HOST: postgres + image: grafana/build-container:1.4.3 + name: postgres-integration-tests +- commands: + - apt-get update + - apt-get install -yq default-mysql-client + - dockerize -wait tcp://mysql:3306 -timeout 120s + - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root + -prootpass + - go clean -testcache + - ./bin/grabpl integration-tests --database mysql + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: mysql + MYSQL_HOST: mysql + image: grafana/build-container:1.4.3 + name: mysql-integration-tests - commands: - ./bin/grabpl build-backend --jobs 8 --edition enterprise --github-token $${GITHUB_TOKEN} --no-pull-enterprise ${DRONE_TAG} @@ -1367,38 +1387,6 @@ steps: ubuntu: true username: from_secret: docker_user -- commands: - - apt-get update - - apt-get install -yq postgresql-client - - dockerize -wait tcp://postgres:5432 -timeout 120s - - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql - - go clean -testcache - - ./bin/grabpl integration-tests --database postgres - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: postgres - PGPASSWORD: grafanatest - POSTGRES_HOST: postgres - image: grafana/build-container:1.4.3 - name: postgres-integration-tests -- commands: - - apt-get update - - apt-get install -yq default-mysql-client - - dockerize -wait tcp://mysql:3306 -timeout 120s - - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root - -prootpass - - go clean -testcache - - ./bin/grabpl integration-tests --database mysql - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: mysql - MYSQL_HOST: mysql - image: grafana/build-container:1.4.3 - name: mysql-integration-tests - commands: - dockerize -wait tcp://redis:6379/0 -timeout 120s - ./bin/grabpl integration-tests @@ -1432,8 +1420,6 @@ steps: - ./bin/grabpl upload-packages --edition enterprise --packages-bucket grafana-downloads depends_on: - end-to-end-tests - - mysql-integration-tests - - postgres-integration-tests - redis-integration-tests - memcached-integration-tests environment: @@ -1496,8 +1482,6 @@ steps: - ./bin/grabpl upload-packages --edition enterprise2 --packages-bucket grafana-downloads-enterprise2 depends_on: - end-to-end-tests-enterprise2 - - mysql-integration-tests - - postgres-integration-tests - redis-integration-tests - memcached-integration-tests environment: @@ -1771,6 +1755,36 @@ steps: TEST_MAX_WORKERS: 50% image: grafana/build-container:1.4.3 name: test-frontend +- commands: + - apt-get update + - apt-get install -yq postgresql-client + - dockerize -wait tcp://postgres:5432 -timeout 120s + - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql + - go clean -testcache + - ./bin/grabpl integration-tests --database postgres + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: postgres + PGPASSWORD: grafanatest + POSTGRES_HOST: postgres + image: grafana/build-container:1.4.3 + name: postgres-integration-tests +- commands: + - apt-get update + - apt-get install -yq default-mysql-client + - dockerize -wait tcp://mysql:3306 -timeout 120s + - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root + -prootpass + - go clean -testcache + - ./bin/grabpl integration-tests --database mysql + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: mysql + MYSQL_HOST: mysql + image: grafana/build-container:1.4.3 + name: mysql-integration-tests - commands: - ./bin/grabpl build-backend --jobs 8 --edition oss --github-token $${GITHUB_TOKEN} --no-pull-enterprise v7.3.0-test @@ -1885,38 +1899,6 @@ steps: dry_run: true edition: oss ubuntu: true -- commands: - - apt-get update - - apt-get install -yq postgresql-client - - dockerize -wait tcp://postgres:5432 -timeout 120s - - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql - - go clean -testcache - - ./bin/grabpl integration-tests --database postgres - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: postgres - PGPASSWORD: grafanatest - POSTGRES_HOST: postgres - image: grafana/build-container:1.4.3 - name: postgres-integration-tests -- commands: - - apt-get update - - apt-get install -yq default-mysql-client - - dockerize -wait tcp://mysql:3306 -timeout 120s - - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root - -prootpass - - go clean -testcache - - ./bin/grabpl integration-tests --database mysql - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: mysql - MYSQL_HOST: mysql - image: grafana/build-container:1.4.3 - name: mysql-integration-tests - commands: - yarn storybook:build - ./bin/grabpl verify-storybook @@ -1939,8 +1921,6 @@ steps: - ./bin/grabpl upload-packages --edition oss --packages-bucket grafana-downloads-test depends_on: - end-to-end-tests - - mysql-integration-tests - - postgres-integration-tests environment: GCP_GRAFANA_UPLOAD_KEY: from_secret: gcp_key @@ -2142,6 +2122,36 @@ steps: TEST_MAX_WORKERS: 50% image: grafana/build-container:1.4.3 name: test-frontend +- commands: + - apt-get update + - apt-get install -yq postgresql-client + - dockerize -wait tcp://postgres:5432 -timeout 120s + - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql + - go clean -testcache + - ./bin/grabpl integration-tests --database postgres + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: postgres + PGPASSWORD: grafanatest + POSTGRES_HOST: postgres + image: grafana/build-container:1.4.3 + name: postgres-integration-tests +- commands: + - apt-get update + - apt-get install -yq default-mysql-client + - dockerize -wait tcp://mysql:3306 -timeout 120s + - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root + -prootpass + - go clean -testcache + - ./bin/grabpl integration-tests --database mysql + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: mysql + MYSQL_HOST: mysql + image: grafana/build-container:1.4.3 + name: mysql-integration-tests - commands: - ./bin/grabpl build-backend --jobs 8 --edition enterprise --github-token $${GITHUB_TOKEN} --no-pull-enterprise v7.3.0-test @@ -2292,38 +2302,6 @@ steps: dry_run: true edition: enterprise ubuntu: true -- commands: - - apt-get update - - apt-get install -yq postgresql-client - - dockerize -wait tcp://postgres:5432 -timeout 120s - - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql - - go clean -testcache - - ./bin/grabpl integration-tests --database postgres - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: postgres - PGPASSWORD: grafanatest - POSTGRES_HOST: postgres - image: grafana/build-container:1.4.3 - name: postgres-integration-tests -- commands: - - apt-get update - - apt-get install -yq default-mysql-client - - dockerize -wait tcp://mysql:3306 -timeout 120s - - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root - -prootpass - - go clean -testcache - - ./bin/grabpl integration-tests --database mysql - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: mysql - MYSQL_HOST: mysql - image: grafana/build-container:1.4.3 - name: mysql-integration-tests - commands: - dockerize -wait tcp://redis:6379/0 -timeout 120s - ./bin/grabpl integration-tests @@ -2357,8 +2335,6 @@ steps: - ./bin/grabpl upload-packages --edition enterprise --packages-bucket grafana-downloads-test depends_on: - end-to-end-tests - - mysql-integration-tests - - postgres-integration-tests - redis-integration-tests - memcached-integration-tests environment: @@ -2421,8 +2397,6 @@ steps: - ./bin/grabpl upload-packages --edition enterprise2 --packages-bucket grafana-downloads-test depends_on: - end-to-end-tests-enterprise2 - - mysql-integration-tests - - postgres-integration-tests - redis-integration-tests - memcached-integration-tests environment: @@ -2701,6 +2675,36 @@ steps: TEST_MAX_WORKERS: 50% image: grafana/build-container:1.4.3 name: test-frontend +- commands: + - apt-get update + - apt-get install -yq postgresql-client + - dockerize -wait tcp://postgres:5432 -timeout 120s + - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql + - go clean -testcache + - ./bin/grabpl integration-tests --database postgres + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: postgres + PGPASSWORD: grafanatest + POSTGRES_HOST: postgres + image: grafana/build-container:1.4.3 + name: postgres-integration-tests +- commands: + - apt-get update + - apt-get install -yq default-mysql-client + - dockerize -wait tcp://mysql:3306 -timeout 120s + - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root + -prootpass + - go clean -testcache + - ./bin/grabpl integration-tests --database mysql + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: mysql + MYSQL_HOST: mysql + image: grafana/build-container:1.4.3 + name: mysql-integration-tests - commands: - ./bin/grabpl build-backend --jobs 8 --edition oss --build-id ${DRONE_BUILD_NUMBER} --no-pull-enterprise @@ -2813,38 +2817,6 @@ steps: dry_run: true edition: oss ubuntu: true -- commands: - - apt-get update - - apt-get install -yq postgresql-client - - dockerize -wait tcp://postgres:5432 -timeout 120s - - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql - - go clean -testcache - - ./bin/grabpl integration-tests --database postgres - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: postgres - PGPASSWORD: grafanatest - POSTGRES_HOST: postgres - image: grafana/build-container:1.4.3 - name: postgres-integration-tests -- commands: - - apt-get update - - apt-get install -yq default-mysql-client - - dockerize -wait tcp://mysql:3306 -timeout 120s - - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root - -prootpass - - go clean -testcache - - ./bin/grabpl integration-tests --database mysql - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: mysql - MYSQL_HOST: mysql - image: grafana/build-container:1.4.3 - name: mysql-integration-tests - commands: - yarn storybook:build - ./bin/grabpl verify-storybook @@ -2867,8 +2839,6 @@ steps: - ./bin/grabpl upload-packages --edition oss --packages-bucket grafana-downloads depends_on: - end-to-end-tests - - mysql-integration-tests - - postgres-integration-tests environment: GCP_GRAFANA_UPLOAD_KEY: from_secret: gcp_key @@ -3044,6 +3014,36 @@ steps: TEST_MAX_WORKERS: 50% image: grafana/build-container:1.4.3 name: test-frontend +- commands: + - apt-get update + - apt-get install -yq postgresql-client + - dockerize -wait tcp://postgres:5432 -timeout 120s + - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql + - go clean -testcache + - ./bin/grabpl integration-tests --database postgres + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: postgres + PGPASSWORD: grafanatest + POSTGRES_HOST: postgres + image: grafana/build-container:1.4.3 + name: postgres-integration-tests +- commands: + - apt-get update + - apt-get install -yq default-mysql-client + - dockerize -wait tcp://mysql:3306 -timeout 120s + - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root + -prootpass + - go clean -testcache + - ./bin/grabpl integration-tests --database mysql + depends_on: + - initialize + environment: + GRAFANA_TEST_DB: mysql + MYSQL_HOST: mysql + image: grafana/build-container:1.4.3 + name: mysql-integration-tests - commands: - ./bin/grabpl build-backend --jobs 8 --edition enterprise --build-id ${DRONE_BUILD_NUMBER} --no-pull-enterprise @@ -3190,38 +3190,6 @@ steps: dry_run: true edition: enterprise ubuntu: true -- commands: - - apt-get update - - apt-get install -yq postgresql-client - - dockerize -wait tcp://postgres:5432 -timeout 120s - - psql -p 5432 -h postgres -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql - - go clean -testcache - - ./bin/grabpl integration-tests --database postgres - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: postgres - PGPASSWORD: grafanatest - POSTGRES_HOST: postgres - image: grafana/build-container:1.4.3 - name: postgres-integration-tests -- commands: - - apt-get update - - apt-get install -yq default-mysql-client - - dockerize -wait tcp://mysql:3306 -timeout 120s - - cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql -P 3306 -u root - -prootpass - - go clean -testcache - - ./bin/grabpl integration-tests --database mysql - depends_on: - - test-backend - - test-frontend - environment: - GRAFANA_TEST_DB: mysql - MYSQL_HOST: mysql - image: grafana/build-container:1.4.3 - name: mysql-integration-tests - commands: - yarn storybook:build - ./bin/grabpl verify-storybook @@ -3264,8 +3232,6 @@ steps: - ./bin/grabpl upload-packages --edition enterprise --packages-bucket grafana-downloads depends_on: - end-to-end-tests - - mysql-integration-tests - - postgres-integration-tests - redis-integration-tests - memcached-integration-tests environment: @@ -3328,8 +3294,6 @@ steps: - ./bin/grabpl upload-packages --edition enterprise2 --packages-bucket grafana-downloads-enterprise2 depends_on: - end-to-end-tests-enterprise2 - - mysql-integration-tests - - postgres-integration-tests - redis-integration-tests - memcached-integration-tests environment: @@ -3485,6 +3449,6 @@ kind: secret name: drone_token --- kind: signature -hmac: 0d26eda19dc6e530d02c734704c8a9d01beb5082c7e14b2609577b8695ed06f5 +hmac: 103fe906b04e8a336e3113007921d62a57107bc7a86a14442b438fa54406c084 ... diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 04fcddc4b15..ad210108d6c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -14,13 +14,15 @@ # Documentation owner: Jita Chatterjee /docs/ @grafana/docs-squad @pkolyvas /contribute/ @marcusolsson @grafana/docs-squad @pkolyvas -/docs/sources/developers/plugins/ @marcusolsson @grafana/docs-squad +/docs/sources/developers/plugins/ @marcusolsson @grafana/docs-squad @grafana/plugins-platform +/docs/sources/developers/plugins/backend @marcusolsson @grafana/docs-squad @grafana/plugins-platform-backend /docs/sources/enterprise/ @osg-grafana @grafana/docs-squad # Backend code *.go @grafana/backend-platform go.mod @grafana/backend-platform go.sum @grafana/backend-platform +/.bingo @grafana/backend-platform # Continuous Integration .drone.yml @grafana/grafana-release-eng @@ -56,25 +58,31 @@ go.sum @grafana/backend-platform /pkg/services/libraryelements @grafana/user-essentials /pkg/services/librarypanels @grafana/user-essentials +# Plugins +/pkg/api/pluginproxy @grafana/plugins-platform-backend +/pkg/plugins @grafana/plugins-platform-backend +/pkg/services/datasourceproxy @grafana/plugins-platform-backend +/pkg/services/datasources @grafana/plugins-platform-backend + # Backend code docs /contribute/style-guides/backend.md @grafana/backend-platform /contribute/architecture/backend @grafana/backend-platform /contribute/engineering/backend @grafana/backend-platform /e2e @grafana/user-essentials -/packages @grafana/user-essentials @grafana/plugins-platform @grafana/grafana-bi-squad +/packages @grafana/user-essentials @grafana/plugins-platform-frontend @grafana/grafana-bi-squad /packages/grafana-e2e-selectors @grafana/user-essentials /packages/grafana-e2e @grafana/user-essentials -/packages/grafana-toolkit @grafana/plugins-platform -/packages/grafana-ui/.storybook @grafana/plugins-platform +/packages/grafana-toolkit @grafana/plugins-platform-frontend +/packages/grafana-ui/.storybook @grafana/plugins-platform-frontend /packages/grafana-ui/src/components/DateTimePickers @grafana/grafana-bi-squad /packages/grafana-ui/src/components/GraphNG @grafana/grafana-bi-squad /packages/grafana-ui/src/components/Table @grafana/grafana-bi-squad /packages/grafana-ui/src/components/TimeSeries @grafana/grafana-bi-squad /packages/grafana-ui/src/components/uPlot @grafana/grafana-bi-squad -/packages/grafana-ui/src/utils/storybook @grafana/plugins-platform +/packages/grafana-ui/src/utils/storybook @grafana/plugins-platform-frontend /packages/jaeger-ui-components/ @grafana/observability-squad -/plugins-bundled @grafana/plugins-platform +/plugins-bundled @grafana/plugins-platform-frontend /public @grafana/user-essentials /public/app/core/components/TimePicker @grafana/grafana-bi-squad /public/app/features/canvas/ @grafana/grafana-edge-squad @@ -93,11 +101,11 @@ go.sum @grafana/backend-platform /public/app/plugins/panel/geomap @grafana/grafana-edge-squad /public/app/plugins/panel/canvas @grafana/grafana-edge-squad /public/app/plugins/panel/icon @grafana/grafana-edge-squad -/scripts/build/release-packages.sh @grafana/plugins-platform -/scripts/circle-release-next-packages.sh @grafana/plugins-platform -/scripts/ci-frontend-metrics.sh @grafana/user-essentials @grafana/plugins-platform @grafana/grafana-bi-squad -/scripts/ci-reference-docs-build.sh @grafana/plugins-platform -/scripts/ci-reference-docs-lint.sh @grafana/plugins-platform +/scripts/build/release-packages.sh @grafana/plugins-platform-frontend +/scripts/circle-release-next-packages.sh @grafana/plugins-platform-frontend +/scripts/ci-frontend-metrics.sh @grafana/user-essentials @grafana/plugins-platform-frontend @grafana/grafana-bi-squad +/scripts/ci-reference-docs-build.sh @grafana/plugins-platform-frontend +/scripts/ci-reference-docs-lint.sh @grafana/plugins-platform-frontend /scripts/grunt @grafana/frontend-ops /scripts/webpack @grafana/frontend-ops /scripts/generate-a11y-report.sh @grafana/user-essentials @@ -111,7 +119,7 @@ lerna.json @grafana/frontend-ops .pa11yci-pr.conf.js @grafana/user-essentials # @grafana/ui component documentation -*.mdx @marcusolsson @jessover9000 @grafana/plugins-platform +*.mdx @marcusolsson @jessover9000 @grafana/plugins-platform-frontend # Core datasources /public/app/plugins/datasource/cloudwatch @grafana/cloud-datasources @grafana/observability-squad diff --git a/Makefile b/Makefile index 8daf01d7f24..2a8fad66bd2 100644 --- a/Makefile +++ b/Makefile @@ -153,7 +153,7 @@ clean: ## Clean up intermediate build artifacts. # This repository's configuration is protected (https://readme.drone.io/signature/). # Use this make target to regenerate the configuration YAML files when # you modify starlark files. -drone: +drone: $(DRONE) @if [ "$(DRONE_VERSION)" != "1.4.0" ]; then\ echo "WARN: You are using drone-cli ${DRONE_VERSION}. Please update your LOCAL version to 1.4.0. Using latest bingo version...";\ fi diff --git a/docs/sources/auth/ldap.md b/docs/sources/auth/ldap.md index ec161a2353e..15b3f29cbd3 100644 --- a/docs/sources/auth/ldap.md +++ b/docs/sources/auth/ldap.md @@ -11,7 +11,7 @@ weight = 300 The LDAP integration in Grafana allows your Grafana users to login with their LDAP credentials. You can also specify mappings between LDAP group memberships and Grafana Organization user roles. -> [Enhanced LDAP authentication]({{< relref "../enterprise/enhanced_ldap.md" >}}) is available in [Grafana Cloud Pro and Advanced](https://grafana.com/docs/grafana-cloud/) and in [Grafana Enterprise]({{< relref "../enterprise" >}}). +> [Enhanced LDAP authentication]({{< relref "../enterprise/enhanced_ldap.md" >}}) is available in [Grafana Cloud Advanced](https://grafana.com/docs/grafana-cloud/) and in [Grafana Enterprise]({{< relref "../enterprise" >}}). > Refer to [Fine-grained access control]({{< relref "../enterprise/access-control/_index.md" >}}) in Grafana Enterprise to understand how you can control access with fine-grained permissions. diff --git a/docs/sources/enterprise/enhanced_ldap.md b/docs/sources/enterprise/enhanced_ldap.md index 8ad81b76d68..f66ae04c00c 100644 --- a/docs/sources/enterprise/enhanced_ldap.md +++ b/docs/sources/enterprise/enhanced_ldap.md @@ -9,7 +9,7 @@ weight = 600 The enhanced LDAP integration adds additional functionality on top of the [LDAP integration]({{< relref "../auth/ldap.md" >}}) available in the open source edition of Grafana. -> Enhanced LDAP integration is only available in Grafana Enterprise. +> Enhanced LDAP integration is only available in [Grafana Cloud Advanced](https://grafana.com/docs/grafana-cloud/) and in [Grafana Enterprise]({{< relref "../enterprise" >}}). > Refer to [Fine-grained access control]({{< relref "../enterprise/access-control/_index.md" >}}) in Grafana Enterprise to understand how you can control access with fine-grained permissions. diff --git a/emails/assets/css/style.css b/emails/assets/css/style.css index 83f8d2c67a6..065421a173d 100644 --- a/emails/assets/css/style.css +++ b/emails/assets/css/style.css @@ -91,7 +91,8 @@ margin-bottom: 25px; .footer { background-color: #2e2e2e; color: #999999; - margin-top: 20px; + margin: 0 auto; + width: 100%; } @media only screen and (max-width: 600px) { diff --git a/emails/templates/ng_alert_notification.html b/emails/templates/ng_alert_notification.html index d68c13e9b02..ec700434b71 100644 --- a/emails/templates/ng_alert_notification.html +++ b/emails/templates/ng_alert_notification.html @@ -5,21 +5,21 @@
[[ .Name ]]: [[ .Value ]]
+[[ .Name ]]: [[ .Value ]]
[[ end ]]{error.message}
; + } + }} +{error.message}
; + } + }} +(pr
const PanelComponent = plugin.panel;
return (
- {{ .Name }}: {{ .Value }} {{ .Name }}: {{ .Value }}
diff --git a/public/app/plugins/datasource/prometheus/components/PrometheusMetricsBrowser.tsx b/public/app/plugins/datasource/prometheus/components/PrometheusMetricsBrowser.tsx
index c91b0fb3436..acd086f25fe 100644
--- a/public/app/plugins/datasource/prometheus/components/PrometheusMetricsBrowser.tsx
+++ b/public/app/plugins/datasource/prometheus/components/PrometheusMetricsBrowser.tsx
@@ -17,8 +17,6 @@ import { FixedSizeList } from 'react-window';
import { GrafanaTheme } from '@grafana/data';
// Hard limit on labels to render
-const MAX_LABEL_COUNT = 10000;
-const MAX_VALUE_COUNT = 50000;
const EMPTY_SELECTOR = '{}';
const METRIC_LABEL = '__name__';
const LIST_ITEM_SIZE = 25;
@@ -321,12 +319,6 @@ export class UnthemedPrometheusMetricsBrowser extends React.Component
+
diff --git a/public/emails/invited_to_org.html b/public/emails/invited_to_org.html
index 25b4ef8b034..b5459da967c 100644
--- a/public/emails/invited_to_org.html
+++ b/public/emails/invited_to_org.html
@@ -257,7 +257,7 @@ text-decoration: underline;
-
+
-
diff --git a/public/emails/new_user_invite.html b/public/emails/new_user_invite.html
index 89f465a8446..171d9bc13ef 100644
--- a/public/emails/new_user_invite.html
+++ b/public/emails/new_user_invite.html
@@ -258,7 +258,7 @@ text-decoration: underline;
-
+
{{ end }}
+
-
+
diff --git a/public/emails/ng_alert_notification.html b/public/emails/ng_alert_notification.html
index 1eaae4fef27..7d952b80f69 100644
--- a/public/emails/ng_alert_notification.html
+++ b/public/emails/ng_alert_notification.html
@@ -211,21 +211,21 @@ text-decoration: underline;
{{ end }}
{{ range .Annotations.SortedPairs }}
-
-
Labels:
-
-
+
+ Labels:
+
{{ range .Labels.SortedPairs }}
-
@@ -307,7 +307,7 @@ text-decoration: underline;
+
{{ if .SilenceURL }}
@@ -286,7 +286,7 @@ text-decoration: underline;
Firing
-
+
{{ .Labels.alertname }}
Resolved
-
+
{{ .Labels.alertname }}
@@ -322,15 +322,16 @@ text-decoration: underline;
+
diff --git a/public/emails/reset_password.html b/public/emails/reset_password.html
index 697928655ed..5e8ce659a73 100644
--- a/public/emails/reset_password.html
+++ b/public/emails/reset_password.html
@@ -252,7 +252,7 @@ text-decoration: underline;
-
+
diff --git a/public/emails/signup_started.html b/public/emails/signup_started.html
index dab02e572e6..f95729c1acf 100644
--- a/public/emails/signup_started.html
+++ b/public/emails/signup_started.html
@@ -256,7 +256,7 @@ text-decoration: underline;
-
+
diff --git a/public/emails/welcome_on_signup.html b/public/emails/welcome_on_signup.html
index 921c96faae3..d71077453b5 100644
--- a/public/emails/welcome_on_signup.html
+++ b/public/emails/welcome_on_signup.html
@@ -258,7 +258,7 @@ text-decoration: underline;
-
+
diff --git a/public/test/jest-shim.ts b/public/test/jest-shim.ts
index 1343887f8b6..5b01becaaae 100644
--- a/public/test/jest-shim.ts
+++ b/public/test/jest-shim.ts
@@ -1,5 +1,3 @@
-declare var global: NodeJS.Global;
-
(global as any).requestAnimationFrame = (callback: any) => {
setTimeout(callback, 0);
};
diff --git a/scripts/drone/pipelines/main.star b/scripts/drone/pipelines/main.star
index 50c651d8f01..e741a767832 100644
--- a/scripts/drone/pipelines/main.star
+++ b/scripts/drone/pipelines/main.star
@@ -61,6 +61,8 @@ def get_steps(edition, is_downstream=False):
test_backend_step(edition=edition),
test_backend_integration_step(edition=edition),
test_frontend_step(),
+ postgres_integration_tests_step(),
+ mysql_integration_tests_step(),
build_backend_step(edition=edition, ver_mode=ver_mode, is_downstream=is_downstream),
build_frontend_step(edition=edition, ver_mode=ver_mode, is_downstream=is_downstream),
build_plugins_step(edition=edition, sign=True),
@@ -90,8 +92,6 @@ def get_steps(edition, is_downstream=False):
copy_packages_for_docker_step(),
build_docker_images_step(edition=edition, ver_mode=ver_mode, publish=publish),
build_docker_images_step(edition=edition, ver_mode=ver_mode, ubuntu=True, publish=publish),
- postgres_integration_tests_step(),
- mysql_integration_tests_step(),
])
if include_enterprise2:
diff --git a/scripts/drone/pipelines/pr.star b/scripts/drone/pipelines/pr.star
index fdaa852afac..f5519773509 100644
--- a/scripts/drone/pipelines/pr.star
+++ b/scripts/drone/pipelines/pr.star
@@ -53,6 +53,8 @@ def pr_pipelines(edition):
test_backend_step(edition=edition),
test_backend_integration_step(edition=edition),
test_frontend_step(),
+ postgres_integration_tests_step(),
+ mysql_integration_tests_step(),
build_backend_step(edition=edition, ver_mode=ver_mode, variants=variants),
build_frontend_step(edition=edition, ver_mode=ver_mode),
build_plugins_step(edition=edition),
@@ -82,8 +84,6 @@ def pr_pipelines(edition):
build_docs_website_step(),
copy_packages_for_docker_step(),
build_docker_images_step(edition=edition, ver_mode=ver_mode, archs=['amd64',]),
- postgres_integration_tests_step(),
- mysql_integration_tests_step(),
])
if include_enterprise2:
diff --git a/scripts/drone/pipelines/release.star b/scripts/drone/pipelines/release.star
index 40590d9f0f0..72739465133 100644
--- a/scripts/drone/pipelines/release.star
+++ b/scripts/drone/pipelines/release.star
@@ -89,6 +89,8 @@ def get_steps(edition, ver_mode):
test_backend_step(edition=edition),
test_backend_integration_step(edition=edition),
test_frontend_step(),
+ postgres_integration_tests_step(),
+ mysql_integration_tests_step(),
build_backend_step(edition=edition, ver_mode=ver_mode),
build_frontend_step(edition=edition, ver_mode=ver_mode),
build_plugins_step(edition=edition, sign=True),
@@ -113,8 +115,6 @@ def get_steps(edition, ver_mode):
copy_packages_for_docker_step(),
build_docker_images_step(edition=edition, ver_mode=ver_mode, publish=should_publish),
build_docker_images_step(edition=edition, ver_mode=ver_mode, ubuntu=True, publish=should_publish),
- postgres_integration_tests_step(),
- mysql_integration_tests_step(),
])
build_storybook = build_storybook_step(edition=edition, ver_mode=ver_mode)
diff --git a/scripts/drone/steps/lib.star b/scripts/drone/steps/lib.star
index e76344c7345..2887f4a77a9 100644
--- a/scripts/drone/steps/lib.star
+++ b/scripts/drone/steps/lib.star
@@ -681,8 +681,7 @@ def postgres_integration_tests_step():
'name': 'postgres-integration-tests',
'image': build_image,
'depends_on': [
- 'test-backend',
- 'test-frontend',
+ 'initialize',
],
'environment': {
'PGPASSWORD': 'grafanatest',
@@ -706,8 +705,7 @@ def mysql_integration_tests_step():
'name': 'mysql-integration-tests',
'image': build_image,
'depends_on': [
- 'test-backend',
- 'test-frontend',
+ 'initialize',
],
'environment': {
'GRAFANA_TEST_DB': 'mysql',
@@ -795,8 +793,6 @@ def upload_packages_step(edition, ver_mode, is_downstream=False):
dependencies = [
'end-to-end-tests' + enterprise2_suffix(edition),
- 'mysql-integration-tests',
- 'postgres-integration-tests',
]
if edition in ('enterprise', 'enterprise2'):
diff --git a/yarn.lock b/yarn.lock
index 8b24e22fe10..b1458067172 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2383,7 +2383,7 @@ __metadata:
"@types/jquery": 3.3.38
"@types/lodash": 4.14.123
"@types/marked": 1.1.0
- "@types/node": 10.14.1
+ "@types/node": 14.17.27
"@types/papaparse": 5.2.0
"@types/react": 17.0.30
"@types/rollup-plugin-visualizer": 4.2.1
@@ -2413,7 +2413,7 @@ __metadata:
"@grafana/tsconfig": ^1.0.0-rc1
"@rollup/plugin-commonjs": 16.0.0
"@rollup/plugin-node-resolve": 10.0.0
- "@types/node": 13.7.7
+ "@types/node": 14.17.27
"@types/rollup-plugin-visualizer": 4.2.1
"@types/systemjs": ^0.20.6
commander: 5.0.0
@@ -2440,7 +2440,7 @@ __metadata:
"@mochajs/json-file-reporter": ^1.2.0
"@rollup/plugin-commonjs": 16.0.0
"@rollup/plugin-node-resolve": 10.0.0
- "@types/node": 13.7.7
+ "@types/node": 14.17.27
"@types/rollup-plugin-visualizer": 4.2.1
blink-diff: 1.0.13
commander: 5.0.0
@@ -2573,7 +2573,7 @@ __metadata:
"@types/fs-extra": ^9.0.13
"@types/inquirer": ^6.0.3
"@types/jest": 26.0.15
- "@types/node": ^12.0.4
+ "@types/node": ^14.0.0
"@types/prettier": ^2.4.0
"@types/react-dev-utils": ^9.0.4
"@types/rimraf": ^3.0.0
@@ -2684,7 +2684,7 @@ __metadata:
"@types/jquery": 3.3.38
"@types/lodash": 4.14.123
"@types/mock-raf": 1.0.2
- "@types/node": 10.14.1
+ "@types/node": 14.17.27
"@types/papaparse": 5.2.0
"@types/react": 17.0.30
"@types/react-beautiful-dnd": 13.1.1
@@ -7767,13 +7767,6 @@ __metadata:
languageName: node
linkType: hard
-"@types/node@npm:10.14.1":
- version: 10.14.1
- resolution: "@types/node@npm:10.14.1"
- checksum: be0881716c81f6355035fe64fa16d6830e3f27f1e657738c46dd5605d6c4248681ceb64f8df738bf3e2107df608c4a057668dd618fa32e5697be3959fa056c4c
- languageName: node
- linkType: hard
-
"@types/node@npm:12.20.24":
version: 12.20.24
resolution: "@types/node@npm:12.20.24"
@@ -7781,24 +7774,10 @@ __metadata:
languageName: node
linkType: hard
-"@types/node@npm:13.7.0":
- version: 13.7.0
- resolution: "@types/node@npm:13.7.0"
- checksum: ccc4eb30fd225dfdbf15307704b4acdb34fe57b13ff0942b1122723fe27b218d8d30915d7ff61f63e58a8213304ec3bd58bbb9cb0bcf13e687e57f5b25af6ec6
- languageName: node
- linkType: hard
-
-"@types/node@npm:13.7.7":
- version: 13.7.7
- resolution: "@types/node@npm:13.7.7"
- checksum: 834f382e965ddf6eb8aed11a949e48254cdcd7b29fa41e226c1b3d54f820e0e09cebb78db7ad20e6c18d688b7337b4376c6e08b598f49ac985ec6b07c524931a
- languageName: node
- linkType: hard
-
-"@types/node@npm:^12.0.4":
- version: 12.20.28
- resolution: "@types/node@npm:12.20.28"
- checksum: 09811db5eabb02062cc04ab887cf20dcae87e904ccbe4d1767ebd8c88ab31eeea9c62f6c94b16f52230a4e2f1ab0d8a411e3b3cb744c7d0e6fbc4fa5f0f25ba8
+"@types/node@npm:14.17.27, @types/node@npm:^14.0.0":
+ version: 14.17.27
+ resolution: "@types/node@npm:14.17.27"
+ checksum: 4f7eeaa329f4b2b9ff4bb0bb4582ad92e328a4e66f62d5b96ac4e3b51210ed092bb56726c30643beb860f6df633a29e08ed94adad2d573c85b4794d0bf0bbc06
languageName: node
linkType: hard
@@ -17673,7 +17652,7 @@ fsevents@~2.1.2:
"@types/logfmt": ^1.2.1
"@types/lru-cache": ^5.1.0
"@types/mousetrap": 1.6.3
- "@types/node": 13.7.0
+ "@types/node": 14.17.27
"@types/ol": ^6.5.1
"@types/papaparse": 5.2.0
"@types/pluralize": ^0.0.29