Commit Graph

481 Commits

Author SHA1 Message Date
Jev Forsberg
a3ada25579 Chore: Migrate pr-docs pipeline to GHAs (#101982)
* baldmomma/ add pr-lint-build-docs.yml

* baldm0mma/ update codeowners

* baldm0mma/ remove superfluous command

* baldm0mma/ trigger

* baldm0mma/ update with heredoc format

* baldm0mma/ update content stash

* baldm0mma/ explore container for prod target

* baldm0mma/ update to use hugo directly

* baldm0mma/ clone the websote dir

* baldm0mma/ rebuild with docker

* baldm0mma/ docker run

* baldm0mma/ remove build trigger

* baldm0mma/ remove cue gen step that is covered elsewhere
2025-03-13 13:34:35 -06:00
Kevin Minehart
20b91cfa04 CI: Add integration tests GitHub Actions workflow (#101732)
* Add integration tests workflow
---------

Co-authored-by: Serge Zaitsev <serge.zaitsev@grafana.com>
2025-03-13 10:27:19 -05:00
Jev Forsberg
0233c39a7f Chore: Add Enterprise unit testing path (#101748)
* Add backend unit tests for Grafana and Grafana Enterprise

---------

Co-authored-by: Kevin Minehart <kmineh0151@gmail.com>
2025-03-12 12:00:13 -05:00
jev forsberg
9ed864a944 Revert "baldm0mma/ add pr-lint-build-docs.yml"
This reverts commit 1ceab26cb4.
2025-03-11 17:04:25 -06:00
jev forsberg
c5c26cb62f Revert "baldm0mma/ update node version"
This reverts commit 687c064192.
2025-03-11 17:04:25 -06:00
jev forsberg
a2464f7e39 Revert "baldm0mma/ remove double yarn dip"
This reverts commit 12e1ae0751.
2025-03-11 17:04:25 -06:00
jev forsberg
92cf578dc3 Revert "baldm0mma/ remove cue gen and verification step"
This reverts commit ff74cb954f.
2025-03-11 17:04:25 -06:00
jev forsberg
172a4ca43b Revert "baldm0mma/ remove make installation"
This reverts commit 4d6d37d20f.
2025-03-11 17:04:25 -06:00
jev forsberg
868aabeac2 Revert "baldm0mma/ annotate mem lim"
This reverts commit 10621c40d3.
2025-03-11 17:04:25 -06:00
jev forsberg
10621c40d3 baldm0mma/ annotate mem lim 2025-03-11 16:59:39 -06:00
jev forsberg
4d6d37d20f baldm0mma/ remove make installation 2025-03-11 16:52:14 -06:00
jev forsberg
ff74cb954f baldm0mma/ remove cue gen and verification step 2025-03-11 16:46:08 -06:00
jev forsberg
12e1ae0751 baldm0mma/ remove double yarn dip 2025-03-11 16:43:27 -06:00
jev forsberg
687c064192 baldm0mma/ update node version 2025-03-11 16:43:09 -06:00
jev forsberg
1ceab26cb4 baldm0mma/ add pr-lint-build-docs.yml 2025-03-11 16:41:35 -06:00
Jev Forsberg
f296b66b37 Chore: Migrate storybook verification to GHAs (#101968)
* baldm0mma/ add storybook-verification workflow file

* baldm0mma/ build out storybook jobs to drone spec

* baldm0mma/ add node fallback and remove runner id

* baldm0mma/ replace with cypress action

* baldm0mma/ update codeowners

* baldm0mma/ add workflow dispatch for testing

* baldm0mma/ update trigger for testing

* baldm0mma/ update path

* baldm0mma/ update paths

* baldm0mma/ update node file
2025-03-11 15:27:54 -06:00
Ashley Harrison
4dbd1846c7 Chore: bump codeql versions used in pr checks (#101957)
* bump codeql versions used in pr checks

* update supported versions

* use glob syntax

* wider glob
2025-03-11 17:28:36 +00:00
Jev Forsberg
9be18278d9 Chore: Move code verification to proper workflow (#101742)
* baldm0mma/ move verification to new workflow

* baldm0mma/ test if needs install step

* baldm0mma/ remove install step

* baldm0mma/ update go version
2025-03-07 13:13:40 -07:00
Mariell Hoversholm
5ef3400115 CI: Report to bench (#101686)
* feat: report to bench

* fix: output json

* chore: own the code

* temp: limit files to test for faster iteration

* temp: force bench to run for testing purposes

* fix: bench has been merged to main

* fix: correct file name

* temp: remove temp

* feat: pin the tparse binary

Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>

---------

Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>
2025-03-07 11:07:56 +01:00
Jev Forsberg
ef3cb8596e Chore: Backend unit test workflow (#101534)
* baldm0mma/ parallelize tests for reporting

* baldm0mma/ update combining non-existant outputs

* baldm0mma/ remove duplicate logic

* baldm0mma/ rem any unnecessary logging

* baldm0mma/ add workflow path for test coverage test

* baldm0mma/ cache ent

* baldm0mma/ update with crucial comments

* baldm0mma/ generate go files

* baldm0mma/ cache enterprise only once

* baldm0mma/ adjust coverage threshholds

* baldm0mma/ remove temp artifacts from storage to save $$$

* baldm0mma/ remove strict coverage for unit tests

* baldm0mma/ pass coverage go opts

* baldm0mma/ update run backend tests action to composite

* baldm0mma/ separate make gen go into it's own composite step

* baldm0mma/ move options to workflow

* baldm0mma/ remove use of action

* baldm0mma/ remove unsed action

* baldm0mma/ update codeowners

* baldm0mma/ add edition logic

* baldm0mma/ set env vars in determine-edition action

* baldm0mma/ make test

* baldm0mma/ debug sequential

* baldm0mma/ debugging by removing unit tests

* baldm0mma/ TRY SOMETHING DIFFERENT!!!

* baldm0mma/ uploading ent from within the workspace

* baldm0mma/ revert run-backend-tests action

* baldm0mma/ move edition to job level

* baldm0mma/ update WIRE_TAGS

* baldm0mma/ move the enterprise code to the correct location after extracting it

* baldm0mma/ rem packaging/extracting of enterprise code

* baldm0mma/ test makefile

* baldm0mma/ add ent setup to coverage

* baldm0mma/ rem backend test action

* baldm0mma/ add wire and go steps to coverage job

* baldm0mma/ remove make installation, as it is already present in the "ubuntu-latest" package

* baldm0mma/ convert to matrix testing strategy

* baldm0mma/ update separate test coverage to only a day

* baldm0mma/ add setup-common-backend-testing-env action

* baldm0mma/ add setup env

* baldm0mma/ update naming

* baldm0mma/ updade codeowners

* baldm0mma/ rem ent

* baldm0mma/ update naming

* baldm0mma/ remove multiline syntax in report-coverage

* baldm0mma/ make gen-go

* baldm0mm/ remove integration tests

* baldm0mma/ update coverage params

* baldm0mma/ streamline workflow

* baldm0mma/ update codeowners

* baldm0mma/ update naming

* baldm0mma/ simplify logic

* baldm0mma/ remove uneeded trigger

* baldm0mma/ remove conditional coverage step

* baldm0mma/ debug coverage

* baldm0mma/ update file name

* baldm0mma/ remove artifact upload

* baldm0mma/ update atrifact params in the workflow

* baldm0mma/ simplify processing logic
2025-03-06 12:27:04 -07:00
Mariell Hoversholm
3247105d6a Actions: Report to CodeCov (#101499)
* feat: report to codecov

* fix: use webhook domain

* chore: force coverage check

* fix: use token

* fix: pass in token from workflow

* feat: remove codecov coverage force
2025-03-06 09:43:47 -07:00
Sam Jewell
93dae0eb83 Remove the area/editor label (#101682)
The project board github.com/grafana/grafana/projects/21 has been deleted
as far as I can tell (or never existed).

I can't see an obvious candidate-team to receive `area/editor`, so I
propose we delete it instead.
2025-03-06 15:42:19 +00:00
Josh Hunt
b6221cc389 Add Github Action to run analytics report (#101698) 2025-03-06 15:12:17 +02:00
Matheus Macabu
61eb837dd6 Chore: Bump Go to 1.23.7 (#101576) 2025-03-05 14:55:36 +01:00
Kevin Minehart
e933f7cf01 CI: Add frontend lint GitHub Actions workflow (#101559)
* lint frontend

* set frontend as owners of the lint workflow

* Fix syntax

* fix warning

* fix quote
2025-03-04 12:20:04 -06:00
Jev Forsberg
dc61bf0855 Chore: Migrate pr-lint-backend from Drone to GHAs (#101482)
* baldm0mma/ create backend-code-checks workflow

* baldm0mma/ update to validate backend configs

* baldm0mma/ rem unused dir

* baldm0mma/ update codeowners

* baldm0mma/ update naming

* baldm0mma/ update case

* baldm0mma/ update workflow name

* baldm0mma/ rem action and run the commands directly

* baldm0mma/ update codeownders

* baldm0mma/ update codeowners for workflow

* baldm0mma/ update workflow name in codeowners
2025-03-03 11:29:11 -07:00
Jev Forsberg
6abf0434df Chore: Migrate backend testing from drone to gha (#100765)
* baldm0mma/ add gha workflow

* baldm0mma/ add codeowners

* baldm0mma/ update health command

* baldm0mma/ update aliases for services

* baldm0mma/ rewrite migration attempt

* baldm0mma/ fix package names for ubuntu

* baldm0mma/ add authentication

* baldm0mma/ update auth

* baldm0mma/ add debugs

* baldm0mma/ add continue on error

* baldm0mma/ simplyfy ent fork logic

* baldm0mma/ debug fork status

* baldm0mma/ add debug workflow for enterprise access

* chore: add workflow_dispatch trigger to backend test workflow

* baldm0mma/ debug ent run

* baldm0mma/ add more robust debugging info

* baldm0mma/ use old drone ci app for testing

* baldm0mma/ update app name

* baldm0mma/ update workflow creds

* baldm0mma/ rename

* baldm0mma/ update codeownders

* baldm0mma/ update paths to ignore paths for docs and markdown files

* baldm0mma/ create 'Setup Grafana Enterprise' action and remove from current workflow

* baldm0mma/ fail at git clone

* baldm0mma/ absract away "Run backend tests" and "Run backend integration tests" into their own actions

* baldm0mma/ update directory strcuture to adhere to GHAs best practices

* baldm0mma/ remove optional configs

* baldm0mma/ update codeowners

* baldm0mma/ update gh app name

* baldm0mma/ remove circ dep

* baldm0mma/ uncomment out enterprise setup for test

* baldm0mma/ update valut url

* baldm0mma/ use vault instance rather than url

* baldm0mma/ debug

* baldm0mma/ Removed the multiline string format

* baldm0mma/ add installation key

* baldm0mma/ update path

* baldm0mma/ debug vault access

* baldm0mma/ add ent

* baldm0mma/ remove debugging

* baldm0mma/ update paths

* baldm0mma/ update codeowners

* baldm0mma/ update paths and codeowners

* baldm0mma/ add continue-on-error to assure the workflow isn't blocking

* baldm0mma/ simplify test action execution

* baldm0mma/ remove wire install step

* baldm0mma/ add conditions for coverage output

* baldm0mma/ add conditions for coverage output for integration test action

* baldm0mma/ add report converage file

* baldm0mma/ remove uneeded action

* baldm0mma/ update codeowners

* baldm0mma/ push small change to go file and add log

* baldm0mma/ update trigger conditions

* baldm0mma/ update converage conditions

* baldm0mma/ update Run backend integration tests with correct action

* baldm0mma/ test 2

* baldm0mma/ update with -coverpkg flag

* baldm0mma/ remove backend-coverage as it is now redundant

* baldm0mma/ update codeowners

* baldm0mma/ update test file

* baldm0mma/ update coverage logic
2025-02-28 14:53:17 -07:00
Yuri Tseretyan
10f17a296a Alerting: Update Github Action to update alerting module to support version branches (#101472) 2025-02-28 12:06:33 -05:00
Kevin Minehart
2ec8b0b45b CI: Create the frontend test workflow in GHA (#101256)
* Create the frontend test workflow

* Give .github/workflows/test-frontend to frontend platform group

* Remove file filter

* rename workflow

* frontend unit tests

* add yarn install

* update CODEOWNERS

* Run on 8 core machines?

* use parallelization?

* add sharding

* update package.json to allow sharding jest

* update workflow name

* yarn generate-apis

* update naming
2025-02-27 09:00:00 -06:00
Jack Baldry
a669e004ae Add GitHub Actions workflow for feature toggle tests (#101270)
ci: Add GitHub Actions workflow for feature toggle tests

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2025-02-27 10:47:39 +00:00
Yuri Tseretyan
2681a93b47 Fix permissions for Update Alerting Module action (#101223)
* add id-token permission

* use alerting-team app
2025-02-25 15:05:29 -05:00
Jack Baldry
305f05d852 Use version 2 of the deploy preview workflow (#101266)
* Use v2 deploy preview

Supports building with multiple documentation sources together.

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Lint a file

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2025-02-25 10:47:46 +00:00
Yuri Tseretyan
ba352af663 Alerting: Github Action to update alerting module (#100999) 2025-02-21 18:46:03 -05:00
Leonor Oliveira
9bc1549aee Upgrade codeql version (#100883) 2025-02-19 15:59:54 +01:00
Kevin Minehart
75189de4f7 CI: Post-release process branch / PR migration (#100930)
* update output for token in release-comms

* use token from needs

* generate token in individual workflows

* Set secrets

* define secrest in referenced workflows

* wrong secret lol

* oops

* grafana/grafana -> grafana/grafana-enterprise
2025-02-19 01:19:01 +02:00
Kevin Minehart
14477a7fe9 CI: release comms should trigger on merges to release- branches (#100901)
release comms should trigger on merges to release- branches
2025-02-18 22:34:21 +02:00
Piotr Jamróz
7b3b165c3d Ci: Use app token during checkout (#100889)
Use app token during checkout
2025-02-18 11:29:26 -07:00
Mariell Hoversholm
98fdcd52b3 CI: Output HTML coverage page in artifact (#100875)
* CI: Output HTML coverage page in artifact

* CI: Use correct artifact source
2025-02-18 16:13:52 +01:00
Piotr Jamróz
4979dd4eec CI: test if test-plugins folder exists before adding (#100876) 2025-02-18 15:38:36 +01:00
Mariell Hoversholm
6f9fc8fa0c CI: Track backend code coverage (#100856)
* CI: Track backend code coverage

This is a super rudimentary way to track this coverage. The important bit for me is the ability to extract the coverage
files.

* CI: Allow tests to fail

* Codeowners: Assign ownership of coverage tracking

* CI: Join coverage info in the job

* CI: Attempt to parallellise tests

* CI: Upload despite failures

* CI: Pattern is not regex

* CI: Set up repository and Go before merging

* CI: Generate go before checking coverage

* CI: Multi-line string

* CI: Backticks execute commands; avoid them

* CI: Make the output a bit prettier

Tabs are absurdly large.

* CI: Remove comment on retention
2025-02-18 14:35:06 +01:00
Ashley Harrison
02118cc6aa Chore: Automerge i18n PRs (#99555)
* add enable automerge step and update CODEOWNERS

* add approver steps

* move automerge step to pr approver token

* get vault secrets

* update workflow permissions

* remove local
2025-02-13 17:44:13 +00:00
Jack Baldry
2b054d4154 Correct release branch trigger glob (#100496) 2025-02-12 16:11:12 +00:00
Kevin Minehart
a8b98ded66 CI: Add release branches to patch automation (#100442)
* CI: Add release branches to patch automation

* Update .github/workflows/create-security-patch-from-security-mirror.yml

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

---------

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
2025-02-11 17:41:46 +02:00
Ethan
bf413643c8 Remove unused SBOM report workflow from GitHub Actions (#100124)
* Remove SBOM report workflow from GitHub Actions

* Remove SBOM report workflow from CODEOWNERS
2025-02-07 18:11:11 +01:00
Haris Rozajac
1bf53e7a5f Dashboard Schema V2: E2E setup (#99843)
* basic setup

* update CODEOWNERS

* update name

* add temp test that ensures we are loading schema V2 json in the UI

* update language

* test with yarn cache and combine steps

* revert combine

* remove commented out code

* Run current dashboard suite, make workflow optional

* make job always succeed

* Remove temp v2 suite

* don't run on draft PRs

* command for old arch
2025-02-06 08:33:18 -07:00
Kevin Minehart
8e10ee9056 CI: remove unnecessary line in backport.yml (#100144)
remove bad line
2025-02-05 21:37:19 +02:00
Kevin Yu
b7b2e2bbaa CI: Commit package.json changes in e2e/test-plugins when bumping versions (#97506) 2025-02-05 13:29:18 -06:00
Kevin Minehart
6787cdccb9 CI: Backport to release branches (#100067)
* update backport and release comms

* Backport to release branches and change docs source branch for publishing

* Add new workflows to CODEOWNERS

* Re-add removed line oops

* backport-testing -> grafana

* checkout grafana repo in backport action, reference repo / branch in reusable action

* generate -> create
2025-02-05 21:04:03 +02:00
Kevin Minehart
c0600969e0 CI: update changelog generator to use compare API (#99688)
update changelog generator to use compare API
2025-01-29 09:04:12 -06:00
Jack Baldry
8e5a4560e8 Add workflow that comments when PRs include the add to what's new label (#99637)
Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
2025-01-29 08:36:53 +00:00