grafana/scripts
Kat Yang bbcc81405b
Chore: Add CI Pipeline to generate Grafana's OpenAPI specification (#75393)
* chore: move over initial changes from sofia's pr #58029

* chore: remove go_image

* chore: begin removing edition, remove unused imports

* chore: remove edition from swagger_gen.star and generate .drone.yml

* chore: regen drone.yml

* fix: fix order of load statements

* fix: try #2 fix order of load statements

* linter fixes

* chore: add doc comment explaining purpose of new clone_pr_branch step

* fix: add placeholder documentation for ver_mode arg

* attempt #1 to import and use clone_enterprise_step_pr

* Update scripts/drone/pipelines/swagger_gen.star

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* attempt #2 to import and use clone_enterprise_step_pr

* fix: fix drone lint err invalid or unknown step dependency

* fix: regen hmac to make drone run

* fix: fix drone lint err

* fix: update swagger-clean cmd in step

* attempt to return non zero exit code

* test to see if pipeline fails

* fix: add git to clone pr branch step

* fix: add git and make to swagger-gen step

* try to rerun drone

* debug: figure out why cannot find make swagger-clean

* debug: see if cd grafana/grafana fixes things

* debug: undo cd grafana/grafana

* debug: add more logging statements

* debug: try and remove cd grafana in swagger-gen

* debug: removed grafana after clone statement; add debug before cloning

* fix: remove disable clone

* regen specs to see if swagger-gen step passes now

* add descriptive error message to swagger-gen step

* remove api-spec.json from .gitignore

* revert backend change, regen spec

* add back backend change, regen specs

* Update scripts/drone/pipelines/swagger_gen.star

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* Update scripts/drone/pipelines/swagger_gen.star

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* revert gitignore change, set enterprise source to drone source branch

* chore: remove unused variable, change committish var name to source

* testing functionality: make a new BE change without gen spec, pipeline should fail

* test functionality: does removing err msg cause step to fail properly

* test functionality: add back err msg and && after

* chore: remove debug statements from swagger gen step

* chore: remove debug lines from clone_pr_branch step

* test functionality: regen specs, swagger_gen step should pass

* test funcionality: regen specs again ????

* chore: update swagger-gen step err msg

* test functionality: make BE change dont regen spec, swagger gen should fail

* test functionality: regen the specs, swagger-gen should pass

* chore: revert test BE change, regen spec

* chore: remove unused clone step

* chore: regen drone.yml

---------

Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com>
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2023-10-24 13:01:04 -04:00
..
build Chore: Upgrade Go to 1.20.10 (#76359) 2023-10-11 16:49:24 +03:00
cli I18N: Collect stats on number of untranslated strings in message catalogues (#76272) 2023-10-11 12:26:39 +03:00
docs Transformations: Separate useful doc content for UI use (#75781) 2023-10-24 10:30:10 -06:00
drone Chore: Add CI Pipeline to generate Grafana's OpenAPI specification (#75393) 2023-10-24 13:01:04 -04:00
go/bin Remove integration tags for enterprise (#50974) 2022-06-22 15:22:42 +02:00
grafana-server Chore: Reduce flakiness of e2e tests caused by write contention in sqlite (#76659) 2023-10-17 10:49:49 +03:00
helpers Build: Introduce shellcheck (#18081) 2019-07-23 13:12:33 +03:00
modowners Chore: Add action items for existing dependencies to readme (#72408) 2023-07-28 12:54:44 -04:00
openapi3 openapi: Use indentations for human-readable JSON (#53707) 2022-08-15 15:39:18 -04:00
verify-repo-update Chore: Update ubuntu image to 22.04 (#70719) 2023-09-28 08:48:41 -05:00
webpack Chore: Remove eval source maps to fix trusted types during dev (#72664) 2023-08-02 07:35:36 +00: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 Build testdata frontend standalone (#75833) 2023-10-16 17:31:43 +02:00
ci-frontend-metrics.sh I18N: Collect stats on number of untranslated strings in message catalogues (#76272) 2023-10-11 12:26:39 +03: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
cleanup-husky.sh Chore: Replace Husky/Lint-staged with Lefthook (#66608) 2023-08-17 09:56:52 +00:00
generate-a11y-report.sh Chore: Fix ShellCheck issue in the local a11y report (#55036) 2022-09-12 16:54:06 +02:00
generate-icon-bundle.js Grafana UI: Make it possible to bundle package with plugins (#76191) 2023-10-13 14:11:41 +02:00
import_many_dashboards.sh ci-build: spelling (#24386) 2020-05-18 16:41:06 +03:00
list-release-artifacts.sh CI: Fix verify-prerelease-assets pipeline (#72226) 2023-07-24 18:30:02 -03: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 CI: Fix validate-npm-packages regex to work without version suffix (#76838) 2023-10-19 15:06:00 -05:00