grafana/scripts/drone/pipelines
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
..
aws_marketplace.star [WIP] CI: Removes enterprise specific pipelines and steps (#70815) 2023-07-14 14:18:09 +03:00
benchmarks.star Refactor starlark to remove references to the build_image (#74624) 2023-09-12 12:19:06 -03:00
build.star CI: rgm-package must wait for update-package-json-version in main pip… (#77022) 2023-10-24 11:52:14 +03:00
ci_images.star Refactor starlark to remove references to the build_image (#74624) 2023-09-12 12:19:06 -03:00
docs.star Refactor starlark to remove references to the build_image (#74624) 2023-09-12 12:19:06 -03:00
github.star [WIP] CI: Removes enterprise specific pipelines and steps (#70815) 2023-07-14 14:18:09 +03:00
integration_tests.star CI: Add test Mimir backend image for integration tests (#76051) 2023-10-05 15:09:26 -03:00
lint_backend.star Chore: Add new drone step to validate OpenAPI specification (#75034) 2023-09-20 11:46:15 -04:00
lint_frontend.star [WIP] CI: Removes enterprise specific pipelines and steps (#70815) 2023-07-14 14:18:09 +03:00
publish_images.star [WIP] CI: Removes enterprise specific pipelines and steps (#70815) 2023-07-14 14:18:09 +03:00
shellcheck.star CI: Fixes for various main steps (#74768) 2023-09-13 00:44:33 +03:00
swagger_gen.star Chore: Add CI Pipeline to generate Grafana's OpenAPI specification (#75393) 2023-10-24 13:01:04 -04:00
test_backend.star Refactor starlark to remove references to the build_image (#74624) 2023-09-12 12:19:06 -03:00
test_frontend.star Refactor starlark to remove references to the build_image (#74624) 2023-09-12 12:19:06 -03:00
trigger_downstream.star CI: Update secret refs to vault ones; update downstream repo origin (#72515) 2023-07-28 20:36:31 +03:00
verify_drone.star [WIP] CI: Removes enterprise specific pipelines and steps (#70815) 2023-07-14 14:18:09 +03:00
verify_starlark.star [WIP] CI: Removes enterprise specific pipelines and steps (#70815) 2023-07-14 14:18:09 +03:00
whats_new_checker.star Refactor starlark to remove references to the build_image (#74624) 2023-09-12 12:19:06 -03:00
windows.star Refactor starlark to remove references to the build_image (#74624) 2023-09-12 12:19:06 -03:00