Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Release Process (Semi automatic way) #681

Merged
merged 4 commits into from
Nov 14, 2023

Conversation

rubenvp8510
Copy link
Collaborator

@rubenvp8510 rubenvp8510 commented Nov 14, 2023

This new process is as follows:

  • Trigger "Prepare Release" GitHub action from the GitHub UI, you need to specify the new version.
  • This will create a new branch releases/x.y.z, where x.y.z is the new release
  • This also will create a new PR, witht he new bundle, the CHANGELOG, and all the neccesary modifications.
  • Once we test this on openshift and we are happy, we can merge the PR

The release GitHub action will take place

This GH action will be triggered only when the PR that gets merged is from releases/*., the source and destination are the the same repository, and the author of the PR is a GitHub action.

And this workflow follows the regular process, created release on GH and create the tag (we don't need to create the tag manually anymore)

Also this will trigger the OLM publish but that work is on another PR. (#583)

@andreasgerstmayr @pavolloffay @frzifus @iblancasa Let me know what do you think.

PS. I'll update the RELEASE.md once this is accepted.

Signed-off-by: Ruben Vargas <[email protected]>
Signed-off-by: Ruben Vargas <[email protected]>
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0b56912) 78.22% compared to head (bc0aded) 78.22%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #681   +/-   ##
=======================================
  Coverage   78.22%   78.22%           
=======================================
  Files          65       65           
  Lines        5024     5024           
=======================================
  Hits         3930     3930           
  Misses        907      907           
  Partials      187      187           
Flag Coverage Δ
unittests 78.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@iblancasa
Copy link
Collaborator

Good job!

jobs:
release:
if: |
github.event.pull_request.merged == true && github.event.pull_request.head.repo.full_name == github.repository
&& github.event.pull_request.user.login == 'github-actions[bot]' && github.event.pull_request.user.type == 'Bot'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also check if the source branch of the PR starts with releases/? Maybe we use this bot account for more things in the future, and this workflow should only run on releases.

startsWith(github.event.pull_request.head.ref, 'releases/')

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Copy link
Collaborator

@andreasgerstmayr andreasgerstmayr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, nice work!

Signed-off-by: Ruben Vargas <[email protected]>
Signed-off-by: Ruben Vargas <[email protected]>
@rubenvp8510 rubenvp8510 enabled auto-merge (squash) November 14, 2023 15:56
@rubenvp8510 rubenvp8510 merged commit c5e2019 into grafana:main Nov 14, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants