Commit Graph
1681 Commits
Author SHA1 Message Date
Peter Štibraný 80b05aa67c Fix pkgs-with-tests-named.sh matching tests from subdirectories (#119501)
* Fix pkgs-with-tests-named.sh matching tests from subdirectories

The find command was recursive by default, causing packages to be
included in the results based on test functions in subdirectory packages.
Adding -maxdepth 1 matches Go's package semantics where only files in
the same directory belong to a package.

* ci: trigger integration tests for backend test script changes
2026-03-04 16:18:17 +01:00
Josh Hunt 2bc94fe2ac GHA: Create yarn-install action for improved caching (#119481)
* Use .github/actions/yarn-install workflow everywhere

de-emoji-ify

* Update CODEOWNERS

* add yarn-install-validation job
2026-03-04 12:58:44 +00:00
Josh Hunt d9d472117c GHA: Remove pa11y (#119489)
Remove pa11y
2026-03-04 12:54:19 +00:00
6386390a13 OpenFeature: Extract shared OpenFeature setup code into a module (#118389)
* Extract shared OpenFeature setup code into a module

Include into module:
- HTTP client with optional token exchange authentication
- Support for OFREP and Grafana features service providers

* Go mod tidy

* Update .github/CODEOWNERS

Co-authored-by: Dave Henderson <dave.henderson@grafana.com>

* Update pkg/infra/features/provider.go

Co-authored-by: Dave Henderson <dave.henderson@grafana.com>

* Update pkg/infra/features/README.md

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

* Apply review feedback

* Refactor feature management to use pkg/infra/features  module

Changes:
- Simplify openfeature.go by using features.InitOpenFeature()
- Extract token exchange setup to use features.CreateAuthenticatedHTTPClient()
- Update tests to use new infrastructure
- Clean up redundant middleware and client creation code

* Update workspace

* Fix lint

* Replage go-feature-flag provider with OFREP one

 - Deleted features_service_provider.go — the go-feature-flag SDK provider is gone                                           - createRemoteProvider in featuremgmt now uses features.NewOFREPProvider for both FeaturesServiceProviderType and OFREPProviderType
- Update tests

* Update workspace

* Revert workspace update noise from submodule go.mod/go.sum files

* Run make update-workspace

* make gen-apps

* Cleanup attempt

* make gen-apps

* Run go work sync after merging main

* Make gen-apps

---------

Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-03 16:05:47 +01:00
Roberto Jiménez SánchezandClaude Sonnet 4.5 180c030a97 CI: Upgrade Trivy to v0.69.2 (#119394)
* CI: Upgrade Trivy to v0.69.2

Upgrades aquasecurity/trivy from v0.56.2 to v0.69.2 to address
security vulnerability documented in StepSecurity blog post:
https://www.stepsecurity.io/blog/hackerbot-claw-github-actions-exploitation#attack-6-aquasecuritytrivy---evidence-cleared

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

* Add Renovate management for Trivy version

---------

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-03 14:19:29 +01:00
Sriram 376238a81b Fixed pyroscope label for github actions (#119344)
Update pr-commands.json
2026-03-03 08:05:01 +00:00
cfb835f18e Fix Dockerfile: remove reference to deleted build.go (#119319)
* Fix Dockerfile: remove reference to deleted build.go

PR #119297 removed build.go but the Dockerfile still references
it in a COPY command on line 126, causing Docker builds to fail with:
  ERROR: "/build.go": not found

Remove build.go from the COPY instruction.

Fixes: 05c9ed18d6 ("chore: cleanup makefile (#119297)")

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

* Test Dockerfile changes when Makefile is changed

* Remove unnecessary deps from Dockerfile and add missing copy/add

---------

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>
2026-03-02 17:21:12 +01:00
Adela Almasan e4054f699b Suggestions: Simplified flow (#119168) 2026-03-02 07:50:38 -06:00
Kevin Minehart Tenorio 05c9ed18d6 chore: cleanup makefile (#119297)
* remove build.go

* remove flake.nix

* Remove CGO reference in Makefile

* Clean up the Makefile

* remove unneeded line in CODEOWNERS
2026-03-02 13:41:02 +01:00
Andres Martinez Gotor 3203af91a2 App Plugin API server: settings resource (#118461) 2026-03-02 09:08:52 +01:00
Kevin Minehart Tenorio 6a399a778c CI: Remove CGO from our vocabulary (#119205)
* Remove CGO from the build process

* remove CGO sqlite dependency

* make update-workspace

* Remove sqlite test and fix lint
2026-02-27 13:02:21 +01:00
Laura Fernández 6b4f48bb0b Analytics Framework: Create new API (#118708) 2026-02-27 11:15:38 +01:00
Ryan McKinley 2e7ba0a7b3 Chore: Allow changes to packages/grafana-openapi/ and backend (#119154) 2026-02-26 21:12:42 +01:00
Matt Cowley d3c08da598 CI: Fix changelog generation to handle releases w/ >1000 commits (#119049)
* Log GraphQL errors + total history length

* Use REST API to get full commit comparison

* Update 12.4.0 changelog
2026-02-26 12:04:52 +00:00
Hugo HäggmarkandTom Ratcliffe d4008f35bb OpenAPI: add @grafana/openapi package (#114017)
* chore: grafana/openapi package

* Add attributes to mark specs as generated files

* chore: run yarn generate-apis

* chore: run yarn generate-apis

* chore: merge with main

* chore: trying to free up space

* chore: add custom cleanup of files

* chore: fixes in package.json

* chore: update pre and postpack scripts

* chore: change make name

* chore: yarn generate-apis

* chore: update openapi specs

* chore: updates after PR feedback

* chore: yarn generate:openapi

* chore: run yarn generate:openapi

* chore: trying with lower runner

* chore: yarn generate:openapi

* chore: update package version

---------

Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2026-02-26 08:16:00 +01:00
Gonzalo Trigueros Manzanas f4e3176935 Provisioning: fix flaky integration test (#118960)
* provisioning: sync before assert in integration test to avoid race condition

* provisioning: integration tests - avoid initial sync as it may race with file copying

* provisioning: fix file integration test initial sync

* workflows: increase mysql integration test timeout to 12 min
2026-02-25 13:09:40 -05:00
Drew Slobodnjak 820c020167 Suggestions: Handle no data panel flow (#118444)
* Suggestions: Handle no data panel flow

* Run i18n-extract

* Dial back emphasis on non data section styling

* Update CODEOWNERS to include wildcard for tests
2026-02-25 10:06:48 -08:00
Matheus Macabu 2e7aee42d8 CI: Update QEMU version to v10.2.1-65 (#118907) 2026-02-25 09:47:31 +01:00
Josh Hunt 053952eb32 CI: Set Storybook preview as a Github Deployment (#118814) 2026-02-24 15:34:48 +00:00
238b221c90 Dashboards API: Improve golden files testing (#118638)
* Dashboard: replace golden file comparison with checksums

- Add checksumStore that validates SHA-256 hashes of conversion
  output against golden_checksums.json
- testConversion and writeOrCompareOutputFile now always write
  golden files to disk and validate checksums
- Add REGENERATE_CHECKSUMS=true env var to update checksums
- Add Makefile targets: generate-golden-files,
  regenerate-golden-checksums
- Frontend parity test fails fast when golden files are missing

* Dashboard: remove golden files from git, track checksums only

- Add testdata/.gitignore for output/ and
  migrated_dashboards_output/
- Add golden_checksums.json with SHA-256 hashes for 840 files
- Remove ~38MB of golden files from git tracking

* Dashboard: generate golden files in frontend CI pipeline

- Add generate-golden-files job that runs Go conversion tests
  once and uploads golden files as an artifact
- Frontend test shards download the artifact before running

* Extend golden file removal to migration package and consolidate test utilities (#118744)

* Dashboard: replace golden file comparison with checksums

- Add checksumStore that validates SHA-256 hashes of conversion
  output against golden_checksums.json
- testConversion and writeOrCompareOutputFile now always write
  golden files to disk and validate checksums
- Add REGENERATE_CHECKSUMS=true env var to update checksums
- Add Makefile targets: generate-golden-files,
  regenerate-golden-checksums
- Frontend parity test fails fast when golden files are missing

* Dashboard: remove golden files from git, track checksums only

- Add testdata/.gitignore for output/ and
  migrated_dashboards_output/
- Add golden_checksums.json with SHA-256 hashes for 840 files
- Remove ~38MB of golden files from git tracking

* Dashboard: generate golden files in frontend CI pipeline

- Add generate-golden-files job that runs Go conversion tests
  once and uploads golden files as an artifact
- Frontend test shards download the artifact before running

* Add migration, share checksum logic and update docs

* fix(ci): set correct download path for golden file artifacts

The download-artifact action needs the common ancestor path since
upload-artifact stores files relative to it. Without this, golden
files end up at the repo root instead of under apps/dashboard/pkg/migration/.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(dashboard): skip TestMigratedDashboardsConversion when migration golden files missing

This test depends on files generated by the migration package tests.
Since these are now gitignored, skip gracefully in CI Go test runs
where migration tests haven't run first.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(ci): generate golden files before backend unit tests

TestMigratedDashboardsConversion reads from the migration package's
golden output directory. Since those files are no longer tracked in
git, they must be generated before the sharded Go tests run.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Remove dependencies between packages

* Fully regenerate checksum file to not preserve removed files checksums

* From frontend, check if golden files exist before running the test

* Fix CODEOWNERS

* gitignore updaate

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-24 15:42:26 +01:00
Yuri Tseretyan d3b17ee181 Alerting: Update Alerting module update workflow (#118513)
* Alerting: Update snapshot file if JSON mismatch in integration test

* Use `assert.JSONEq` for improved error reporting in tests.
* Automatically update the snapshot file if it differs from the test output.
* Add error handling for snapshot file updates.

* Add snapshot updates to workflow

* Added integration test steps to update snapshots in the GitHub workflow.
* Ensures snapshots are refreshed for `TestIntegrationAvailableChannels` and `TestIntegrationTypeSchemaList`.

* Alerting: Pretty-print JSON in snapshot updates for integration tests

* Use `json.Indent` to format JSON before saving snapshot files.
* Ensure improved readability and consistency in snapshot files.
* Add error handling for JSON indentation.
2026-02-23 08:53:36 -05:00
Andreas Christou d8647943f6 Chore: Add workflow warning of changes to externalised DS's (#118203)
* Add workflow warning of changes to externalised DS's

* Update codeowners
2026-02-20 11:44:26 +00:00
Matheus Macabu db8a9f4c11 CI: Use fork of dagger action with binary cache for E2E tests (#118265)
* CI: Use fork of dagger action with binary cache for E2E tests

* Pin action
2026-02-20 12:03:02 +01:00
Austin Pondandkonsalex 3ed58adf59 [chore] Update go to v1.26.0, and the golangci-lint action to v9 (#118436)
* [chore] Update go to v1.26.0, and the golangci-lint action to v9.

* Use golangci-lint v2.9.0

* Use golang:1.26.0-alpine instead of 1.25.7-alpine

* chore: more go version upgrades

* chore: more updates

* chore: generate apis

* fix: golint issues prealloc etc

* fix: million tiny golint issues

---------

Co-authored-by: konsalex <konstantinos.alexoglou@grafana.com>
2026-02-19 15:04:35 +01:00
Andres Martinez Gotor 35c905133c Add e2e smoke test for Advisor functionality (#118219) 2026-02-19 13:26:40 +01:00
Leon Sorokin a9ddb513ee Chore: Remove 'devenv' from 'backend_strict' of mt-service CI checks (#118420) 2026-02-18 20:10:18 +00:00
Ryan McKinleyandDafydd c40569ce97 Query: Rename query.grafana.app to datasource.grafana.app (#118267)
Co-authored-by: Dafydd <dafydd.thomas@grafana.com>
2026-02-18 18:36:17 +03:00
Summer c83cc8dc48 Data Sources: Update CODEOWNERS (#118330) 2026-02-17 17:25:11 -07:00
Matheus Macabu 117c70b32e CI: Use self-hosted runners for FE workflows (#118176)
* CI: Use self-hosted runners for FE workflows

* Add login to dockerhub/gar to other jobs

* Try xlarge runner for Playwright tests

* Need to add id-token write permission

* Revert change to beefy runners, no difference
2026-02-16 13:59:25 +01:00
Eric ShieldsandClaude Opus 4.6 866a8222a1 Secrets: Add devenv seed script for keepers and secure values (#118013)
* Secrets: Add devenv seed script for keepers and secure values

Add a Go script to create test data for the Secrets Keeper UI via
Grafana's HTTP API. Follows the devenv/scopes pattern.

Supports:
- Seeding from YAML config: go run secrets.go
- Load testing with N resources: go run secrets.go -generate 50
- Cleanup of gdev- prefixed resources: go run secrets.go -clean
- Self-tests: go run secrets.go -test
- Helpful error messages for missing API setup

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 08:14:35 -08:00
Ihor Yeromin 84583918c4 QueryEditor: Update CODEOWNERS (#118100)
chore(query-editor): update CODEOWNERS
2026-02-13 16:11:49 +01:00
Adela Almasan d676bcac85 Chore: Remove verify-kinds.yml (#117942) 2026-02-12 21:25:45 -06:00
Galen Kistler 299d550441 Logs Table: E2E (#117715)
* test(e2e): logs table panel e2e init
2026-02-12 13:40:01 -06:00
Thomas Bishop 66a0128a28 Update squad references for SNO to navigation (#117945) 2026-02-11 15:31:27 -06:00
Ezequiel Victorero 97a1a07217 Chore: Improve MT service compatibility check (#117930) 2026-02-11 15:52:51 -03:00
Matheus Macabu 6bd4d66b72 FeatureToggles: Run CI conditionally (#117897)
also run the feature toggles CI action conditionally
2026-02-11 15:36:31 +01:00
Andreas Christou 67e6720997 Remove redundant null logic (#117883)
Remove redundant code
2026-02-11 12:51:00 +00:00
Selene b26eb58447 Codegen: Remove registry flow to push schemas to kind-registry (legacy schemas) (#117874)
* Remove registry flow to push schemas to kind-registry

* Fix codeowners

* Update workspaces
2026-02-11 12:28:13 +01:00
Hugo Häggmark 2c55a322fa chore: transfer Levitate alerts (#117851)
* chore: transfer Levitate alerts

* chore: fix breaking change
2026-02-11 08:22:41 +01:00
Ezequiel Victorero 433cb4ab93 Chore: Check frontend backend separation github action (#116446) 2026-02-10 10:53:43 -03:00
Hugo Häggmark 94f275d067 chore: transfer ownership between teams (#117572)
* chore: transfer ownership between teams

* chore: update after discussion

* chore: update after PR feedback
2026-02-10 06:34:04 +01:00
Josh Hunt 27bc2198ad Chore: Move core rangeutil tests into grafana-data (#117658)
* Chore: Move core rangeutil tests into grafana-data

* Update codeowners
2026-02-09 13:19:31 +00:00
Hugo Häggmark c094df202e GrafanaBootData: Deprecate config.panels (#116918)
* GrafanaBootData: Deprecate config.panels

* chore: updates after PR feedback

* chore: updates after PR feedback

* chore: add cdn url mapping for logos and screenshots

* chore: updates after PR feedback
2026-02-09 07:04:17 +01:00
Hugo Häggmark dc2516a3bd chore: add lint check for circular dependencies (#117246)
* chore: add lint for circular dependencies

* chore: add a circular dependency for testing

* chore: undo the extra circular dependency

* chore: updates after PR feedback

* chore: set specific branch

* chore: updates after PR feedback
2026-02-06 07:35:27 +01:00
Galen Kistler 062d848ff9 Logs: Logs Table as viz panel plugin - Alpha (#116437)
* feat: Logs table panel alpha (TableNG)
2026-02-04 08:30:55 -06:00
Yudintsev George (Egor) e124ee79f4 Chore: RBAC: Migrate role picker to rtkq (#116571)
What is this feature?

This PR introduce refactoring for role picker for teams and users. It uses RTK Query.
The related task: grafana/identity-access-team#1821

The previous PR with related logic: #113783

Why do we need this feature?

This refactoring is a cleaner way for handing refetching.
2026-02-03 13:46:41 +00:00
Tom Ratcliffe 4d1a32d6a1 Alerting: Make alerting frontend codeowners for relevant API clients (#116777) 2026-02-03 11:29:32 +01:00
Kevin Minehart Tenorio a6f4c5da5d daggerbuild: Cache builders (#109076)
* daggerbuild: Cache builders

* cache-builders in e2e build

* cache-builders on non-forks

* dont attempt to login to gar or dockerhub in forks; it won't work anyways

* use npx install playwright

* Exclude dist & node_modules from mount

* remove yarn.go; it's not used

* use correct registry for cache builds

* rebuild cached artifacts every 2 weeks

* Use grafanalabs-dev/docker-grafana-dev

* make lint-go

* Fix bad conflict resolution

* fix ubuntu and alpine base
2026-02-03 10:55:40 +01:00
Hugo Häggmark eebacf0b2d Plugins: add error handling for plugin meta calls (#117111)
* Plugins: add error handling for plugin meta calls

* chore: update after PR feedback
2026-02-03 06:33:15 +01:00
Tom Ratcliffe 7c618f8e28 Folders: Show owner references on folder details pages (#116843) 2026-02-02 14:36:07 +00:00