276 Commits
Author SHA1 Message Date
Hanzo Dev 8b7d8453d2 chore: migrate from yarn to pnpm
Replace yarn 4.11.0 with pnpm 9.15.0 as the package manager:

- Delete yarn.lock and .yarnrc.yml
- Add pnpm-lock.yaml, pnpm-workspace.yaml, and .npmrc
- Convert resolutions to pnpm.overrides and patchedDependencies
- Move .yarn/patches/ to patches/ for pnpm compatibility
- Update all scripts in package.json (yarn -> pnpm)
- Update Makefile, e2e scripts, build scripts, Tiltfile
- Update Go e2e test runners (a11y/cmd.go, cypress/cmd.go)
- Update contributor documentation
2026-03-03 07:06:38 -08:00
Costa AlexoglouandGitHub f013b2de5a revert 1.26 (#118568)
* revert 1.26

* more updates

* new go.sum

* revert some go.mod entries

* updagte swagger and openapi

* more reverting and codegen

* test fix and make gen-apps
2026-02-20 15:09:49 +00:00
72eddfc4e2 [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
Andrej OcenasandGitHub 35e4618f31 I18n: Add LANG override to extraction command (#118180) 2026-02-16 14:24:50 +01:00
Stephanie HingtgenandGitHub cd17a1e797 Makefile: Update gen-apps to optionally support an app (#117950) 2026-02-11 22:11:24 +00:00
Ryan McKinleyandGitHub 23a7645039 Chore: Upgrade app-sdk to 0.50.1 (#117292) 2026-02-10 13:55:07 +03:00
Matheus MacabuandGitHub ca9c564b23 Go: Update to 1.25.7 (#117470) 2026-02-05 14:16:34 +01:00
Ryan McKinleyandGitHub 7c9e253f12 Chore: Build all apps with make gen-apps (#117365) 2026-02-04 11:04:49 +03:00
Peter ŠtibranýandGitHub 2686ab1fff Index selectable fields in all known types (#117023)
* Include all known manifests. Initialize SelectableFields in existing builders.
* Move AppManifests to separate file.
* Add code-generation and CI check for app_manifests.go
* Extract common code from custom builders into NewIndexableDocumentFromValue.
* Return error from BuildSelectableFields when object and kind don't match.
2026-01-29 15:18:05 +01:00
Matheus MacabuandGitHub 6e0087df09 Go: Update to 1.25.6 (#116394) 2026-01-16 10:50:12 +01:00
Ashley HarrisonandGitHub bb4462bdcd Theme: Convert themes to json and define schemas using zod (#116006)
* convert all theme files to json

* automatically discover extra themes in go backend

* use zod

* error tidy up

* error tidy up p2

* generate theme json schema from zod

* generate theme list at build time, don't do it at runtime

* make name and id required in the theme schema
2026-01-13 11:13:11 +00:00
Matheus MacabuandGitHub e6482d6c60 Dependencies: Bump Go to v1.25.5 (#114749) 2025-12-03 10:18:31 +01:00
Oscar KilhedandGitHub 04146ba159 Codegen: Revert gen-cue verification (#113247)
* Revert "Codegen/CI: Update makefile to also verify gen-cue (#113211)"

This reverts commit 772e3f1ab2.

* fix wording of generated code verification error
2025-10-30 17:21:41 +00:00
Oscar KilhedandGitHub 772e3f1ab2 Codegen/CI: Update makefile to also verify gen-cue (#113211)
* update makefile to also verify gen-cue

* update for jsonnet
2025-10-30 15:31:57 +01:00
Kyle BrandtandGitHub bed5db993f Revert "SQL Expressions: (Chore) Update GMS (go-mysql-server) depende… (#113050) 2025-10-28 06:48:57 +00:00
21da74c201 SQL Expressions: (Chore) Update GMS (go-mysql-server) dependency (#112289)
- Added gms_pure_go build tags to disable cgo - (cgo was added to GMS since we last updated it)
- Docs note on regex limitations

---------

Co-authored-by: Matheus Macabu <macabu.matheus@gmail.com>
2025-10-27 08:22:51 -04:00
Hugo HäggmarkandGitHub 5b88d9fa31 Chore: Replace deprecated i18next-parser (#112512)
* chore: replace deprecated i18next-parser

* chore: bump i18next-cli to 1.11.6

* chore: revert translation files

* chore: bumps to i18next-cli 1.11.9

* Trigger build

* chore: revert translations files

* chore: bump i18next-cli

* chore: changes after yarn i18n-extract

* chore: revert translation files

* chore: bump i18next-cli to 1.11.12

* chore: fix select space

* chore: add i18next to packages

* chore: add i18next-cli to plugin dev deps

* chore: fix yarn lock
2025-10-27 10:38:31 +01:00
Matheus MacabuandGitHub 24426cd9f6 Go: Update to 1.25.3 (#112359) 2025-10-14 12:21:27 +02:00
Matheus MacabuandGitHub fce47bba0d Makefile: Change build-go to only build the binaries, and deprecate build-go-fast (#111986) 2025-10-08 15:04:36 +02:00
Matheus MacabuandGitHub 8b9f247008 Go: Update to 1.25.2 + golangci-lint v2.5.0 + golang.org/x/net v0.45.0 (#112149)
* Go: Update to 1.25.2

* golangci-lint: Update to 2.5.0

* Dependencies: Bump golang.org/x/net to v0.45.0
2025-10-08 12:35:28 +02:00
Serge ZaitsevandGitHub ad6e9671da Chore: Disable cgo by default for local builds (#111807)
* disable cgo by default for local builds, also set cgo variable in either case

* actually do not set the default value

* disable cgo for darwin, display sqlite driver in logs

* fix linter warning, although I do not fully agree with it
2025-09-30 23:06:40 +02:00
Todd TreeceandGitHub d204723fa2 Air: Enable stop_on_error (#111783) 2025-09-30 09:49:23 -04:00
Igor SuleymanovandGitHub 351f1e748c Add a CI step for checking app SDK codegen status (#111528)
* Add a CI step for checking app SDK codegen status

What

This commit adds a CI step for checking the status of code generated
with Grafana App SDK. The step fails if there is a git diff as a result
of the codegen step.

It also updates generated code to make sure we're starting from a
correct state.

Why

This ensures that when the schemas or the SDK version are updated, the
codegen mismatch is caught early at the PR stage.

Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com>

* Format generated code

Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com>

---------

Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com>
2025-09-24 15:37:57 +03:00
Todd TreeceandGitHub 3cfef171b6 Revert "Wire: Add provider lint" (#111306)
This reverts commit 8b157516cb.
2025-09-18 12:07:55 +00:00
Todd TreeceandGitHub 8b157516cb Wire: Add provider lint (#110573) 2025-09-17 16:19:08 -04:00
Will BrowneandGitHub 76cab8c245 Plugins: Add ability to run backend plugins in containers (#110534)
* add client cfg for containers

* remove unused code

* add field for skip host env for proto client

* add docker to Swagger ignore

* add to enterprise swagger gen

* undo go.mod changes

* pass container image

* propagate container image field
2025-09-10 11:12:23 +01:00
Matheus MacabuandGitHub 9c548dd777 CI: Run gofmt on Linting action (#110159)
* CI: Run gofmt on Linting action

* Chore: Run gofmt on all packages
2025-08-26 16:14:03 +02:00
Matheus MacabuandGitHub f3fbfd655d Chore: Remove Bingo as Drone is removed (#110020) 2025-08-22 13:49:44 +02:00
Kevin MinehartandGitHub 1797bcd6a3 Remove drone & dead code in pkg/build; update go modules (#109935)
* remove drone & dead code in pkg/build; update go modules

* remove .drone.star

* Remove drone scripts and drone references in Makefile

* make update-workspace

* remove deadcode tool

* Remove daggerbuild/scripts: deadcode

* Remove drone files / folders in CODEOWNERS

* make update-workspace

* remove more dead code
2025-08-20 14:27:58 -05:00
Josh HuntandGitHub 666be4212c FS: Replace frontend-service-up with command that auto shuts down (#109933) 2025-08-20 18:27:04 +01:00
Brian GannandGitHub 2a8eb4993a Build: Adds option to build debug frontend docker images (#108202)
* Add env support for different build environment targets
* Add NX target for dev builds
* Add option to build in dev mode
* skip immutable flag for dev builds
2025-08-19 14:22:59 -04:00
f1eef91015 Go: Update to 1.24.6 (#109313)
Co-authored-by: joshhunt <josh.hunt@grafana.com>
2025-08-07 10:27:01 +02:00
Dana AxinteandGitHub 2b35263df1 SecretsManager: Consolidation proto/gRPC (#108857)
* list all encrypted values and count

* separate interfaces

* add time filter to global queries

* initial secrets consolidation

* Revert defaults

* consolidate grpc proto

* More verbose description of the operation

* Add consolidation tests and tracing

* Fix lint

* Revert debug log

* Move buf to top level, regenerate

* Update Makefile buf generate
2025-07-31 16:05:24 +01:00
Matheus MacabuandGitHub b726efd053 Makefile: Fix typo on run-bra command (#108979)
It was actually run-air but should be run-bra !
2025-07-31 14:43:29 +00:00
Matheus MacabuandGitHub fbaf4eb8d4 Make: Use air as the default for make run (#108652) 2025-07-25 11:32:07 +02:00
Matheus MacabuandGitHub 5e62b6620b Dependencies: Bump Go to v1.24.5 (#108175) 2025-07-22 17:08:40 +02:00
Todd TreeceandGitHub e6a9008c8d K8s: Add App SDK installer (#107773) 2025-07-21 13:32:15 -04:00
Matheus MacabuandGitHub 7bf462d2e1 CiTools: Install air (#108367) 2025-07-21 12:25:40 +02:00
Josh HuntandGitHub 8bdad8ec2f FrontendService: Local dev setup (#108082)
* wip

* docker compose dev setup

* commit new tilt stuff

* move files into own dir

* reset files back to main

* use just one nginx container for both gateway and cdn

* update proxy service name

* make it all work when in subdir

* rename more things

* reset more changes

* fix config

* add makefile command, fix ws upgrade

* add local check script

* tidy

* tidy up, comments, readyme

* codeowners

* change cdn host to localhost to avoid adding host.docker.internal to /etc/hosts

* route POST /login to backend

* Build nginx container with config baked in so it can be live_update-ed

* fix headers
2025-07-16 18:28:28 +01:00
Matheus MacabuandGitHub f156233230 Secrets: Remove v0alpha1 spec, files and references (#108100) 2025-07-15 12:33:00 +02:00
Matheus MacabuandGitHub 4ba819e64b Secrets: Add v1beta1 schema with CUE + grafana-app-sdk (#107972)
* Secrets: Add v1beta1 API using CUE

* Secrets: Generate spec with app-sdk

* Secrets: Generate decrypt proto

* Secrets: Add manual files to help transition
2025-07-11 13:42:46 +02:00
Serge ZaitsevandGitHub 80b7925ecc Chore: Prepare Wire to generate files that can be committed to the repo (#107382)
* add generated tags to wire

* add enterprise wire gen target to makefile

* make gen-go invoke enterprise

* change go:generate command

* handle empty genTags properly

* update golden files for wire

* use build tag for swagger generator

* fix comments
2025-06-30 16:39:21 +02:00
Matheus MacabuandGitHub 9f996ecfa8 Build: Add experimental build+watch with Air (#106834)
* Build: Add experimental build+watch with Air

* Codeowners: Add owner for .air.toml

* Makefile: Add installation reference for Air
2025-06-19 12:36:37 +02:00
Ashley HarrisonandGitHub 820c5e108d Internationalisation: Mark up @grafana/sql package (#105842)
* scaffolding for package

* crowdin scaffolding

* markup

* add translations

* fix locale location

* fix tsconfig?

* undo bundler change

* object tranlsations, expose loadResources and call in mssql

* prettier

* remove useTranslate

* extract translations

* last couple of fixes

* remove deleted files
2025-06-12 10:52:04 +01:00
Matheus MacabuandGitHub da016138e2 Dependencies: Bump Go to v1.24.4 (#106533) 2025-06-11 14:25:48 +02:00
Carl BergquistandGitHub 46ce11bbcb Build: Adds a license check task in the makefile (#106285)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2025-06-03 16:55:29 +02:00
Denis VodopianovandGitHub efc6f50d25 Chore: Detaching go tools from the main Grafana workspace (#104861)
* add script for tooling

* add to make

* not to forget

* reworked go tools

* add tool installation script

* adding readme

* updating readme

* updating readme

* cleanup install.sh and makefile

* update the readme file

* cleanup scripts

* switch variables.mk to lazy evaluation

* add tools ache to gitignore

* get rid of absolute path in hte Variables.mk file

* switch to reusable function for path generation

* add debug statements

* add create cache tool dir

* add debuig statements to make file

* drop tool cache

* fix race condition n ci

* fix race condition n ci

* cleanup workspace

* add lefthook.rc to codeowners

* copy .citools folder to docker image

* switch back to main branch of grafana-build

* Add .citools to the drone builder

* fix wording in generate.sh and README.md
2025-05-21 11:22:24 +02:00
Jean-Philippe QuéménerandGitHub 310188dce1 refactor(unified-storage): move generated protos to own pkg (#105356) 2025-05-15 21:36:52 +02:00
Ashley HarrisonandGitHub 416c4808d2 Internationalisation: Mark up azure monitor plugin (#105262)
* start marking up azuremonitor

* more markup

* finish mark up

* add package and correct imports

* convert to functional component + use correct t import

* fix duplicate key + typo

* add extract config + fake french translations to test

* run prettier and fix unit tests

* use nx

* enable i18n lint rules for azure monitor

* remove fake french translations

* await initPluginTranslations

* top level await breaks unit tests

* leave as class component for now
2025-05-15 13:31:49 +00:00
Mariell HoversholmandGitHub 1a126322a5 Actions: Shard test suite (#105166) 2025-05-13 13:08:19 +02:00