grafana/scripts
Kat Yang f3f3b1494d
Feat: Add command line app to validate go.mod (#67796)
* chore: start modowners

* read go.mod, parse modfile, iterate through requires; add dummy go.mod

* make BEP owners of all grafana dependencies 😱

* push attempt at logging the require comments

* shrink dummy modfile

* revert changes in go.mod

* access comments suffix

* add Module struct; attempt to separate ParseGoMod functionality into its own func; add owner (third) for loop when interating modfile

* feat: print all owners in modfile

* add additional question in comment

* feat: add subcommands: check, owners, modules; chunk out some functions

* chunk out subcommand functions

* add flags

* start tests for common element

* refactor: test for common element

* attempt #1 to refactor modules to accept multiple args

* refactor: refactor modfule func to take 1+ owner arguments (0 arguments not working atm)

* chore: remove debug logging

* refine existing comments

* comment out indirect flag stuff, add example cli command for modules

* unsuccessful attempt #2 to refactor modules to accept -o and -i flags

* refactor funcs to take filesystem and logger

* test: add test for check when all modules have owners

* fail attempt 1 to get TestModules to work

* assert expected log result in TestModules; unsure if properly reading logs

* test: add TestModules to test modules func without any flags returns direct dependencies

* test: add TestInvalidCheck for scenario when some dependencies are missing an owner

* attempt 1 at refactoring TestCheck into a table

* chore: clean TestCheck

* chore: clean up comments for func check

* move files under scripts/modowners

* revert go.mod and go.sum
2023-05-30 18:18:05 +03:00
..
build CI: Add Windows backend tests in more places (#66438) 2023-05-08 15:22:34 +02:00
cli Chore: Bump d3-color to 3.1.0 (#61609) 2023-01-26 13:02:22 +01:00
drone CI: Don't run RGM pipeline on docs changes (#69243) 2023-05-30 18:17:53 +03:00
go/bin Remove integration tags for enterprise (#50974) 2022-06-22 15:22:42 +02:00
grafana-server Feature: Trusted Types support (#64975) 2023-04-27 18:20:37 +02:00
helpers Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
modowners Feat: Add command line app to validate go.mod (#67796) 2023-05-30 18:18:05 +03:00
openapi3 openapi: Use indentations for human-readable JSON (#53707) 2022-08-15 15:39:18 -04:00
verify-repo-update Rickywhitaker/verify repos update (#65739) 2023-04-04 11:17:12 -05:00
webpack Build: Force same version of @emotion/react via webpack config (#66822) 2023-04-24 17:13:52 +02:00
benchmark-access-control.sh Access control: Basic structure and functionality behind feature toggle (#31893) 2021-03-22 13:22:48 +01:00
check-breaking-changes.sh Explore: Refactor trace view and move to core (#61938) 2023-01-27 14:13:17 +00:00
ci-frontend-metrics.sh Chore: add a betterer test for undocumented stories (#51444) 2022-06-29 12:25:31 +01:00
ci-job-failed.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
ci-job-started.sh Build: Reports times and outcomes from CircleCI jobs (#20474) 2019-11-20 07:21:07 +01:00
ci-job-succeeded.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
circle-test-backend.sh Chore: Upgrade to Go 1.14 (#23371) 2020-04-08 14:13:05 +02:00
circle-test-cache-servers.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
circle-test-frontend.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
circle-test-mysql.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
circle-test-postgres.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
clean-git-or-error.sh Do codegen and check no-diff of all (non-blacklisted) CUE->TS codegen during CI (#39922) 2021-10-08 08:47:55 -04:00
generate-a11y-report.sh Chore: Fix ShellCheck issue in the local a11y report (#55036) 2022-09-12 16:54:06 +02:00
import_many_dashboards.sh ci-build: spelling (#24386) 2020-05-18 16:41:06 +03:00
list-release-artifacts.sh CI: Add release verify pipeline (#68756) 2023-05-23 10:01:09 +02:00
mixin-check.sh Add monitoring mixing for Grafana (#28285) 2020-10-15 17:05:56 +02:00
prepare-packagejson.js Build: Adds a fallback script to fix package.json main and types fields before packaging (#59628) 2022-12-01 11:34:52 +01:00
protobuf-check.sh Backend plugins: Renderer v2 plugin (#23625) 2020-04-21 16:16:41 +02:00
publish-npm-packages.sh Fix: Canary NPM publishing (#66734) 2023-04-18 12:00:05 +02:00
stripnulls.sh Actually enforce dashboard schema on devenv (#53797) 2022-08-16 22:07:57 -04:00
tag_release.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
trigger_docker_build.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
trigger_grafana_packer.sh Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
trigger_windows_build.sh Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
validate-npm-packages.sh Build: Improve NPM publishing (#65171) 2023-04-18 10:19:37 +02:00