Kevin Minehart
dc00f6dbe3
CI: add log for branch deletion ( #60647 )
...
* add log for branch deletion
* return an err when branch deletion fails
2022-12-21 19:27:49 +00:00
Dimitris Sotirakis
02fbb1cd8f
Chore: Remove unused config fields ( #60393 )
...
Remove unused config fields
2022-12-19 13:08:43 +02:00
Dimitris Sotirakis
f73cdc5e80
Metadata: Move and rename genversions.go
and genversions_test.go
( #60315 )
...
* Move and rename genversions.go and tests
* Fix lint - bring back cli.Exit
* Move package.json and fix tests
* Add necessary env vars for promote event
2022-12-15 03:51:11 -05:00
Kyle Brandt
55d2d872ec
Chore: Missed deprecations due to overly broad lint exclusion ( #59732 )
2022-12-14 12:32:45 +01:00
Dimitris Sotirakis
be0e4ab179
Enterprise checks: Update pull request check regexp
for enterprise ( #60234 )
...
Update pull request check regexp for enterprise
2022-12-13 08:01:20 -06:00
Dimitris Sotirakis
6d339d94dc
Chore: Remove %w
and err
from print line ( #60215 )
...
Remove %w and err
2022-12-13 05:56:34 -05:00
Dimitris Sotirakis
e9cf8fa751
CI: Add automation for github assets publishing ( #59491 )
...
* Add github.star
# Conflicts:
# .drone.star
# .drone.yml
* Make step depend on fetch images
# Conflicts:
# .drone.yml
* artifacts -> path
# Conflicts:
# .drone.yml
* Add github token
# Conflicts:
# .drone.yml
* Fix custom path
# Conflicts:
# .drone.yml
* Add case where path is absent
# Conflicts:
# .drone.yml
* Add GH_REGISTRY secret
# Conflicts:
# .drone.yml
2022-12-12 09:51:27 -05:00
Kevin Minehart
69ffce4c42
CI: add a quick test, set enterprise2 when the enterprise2 flag is added ( #59967 )
...
* add a quick test, set enterprise2 when the enterprise2 flag is added
Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
2022-12-07 13:52:16 -05:00
Dimitris Sotirakis
0801fce23c
CI: Move verify-storybook
command from grabpl ( #59928 )
...
* Move verify-storybook from grabpl
* Remove zerolog
2022-12-07 09:56:15 +02:00
Dimitris Sotirakis
bc5badbcd8
CI: Add enterprise2
flag to unblock enterprise2 image deployments ( #59904 )
...
Add hacky flag to unblock enterprise2
2022-12-06 18:42:11 +02:00
Dan Cech
1dbc22d18b
Build: don't remove grafana-server and grafana-cli binaries from deb and rpm packages ( #59890 )
...
* don't remove grafana-server and grafana-cli binaries from /usr/share/grafana/bin in deb and rpm packages
* don't add config overrides in /usr/sbin/grafana-server
2022-12-06 10:36:43 -05:00
Dimitris Sotirakis
78ef55eb06
CI: Add enterprise2 mode in versions.go
( #59851 )
...
Add enterprise2 mode
2022-12-05 15:03:47 -06:00
Kevin Minehart
76a586195a
Packaging: Use rpm-digest sha256 when creating rpm packages ( #59510 )
...
* Use rpm-digest sha256 when creating rpm packages
* only append this argument with rpm builds
2022-11-30 09:35:02 -06:00
Dan Cech
7436872dab
Build: Unified dockerfile for all builds ( #59173 )
...
* unified dockerfile for all builds
* update builder
* include docker commands and output in logs
* quiet docker build
* quiet gsutil
2022-11-28 16:18:53 -05:00
Dan Cech
9fec54df2d
Build: Streamline and sync dockerfiles ( #58101 )
...
* streamline and sync dockerfiles
* improve go dependency cacheability
* unify alpine and ubuntu Dockerfiles
* include glibc support in locally-built alpine images
2022-11-28 14:43:42 -05:00
Kevin Minehart
560b595ef2
CI: change regex to accomodate new branching stategy in enterprise ( #59429 )
...
change regex to accomodate new branching stategy in enterprise
2022-11-28 13:09:10 -05:00
Kevin Minehart
b3b7cba0fe
CI: add source_sha option to enterprise-pr-check action ( #59314 )
...
* add source_sha option to enterprise-pr-check action
* Add git hash to enterprise check branch
2022-11-28 09:44:23 -06:00
Kevin Minehart
45c759eb59
CI: Make the downstream enterprise test a check instead of comments ( #59071 )
2022-11-24 08:17:12 -06:00
Dan Cech
de99ce139c
Server: Switch from separate server & cli to a unified grafana binary ( #58286 )
...
* avoid the need for a second bulky binary for grafana-cli
* look for grafana-server in $PATH as well as same directory
* implement unified "grafana" command
* update dockerfiles, fix grafana-cli -v
* update packaging to work with single binary
- add wrapper scripts for grafana and grafana-server
- update and sync package files
- implement --sign flag of build package command
- stop packaging scripts folder, they are not useful for end users
- add support for --configOverrides in server command
- remove unused nfpm.yaml config file
* windows support
2022-11-22 11:53:43 -05:00
Guilherme Caulada
414df842b8
Build: Add command to publish to AWS Marketplace through the pipeline ( #59068 )
...
* Remove generic variables from publish github action
* Create publish aws cmd to automate aws releases
* Add tests to publish aws cmd
* Replace fmt with log for prints
* Remove unnecessary type assertions
* Readd mistakenly removed go package
* Replace log with fmt for prints due to conflicts
* Update github tests to conform with casing
2022-11-22 13:04:14 -03:00
Dimitris Sotirakis
44402ff726
CI: Split enterprise2
pipelines ( #57997 )
...
* Add publishimages_enterprise2.go file
* Add push.go
* Modify build files
* Modify starlark files
* Remove promotion pipeline
* Remove unused args
* Handle tag for custom events
2022-11-21 20:06:00 +02:00
Dimitris Sotirakis
01afe9fbd4
CI: Move upload-packages
subcmd from grabpl
( #58960 )
...
* Move upload-packages subcmd from grabpl
# Conflicts:
# .drone.yml
# Conflicts:
# .drone.yml
* Fix lint - add ActivateServiceAccount
* Fix lint
2022-11-18 17:22:14 +02:00
Dimitris Sotirakis
e37fc888c0
CI: Move upload-cdn
subcommand from grabpl
( #58957 )
...
Move upload-cdn from grabpl
2022-11-18 08:37:18 -05:00
Dimitris Sotirakis
d0dcbe34b2
grafana.com: Make beta
and test
releases not stable ( #58883 )
...
If version is beta or test, don't mark it as stable
2022-11-17 12:44:53 +02:00
Sasha Melentyev
febcaeff3a
Chore: Use strings.ReplaceAll and preallocate containers ( #58483 )
2022-11-09 17:17:09 +01:00
Dan Cech
d593aede3d
properly format new .drone.yml in verify-drone ( #58436 )
2022-11-08 10:27:57 -05:00
Julien Duchesne
786c7faff2
Grafana Enterprise Packaging: Set to conflict with grafana
, not replace ( #58189 )
...
* Grafana Enterprise Packaging: Set to conflict with `grafana`, not replace
When `grafana` and `grafana-enterprise` are in the same RPM repository, grafana-enterprise takes precedence over Grafana
This is not what we want. Users should be able to install either OSS or Enterprise
* Set it only one way. It's how it's currently tested
2022-11-08 13:08:01 +01:00
Andreas Christou
5cfd983cc2
AzureMonitor - E2E tests drone update ( #57100 )
...
* Update e2e command with video flag
* Add Cloud Plugins E2E tests to drone
* Update env variable names
* Add vault Azure secrets
* Update e2e steps
* Update secrets path
* Update image and rebuild drone file
* Readd drone changes
* Rebuild drone
* Remake drone
* Correct reference to secret
* Remake drone file
* Remove unneeded step
* Clear values in Arg query
2022-11-08 11:27:54 +01:00
Dimitris Sotirakis
7a12132237
DEB/RPM Packages: Remove old package publishing steps ( #58071 )
...
* Remove old publish package steps
* Don't ignore publish packaging failures
2022-11-02 18:42:01 +00:00
Kevin Minehart
fd16cad7da
Only provide version ot build-frontend-packages if it's a valid semver (has 2 digits) ( #57808 )
2022-10-28 05:04:59 -04:00
Guilherme Caulada
96a97f9827
Build: Add github release command to build/cmd ( #56349 )
...
* Add github release command to build/cmd
* Use go-github library and implement dry-run
* Make tag optional and default to metadata
* Fix minor bug with tag default
* Make some refactors to ease testing
* Add tests for publish github command
* Refactor publish github tests
* Refactor test helper function name
* Isolate local test
2022-10-20 11:11:53 -03:00
Dimitris Sotirakis
e829b50149
CI: Add CreateTempDir
func and use it in publish packages logic ( #57171 )
...
* Add CreateTempDir func and use it in publish packages logic
* Fill err return in defer func
2022-10-19 12:58:22 +02:00
Dimitris Sotirakis
0b72c36527
Replace json decoder with io.ReadAll ( #57178 )
2022-10-19 12:51:24 +03:00
Dimitris Sotirakis
c96b6a6ab0
CI: Move CreateTempFile
- use it for rpm
/deb
packages ( #56990 )
...
* Move CreateTempFile - use it for rpm/deb packages
* Fix typo
* Fix tests:
2022-10-17 16:23:57 +01:00
Dimitris Sotirakis
df2abf09c2
Use io.ReadAll instead of json.Decode ( #56528 )
2022-10-07 04:27:18 -04:00
Dimitris Sotirakis
66e8f39ce8
Packaging: Change from 0750
to 0755
folder permissions when packaging ( #56436 )
...
* Change from 0750 to 0755
* Change to 0o755
* Skip lint when creating dir
2022-10-06 17:11:11 +03:00
Dimitris Sotirakis
3aacda5579
Move files under pkg/build/packaging ( #56435 )
2022-10-06 03:33:40 -04:00
Dimitris Sotirakis
d94af21cac
Replace filename with path without the local dir ( #56296 )
2022-10-04 17:18:07 +03:00
Dimitris Sotirakis
26d64a778e
Add cronjob option at switch case ( #56272 )
2022-10-04 11:15:47 +01:00
Dimitris Sotirakis
d32c67b52a
CI: Add packages-bucket
flag to publish packages
command ( #56170 )
...
* Add public bucket string
* Fix lint
2022-10-03 13:29:32 +01:00
Dimitris Sotirakis
947838cca0
CI: Move grafanacom
command to OSS ( #55853 )
...
* Move publish-packages command over from
* Fix lint
* Move grafanacom command to OSS
* Add GetLatestMainBuild to gsutil
* Fix lint
* More lint fixes
* Add tests for grafanacom
* Fix lint
2022-10-03 14:14:24 +03:00
Laura Fernández
fca252e7dc
A11y: enable rule jsx-a11y/alt-text ( #55832 )
...
* Enable jsx-a11y/alt-text rule
* Fix errors
* Fix tests
* Enable jsx-a11y/alt-text rule after solving merge conflict
* Delete unused import
* Modify files according to the reviewer's comments
* Revert test changes and update snapshot
* tweaks to image alt names
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-10-03 09:27:04 +01:00
Dimitris Sotirakis
9a68f8704f
CI: Move publish-packages
command over from grabpl
( #55850 )
...
* Move publish-packages command over from
* Lint fixes
* Update test
2022-09-29 07:32:42 -04:00
Dimitris Sotirakis
2a3f423e10
Replace armhf with armhfp for RPMs ( #55814 )
2022-09-27 08:49:00 -05:00
Torkel Ödegaard
018733dd24
PluginDetails: Make plugin details page look good in topnav ( #55571 )
...
* PluginDetails: Make plugin details page look good in topnav
* Minor style tweak aligning things
* minor refactoring where I moved the logic to decide the default tab into its own hook.
* refactor(plugindetails): first pass at using navmodel for usePluginDetailsTabs hook
* refactor(plugindetails): move "reset page when uninstalling plugin" to installcontrols
this prevents a user from seeing a blank page if they uninstall an app plugin whilst viewing a
config page
* refactor(plugindetails): remove usage of toIconName and reduce nested if
* Trying to fix tests
* minor fix
* test(plugindetails): update selectors causing failing tests
* chore(plugindetails): remove commented out test code
* test(plugindetails): clean up - remove unnecesary usage of waitFor
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-09-26 15:04:07 +02:00
Kevin Minehart
2fadeeff4c
CI: move grabpl package
command to pkg/build
( #55651 )
...
* add grabpl package
* update .drone.yml
* resolve lint errors
2022-09-23 11:49:07 -05:00
Dimitris Sotirakis
cb93ed04a7
Add storybook bucket for main builds ( #55448 )
2022-09-20 13:15:06 +03:00
Dimitris Sotirakis
b26e443173
Fix fetch-images command ( #55365 )
2022-09-19 17:17:56 +03:00
Dimitris Sotirakis
f058e1eae3
Add storybook bucket for main builds ( #55379 )
2022-09-19 17:17:25 +03:00
Dimitris Sotirakis
93e78e2146
CI: Move fetch-images
sub-command from build-pipeline
repo ( #55298 )
...
* Move fetch images from build-pipeline
* Modify drone
* Replace zerolog with builtin log
* Fix lint
2022-09-19 11:19:31 +03:00
Dimitris Sotirakis
95512c19e0
CI: Refactor versions.go
( #55238 )
...
* Refactor versions.go
* s/ReleaseModeConfig/BuildConfig
2022-09-16 06:26:33 -04:00
Dimitris Sotirakis
4e73766067
CI: Move store-storybook
to OSS ( #55212 )
...
* Move store-storybook to OSS
* grabpl -> build for store-storybook command
* Replace zerolog with builtin log
* Remove flags from store-storybook
* Fix lint
2022-09-15 11:06:43 +03:00
Kevin Minehart
ed5d617cb9
CI: move grabpl verify-drone ( #55057 )
...
* move grabpl verify-drone
2022-09-14 08:59:18 +03:00
Dimitris Sotirakis
ac0f5c5556
CI: Add export-version
command ( #55072 )
...
* Add export-version command
* Fix lint
* 1-line cleanup
2022-09-13 13:26:24 +03:00
Kevin Minehart
d3af3e0431
CI: Move grabpl publish-metrics ( #55042 )
...
* move grabpl publish-metrics
* grabpl -> ./bin/build
* fix lint error
2022-09-12 13:28:08 -05:00
Emil Tullstedt
b287047052
Chore: Upgrade Go to 1.19.1 ( #54902 )
...
* WIP
* Set public_suffix to a pre Ruby 2.6 version
* we don't need to install python
* Stretch->Buster
* Bump versions in lib.star
* Manually update linter
Sort of messy, but the .mod-file need to contain all dependencies that
use 1.16+ features, otherwise they're assumed to be compiled with
-lang=go1.16 and cannot access generics et al.
Bingo doesn't seem to understand that, but it's possible to manually
update things to get Bingo happy.
* undo reformatting
* Various lint improvements
* More from the linter
* goimports -w ./pkg/
* Disable gocritic
* Add/modify linter exceptions
* lint + flatten nested list
Go 1.19 doesn't support nested lists, and there wasn't an obvious workaround.
https://go.dev/doc/comment#lists
2022-09-12 12:03:49 +02:00
Dimitris Sotirakis
e277ab0017
CI: Call for Grafana version on demand - remove need for version.json
( #54638 )
...
* Remove need for version.json
* Fix lint
* log.Info -> fmt.Print
* Add back tests
* Remove non-used file
* Fix lint
* Update grabpl version to v3.0.6
2022-09-09 02:35:10 -04:00
Kevin Minehart
1169f14d47
CI: move grabpl build-frontend-packages
from grabpl to grafana ( #53072 )
...
* move grabpl build-frontend-packages
* add frontend and lerna packages
* grabpl build-frontend-packages -> ./bin/build build-frontend-packages
* move getgrafanaversion
* add noinstalldeps flag
* fix compiler error
* fix lint error
* add missing flags
2022-09-06 20:09:08 +03:00
Kevin Minehart
a76ce1f567
CI: move grabpl e2e tests
from grabpl to grafana ( #53075 )
...
* move grabpl e2e tests
2022-09-02 11:02:10 -04:00
Dimitris Sotirakis
8be3ea269d
Default to pull_request events ( #54640 )
2022-09-02 17:39:05 +03:00
Dimitris Sotirakis
212f0609eb
Check if dist dir exists ( #54590 )
2022-09-01 10:43:04 -04:00
Dimitris Sotirakis
7e2238cf6f
CI: Generate Grafana version (and metadata) when the build binary is built ( #54393 )
...
* Add GenerateVersions as BeforeFunc
* Delete gen-version
* Fix lint
* Get build id from env var
2022-09-01 15:43:40 +03:00
Dimitris Sotirakis
239c4cdb25
Add CustomMode in versions.go ( #54482 )
2022-08-31 09:21:33 +03:00
Dimitris Sotirakis
933bbe228b
Add PackagesBucketEnterprise2 field in config ( #54449 )
2022-08-30 10:47:12 -04:00
Jo
ca72cd570e
Remove ioutil.ReadDir from usage ( #53550 )
...
* add depguard rule for ioutil
* replace ioutil.ReadDir with os.ReadDir
* use legacy option in depguard supported in golangci-lint v1.40
* replace ioutil.ReadDir with os.ReadDir
* return error for file info
2022-08-11 07:21:12 -04:00
Dimitris Sotirakis
fa4abdcce1
Grafana Build: Sync Grafana versioning changes from build-pipeline
( #53522 )
...
* Sync version changes
(cherry picked from commit fb449ba0376cd7d86928e8b08ef77a851488604b)
Sync version refactoring changes
* Update grabpl
2022-08-11 11:44:59 +03:00
Kevin Minehart
d117689aea
CI: move grabpl build-frontend
from grabpl to grafana ( #53073 )
...
* move grabpl build-frontend
2022-08-10 10:29:51 -04:00
Jo
062d255124
Handle ioutil deprecations ( #53526 )
...
* replace ioutil.ReadFile -> os.ReadFile
* replace ioutil.ReadAll -> io.ReadAll
* replace ioutil.TempFile -> os.CreateTemp
* replace ioutil.NopCloser -> io.NopCloser
* replace ioutil.WriteFile -> os.WriteFile
* replace ioutil.TempDir -> os.MkdirTemp
* replace ioutil.Discard -> io.Discard
2022-08-10 15:37:51 +02:00
Dimitris Sotirakis
bf30976200
Change from arm to armv7 ( #53437 )
2022-08-09 04:20:45 -04:00
Kevin Minehart
59ce564d49
CI: move grabpl build-docker
from grabpl to grafana ( #53077 )
...
* add grabpl build-docker
2022-08-09 09:43:28 +03:00
Kevin Minehart
d1d237f30a
CI: move grabpl shellcheck
from grabpl to grafana ( #53076 )
...
* add grabpl shellcheck
* grabpl shellcheck -> ./bin/build shellcheck
2022-08-08 10:36:13 -05:00
Dimitris Sotirakis
ee8966344d
Replace with anonymoud functions ( #53386 )
2022-08-08 08:09:52 -04:00
Kevin Minehart
138f03aad1
CI: move grabpl build-plugins
from grabpl to grafana ( #53071 )
...
* add grabpl command to build internal plugins
* grabpl build-plugins -> ./bin/build build-plugins
2022-08-04 11:39:36 -05:00
Kevin Minehart
d567f199dd
CI: add the grabpl build-backend command into the repo ( #52673 )
...
* Move the grabpl build-backend command and clean it up a bit
2022-07-28 10:11:22 -04:00
Armand Grillet
7f29c2696d
Add nolint to two lines in fs.go ( #49357 )
2022-05-21 12:14:58 +02:00
Leonard Gram
c6021c8b4f
Build: building a local docker image using build-docker-dev no longer supported ( #42563 )
2021-12-01 14:34:28 +01:00
Kevin Minehart
792fa63725
set opts.version after getting version from package.json ( #39038 )
2021-09-09 15:40:08 +02:00
Kevin Minehart
d913e46e37
Chore: move build command to importable package ( #38726 )
...
* move build command to importable package & clean up
2021-09-03 11:24:21 -05:00