Commit graph

1783 commits

Author SHA1 Message Date
Hugo Häggmark
038f0ee778
Levitate: Pin dev dep and group workflow scripts (#125487)
* Levitate: Pin dev dep and group workflow scripts

  - Move all levitate scripts to .github/workflows/scripts/levitate/
  - Pin @grafana/levitate to 0.17.2 (was npm exec @latest)
  - Use yarn exec levitate so CI uses the version in yarn.lock

* chore: testing some breaking changes

* chore: testing levitate changes

* chore: testing levitate changes

* chore: revert all tests
2026-05-27 11:50:02 +02:00
Kevin Minehart Tenorio
dd498cb027
CI: remove pkg/build package (#124825)
* remove pkg/build package

* update go.mod

* simplify bump-version and release-pr

* Create PR as draft, fix issue with yarn

* open changelog pr as draft

* remove dagger.io dependency

* refactor pr-build-grafana.yml to build with docker and not dagger

* revert token broker attempt

* Add make build-msi

* Fix makefile and build-msi issues

* add build-msi to codeowners

* remove build-package from CODEOWNERS

* prettier msi/resources/LICENSE.md
2026-05-14 13:15:05 +02:00
Matheus Macabu
1609236c58
Reporting: Clean up csv encoding options feature flag (#124788) 2026-05-13 15:22:40 +02:00
dependabot[bot]
b087f50399
deps(go): bump golang.org/x/mod from 0.34.0 to 0.35.0 in /scripts/go-workspace (#124769)
deps(go): bump golang.org/x/mod in /scripts/go-workspace

Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.34.0 to 0.35.0.
- [Commits](https://github.com/golang/mod/compare/v0.34.0...v0.35.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-version: 0.35.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-13 11:44:56 +02:00
dependabot[bot]
ab9d5f227d
deps(go): bump golang.org/x/mod from 0.34.0 to 0.35.0 in /scripts/modowners (#124770)
deps(go): bump golang.org/x/mod in /scripts/modowners

Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.34.0 to 0.35.0.
- [Commits](https://github.com/golang/mod/compare/v0.34.0...v0.35.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-version: 0.35.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-13 11:16:11 +02:00
Timur Olzhabayev
89252a9fb3
docs: update doc references from plugins-platform handles to @grafana/grafana-catalog (#124474)
* docs: update doc references from plugins-platform handles to @grafana/grafana-catalog

* docs: update breaking-changes-guide handle to @grafana/grafana-catalog
2026-05-11 12:16:12 +02:00
Dave Henderson
c0a1aa85b7
Chore: Upgrade to Go 1.26.3 (#124435)
* Chore: Upgrade to Go 1.26.3

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* trigger ci

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2026-05-08 08:59:28 +02:00
Paul Marbach
f6b3e475c3
Frontend coverage: show regressed files and HTML report artifact on failure (#124305) 2026-05-07 14:38:52 -04:00
Nathan Vērzemnieks
09eca308d7
Build: Add zipkin to nightly build bundling (#124370) 2026-05-07 14:13:36 +02:00
Laura Fernández
129bb23103
Analytics Framework: Update documentation after moving it to unstable (#124385) 2026-05-07 10:34:33 +00:00
Galen Kistler
7e5d1fa5d8
UPlotCompare: Remove and replace with external package (#124324)
* chore: replace uplot-compare with external jest-canvas-mock-compare
2026-05-06 19:36:25 +00:00
Laura Fernández
3b2883107f
Analytics Framework: Move from @grafana/runtime/internal to @grafana/runtime/unstable (#124145) 2026-05-06 16:31:49 +00:00
Dominik Prokop
5a961aa4e9
Analytics: silent option for reportInteraction and defineFeatureEvents (#123905) 2026-05-06 09:50:41 +02:00
Jack Westbrook
f559e4edc8
Chore: Remove React 19 deps and dedupe yarn lock (#124103)
chore(yarn): downgrade uplot-compare react to v18 to prevent dedupes prefering react 19 types
2026-05-05 14:05:49 +00:00
Mariell Hoversholm
076456d80e
fix: never include enterprise imports (#124044)
* fix: never include enterprise imports

The imports only need to exist for tooling's sake. It doesn't actually help the binary at all: the code that actually needs it will import it already, and thus bring it into the binary. This means we can persist all the import usage locations' build tags and similar by simply never using the actual imports files in OSS.

* fix: include Grafana imports as well

In some cases, Grafana Enterprise depends on code from apps in Grafana.
This means we need to keep imports from Grafana as well, otherwise go.mod will be inconsistent depending on whether you
have Enterprise linked.
2026-05-04 14:54:38 +02:00
Mariell Hoversholm
ad78fa01f4
fix: module is now fully tidy (#124024)
* fix: module is now fully tidy

* fix: update enterprise_imports

* fix: make update-workspace

* fix: own the code

* fix: update CI check to check for enterprise imports

* fix: own dependencies
2026-05-04 12:14:24 +02:00
Laura Fernández
3597bec8bd
Analytics Framework: Create a README.md file (#123727) 2026-04-30 16:49:33 +00:00
Laura Fernández
81013a99fc
Analytics Framework: Fix property types in the report (#123913) 2026-04-30 16:47:13 +00:00
ismail simsek
3aafdaaf67
Chore: Bump promlib v0.0.11 (#123736)
* bump promlib v0.0.11 and fix other dependency issues along the way

* remove memcache pin and run make update-workspace

* fix compile errors

* pin apimachinery to v0.35.3

* make update-workspace

* run gofmt

* proper tidy each module + bump azure

* also need to bump tempo

* fix test

* fix tempo test

* handle omitzero since labels became a new type

* more fixes to tests and linter

* fix conflicts

* merge main

---------

Co-authored-by: Matheus Macabu <macabu.matheus@gmail.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2026-04-30 17:30:31 +02:00
Laura Fernández
ba0ad222fe
Analytics Framework: Create script to generate source of truth (#122256) 2026-04-29 20:34:02 +02:00
Galen Kistler
96b1f7b978
UPlotCompare: /test API (#123804)
* feat: init accept snapshot within debug ui
2026-04-29 13:07:02 -05:00
Robert Horvath
520680dde9
Chore: Migrate DES and release-guild ownership to grafana-backend-services-squad (#123494)
The DES (Developer Enablement Squad) and GBS (Grafana Backend Services Squad)
teams merged months ago. This updates CODEOWNERS, go.mod annotations,
the security-patch workflow comment, and modowners docs to reflect
grafana-backend-services-squad as the owner.

No functional change. The DES and release-guild GitHub teams still exist
as fallback during the broader cleanup.
2026-04-29 16:21:24 +02:00
Galen Kistler
be892f16fb
UplotCompare: JSON diff (#123771)
* chore, add simple json compare
2026-04-28 22:40:20 +00:00
Galen Kistler
0f1acd3697
UPlotCompare: Improvements (#123768)
* feat: add status badge, only show one plot when test passed
2026-04-28 17:18:39 -05:00
Galen Kistler
32b466bac0
Dataviz: Canvas snapshot debug tool (#123077)
* test(Candlestick): init visual canvas regression tests
* feat: init uplot-compare canvas debugger tool
2026-04-28 11:44:14 +00:00
Jack Westbrook
0a10a5d133
Build: Refactor Webpack config to TS (#121181)
* build(webpack): add tsconfig.json for Node strip-types compliance

* build(webpack): extract shared esbuild options to esbuild.ts

* build(webpack): add package.json to declare ESM module type

* build(webpack): convert sass.rule to TypeScript

* build(webpack): convert CorsWorkerPlugin to TypeScript

* build(webpack): convert FeatureFlaggedSriPlugin to TypeScript

* build(webpack): convert webpack.common to TypeScript, add theme entries

* build(webpack): convert webpack.dev to TypeScript, remove esbuild duplication

* build(webpack): convert webpack.prod to TypeScript, remove esbuild duplication

* build(webpack): fix TypeScript types in webpack.prod transform callback

* build(webpack): convert webpack.stats to TypeScript

* build(webpack): update scripts to use TypeScript webpack configs

* build(webpack): simplify env-util to use import.meta.dirname directly

* build(webpack): tidy up plugins

* build(webpack): move rules for ts and sass into single module

* build(webpack): consolidate shared config into common, move splitChunks to prod

- Move MiniCssExtractPlugin, esbuildRule and sassRule into common so both
  dev and prod configs share them without duplication
- Move splitChunks/runtimeChunk optimisation to webpack.prod only (not
  needed in dev)
- Use require() for SubresourceIntegrityPlugin to work around broken ESM
  build (waysact/webpack-subresource-integrity#236)
- Refactor conditional plugin logic in dev from ternary to if-blocks

* build(webpack): remove dead import and clarify webpack destructure pattern

- Remove unused MiniCssExtractPlugin import from webpack.prod (moved to common)
- Add comment explaining why DefinePlugin/EnvironmentPlugin are destructured
  from the default webpack import rather than using named ESM imports

* style(webpack): reorder consts

* chore(env-util): fix up env-util and webpack configs so tests continue to run

* refactor(env-util): accept grafanaRoot param instead of relying on __dirname

Removes the global.__dirname mutation hack in webpack.common.ts by making
the grafana root path an explicit argument to getEnvConfig. Each caller
resolves its own root and passes it in, removing the implicit path-depth
contract and the CJS/ESM compatibility workaround.

* build(webpack): remove unused angular chunk group
2026-04-28 12:45:31 +02:00
Jack Westbrook
7d6e08a6d5
Frontend: Rewrite SRI checks feature flag to support frontend-service (#123491)
* refactor(frontend): rename assetSriChecks and generate go

* feat(frontend-service): pass sri checks feature flag to frontend html template

* feat(backend): pass asset sri check feature flag to st frontend template

* build(webpack): use global __grafanaAssetSriChecksEnabled var to control sri checks in async loading

* chore(frontend-service): add assetSriChecks to goff-flags.yaml

* docs(webpack): add more info on what and why to featureflaggedsriplugin
2026-04-27 14:43:09 +02:00
Dave Henderson
9986fa76a5
deps(go): bump github.com/hashicorp/go-secure-stdlib/plugincontainer to v0.5.0 (#123552)
Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2026-04-24 21:28:38 +00:00
Ryan McKinley
b8fd1b6c6b
Chore: use go 1.26.2 (#123379)
* golang 1.26

* bump all modules and docker file

* fix plugins test

---------

Co-authored-by: Matheus Macabu <macabu.matheus@gmail.com>
2026-04-23 17:40:14 +03:00
Michael Mandrus
e979d84e8f
Chore: Rename config for reporting e2e tests (#123093)
* update config file used in e2e tests

* add comment

* update var name
2026-04-20 22:19:20 -04:00
Michael Mandrus
0d8644a3b2
Reporting: Limit report emails to org members only behind new config property (#123083)
* update config file used in e2e tests

* add comment
2026-04-20 17:50:05 -04:00
Peter Štibraný
8aa54839c4
Chore: Remove leftover husky pre-commit hook and cleanup scripts (#122787)
The migration from husky to lefthook happened in #66608 almost 3 years
ago. The .husky directory and cleanup scripts were kept as a temporary
transitional aid but have outlived their purpose.

Additionally, Claude Code's --worktree mode has a bug
(anthropics/claude-code#27474) that sets core.hooksPath to .husky on
every session startup, causing a spurious "Pre-commit hooks are now
opt-in" warning on every commit for anyone using Claude Code worktrees.

Removing these files eliminates that issue and cleans up dead code.
2026-04-16 09:53:13 +00:00
Kevin Minehart Tenorio
a6f4b8fee0
Packaging: Fix RPM/DEB file permissions and add DISA-STIG CI check (#122735)
* Fix RPM/DEB file permissions
* Add stig CI check using opencap
2026-04-16 11:15:47 +02:00
Josh Hunt
069d45b84e
Build: Upgrade TypeScript to 6.0 (#118528)
* Build: Upgrade TypeScript to 6.0 beta

Update typescript from 5.9.2 to 6.0.0-beta across all packages. Configure tsconfig to handle TS 6.0 breaking changes: add `ignoreDeprecations: "6.0"` to suppress warnings for deprecated options, disable `noUncheckedSideEffectImports` to allow CSS side-effect imports, explicitly configure `types` field since TS 6.0 no longer auto-includes all @types packages, set appropriate `rootDir` in packages that include files outside their directory, and update `@ts-ignore` comment placement in Table utils to match where TS 6.0 now reports the type error.

All typecheck tests pass with 0 errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add explicit rootDir to root tsconfig for ts-jest compatibility

TS 6.0 requires rootDir to be explicitly set when it differs from the
inferred common source directory. Without this, ts-jest fails with
TS5011 when running unit tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix package builds: add rootDir and jquery types for TS 6.0

TS 6.0 requires explicit rootDir in tsconfigs that emit output. Add
rootDir to all package build configs that were missing it. Also add
jquery to the base types array since @types/jquery is no longer
auto-included.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix TS 6.0 errors in e2e and plugin tsconfigs

- e2e/tsconfig.json: Add moduleResolution: "bundler" to fix TS5098
  (customConditions requires bundler/node16/nodenext moduleResolution)
- packages/grafana-plugin-configs/tsconfig.json: Add ignoreDeprecations: "6.0"
  to fix TS5101 (downlevelIteration deprecated) inherited from @grafana/tsconfig,
  cascading to all 15 datasource plugins and 3 e2e-playwright test plugins

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix package build output: use rootDir: "./src" instead of "."

rootDir: "." caused type declarations to emit to dist/types/src/
instead of dist/types/, breaking the published package types paths.
Using rootDir: "./src" preserves the correct output structure while
satisfying TS 6.0's requirement for an explicit rootDir.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Align TS 6.0 changes with tsgo PR (#114643)

- Remove baseUrl in favor of path mapping ("*": ["./public/*"])
- Add rootDir: "./src" to grafana-sql and grafana-test-utils tsconfigs
- Add explicit Size type annotations to AutoSizer callbacks
- Add explicit type params to MultiSelect<string> in LokiContextUi
- Update @ts-ignore comments for TS5/TS6/TS7 compatibility
- Switch JS files to @ts-nocheck (eslint.config.js, env-util.js)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Build: Upgrade TypeScript from 6.0.0-beta to 6.0.1-rc

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Build: Upgrade TypeScript from 6.0.1-rc to 6.0.2 stable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix o11y-ds-frontend package build: add rootDir to build config

Same fix as other packages — the build config was inheriting
rootDir: "../../" from tsconfig.json, causing type declarations
to emit to the wrong path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-15 16:37:34 +01:00
Jack Westbrook
6f7f66f1f6
Frontend Service: Copy inlined JS to typescript (#121629)
* build(frontend-service): update webpack and ts configs for boot script

* feat(frontend): add types to window for boot/index.ts

* feat(frontend-service): copy JS from index.html to boot/index.ts, add types and refactor guards

* chore(codeowners): add public/boot

* chore(frontend-service): copy boot.js into dockerfile for dev

* docs(boot): add a readme to briefly explain the purpose
2026-04-15 07:59:48 +02:00
Kevin Minehart Tenorio
29a79d446a
fix: use xz compression in deb packages (#122448)
use xz compression deb
2026-04-13 18:12:54 +02:00
Gareth
a0a45691ba
Remove any references to grafana/partner-datasources and grafana/aws-… (#122111)
Remove any references to grafana/partner-datasources and grafana/aws-datasources
2026-04-08 11:17:39 +01:00
Matheus Macabu
5f2408b84b
Go: Update to 1.25.9 (#122094) 2026-04-08 09:38:30 +02:00
Ihor Yeromin
f887733a03
Splash Screen: Enable splashScreen flag by default for OSS (#121647)
* feat(splash-screen): enable splashScreen flag by default for OSS

* Splash Screen: Update copy, use theme tokens for accent colors, add hero images

- Replace hardcoded hex accent colors with theme tokens (visualization/semantic)
- Update copy for all 4 slides with new titles, subtitles, and bullets
- Rename library and explore slides to dynamic-dashboards and library-of-things
- Add hero images for git-sync and library-of-things slides
- Remove ai-sparkle icon from assistant badge, move it to the slide icon
- Reset version to 13.0.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Revert "Splash Screen: Update copy, use theme tokens for accent colors, add hero images"

This reverts commit a574e5a428.

* disable ff for e2e tests

---------

Co-authored-by: mary-sitzenstatter <mary.sitzenstatter@grafana.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 17:09:53 +02:00
Kevin Minehart Tenorio
38e8690734
CI: Use docker build without dagger in release-build (#121828)
* add ubuntu and alpine specific targets instead of bash if statements; use make instead of dagger for docker builds

* fix docker build and grafana-rpi name

* fix artifact paths

* fix workflow

* dont dockerignore dist/tar.gz

* fix verify
2026-04-03 10:24:08 +02:00
Kevin Minehart Tenorio
01d131991a
CI: Use Makefile to create deb & rpm packages (#121760)
* Add build-deb and build-rpm

* Use make build-deb and rpm in release-build

* add setup-fpm action

* specify specific ruby version

* set GEM_HOME

* rpm and deb in parallel on io runner

* run deb and rpm in parallel

* fix package name

* use zstd compresion; hopefully faster?

* fix compression and make -j2

* Parameterize license

* Add missing CODEOWNERS entries
2026-04-02 17:07:54 +02:00
Kevin Minehart Tenorio
2b5e658676
CI: Use make build-targz instead of Dagger for release builds (#121534)
* Use make targz in release-build.yml

* Remove compare-linux-arm64-targz-builds.yml from codeowners

* Fix dist path

* fix zizmor error
2026-04-01 11:49:42 +02:00
Kevin Minehart Tenorio
becc7f3166
Packaging: Ensure targz build parity between Make and dagger (#121294)
* Add compare targz builds

* fix actionlint and zizmor errors

* More parity between the two

* dont print file contents, sheesh

* use better runners for these

* Add missing conf & data directories

* bundled plugins

* Update Makefile

* fix scripts

* fix download catalog plugins script

* improve the comparison logic because build hashes are different between dagger (docker) and github host

* Fix comparison and missing dir

* Update CODEOWNERS

* Use self-hosted runner on build-go-matrix
2026-03-30 12:32:56 +00:00
Ashley Harrison
b10025b40d
Chore: Add lint rule for consistent type imports (#121336)
* add lint rule config

* whoops, we actually want inline...

* fixes for consistent type imports
2026-03-30 12:44:01 +01:00
Jack Westbrook
211f3f2a91
Build: Prevent React 19 builds writing over React 18 chunks (#121338)
build(webpack): further isolate react-19 builds with chunkFilename
2026-03-30 07:12:02 +02:00
Kevin Minehart Tenorio
ecdb8cdc76
Makefile: add build-targz target (#120224)
* add build-targz Makefile target, and make the Makefile more idiomatic

* build-go depends on generated themes file, not on phony target

* update script doc

* Update CODEOWNERS

* Run make build-go matrix if the Makefile changed

* dont-set-arch-in-run-schema-v2

* Skip flaky encryption test

* Update Makefile

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Preserve removing trimpath if GO_BUILD_DEV=1

* It's OS and ARCH

* Fix e2e path

* remove t.skip

* Support GOOS/GOARCH env variables, which can be overridden by OS and ARCH makefile vars

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-27 10:38:05 +01:00
Kevin Minehart Tenorio
311636cc57
Packaging: Remove grafana-cli and grafana-server commands; use grafana cli or grafana server instead (#120225)
* remove grafana-cli and grafana-server and update references

* remove circle-ci scripts

* Remove circle-\* from CODEOWNERS

* copy grafana wrapper script to /sbin on deb installs

* call grafana wrapper from grafana-cli and grafana-server wrappers

* Update packaging/wrappers to use grafana instead of grafana-cli and grafana-server

* Apply suggestions from code review

Co-authored-by: Dave Henderson <dhenderson@gmail.com>

---------

Co-authored-by: Dave Henderson <dhenderson@gmail.com>
2026-03-26 08:17:42 +01:00
Leon Sorokin
69f991fbdb
Chore: Add asset filtering capability for bundle stats, yarn build:smolstats (#120735) 2026-03-24 21:12:24 +00:00
dependabot[bot]
eac8913aa2
deps(go): bump modernc.org/sqlite from 1.44.3 to 1.47.0 (#120885)
* deps(go): bump modernc.org/sqlite from 1.44.3 to 1.47.0

Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) from 1.44.3 to 1.47.0.
- [Changelog](https://gitlab.com/cznic/sqlite/blob/master/CHANGELOG.md)
- [Commits](https://gitlab.com/cznic/sqlite/compare/v1.44.3...v1.47.0)

---
updated-dependencies:
- dependency-name: modernc.org/sqlite
  dependency-version: 1.47.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-23 09:55:30 +01:00
Kevin Minehart Tenorio
bfe4f302b5
CI: Remove validate-dockerfile script (#120704)
Remove validate-dockerfile script
2026-03-19 14:21:16 +00:00