Skip to content

Conversation

Rishab87
Copy link
Contributor

What this PR does / why we need it:
This PR adds a workflow for automating the pre-release PR creation process. It runs all the commands mentioned in RELEASE.md for pre release as well as all the tests.

Test runs: Rishab87#8

How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality)
does not changes

Which issue(s) this PR fixes: (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged)
Related to #2756
To be merged after #2769

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Rishab87
Once this PR has been reviewed and has the lgtm label, please assign rexagod for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Sep 30, 2025
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If kube-state-metrics contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@github-project-automation github-project-automation bot moved this to Needs Triage in SIG Instrumentation Sep 30, 2025
@Rishab87 Rishab87 changed the title feat: Added a workflow for automatiing pre-release PR feat: Added a workflow for automating pre-release PR Sep 30, 2025
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 30, 2025
Comment on lines 82 to 83
git config --local user.email "ksm-release-bot@mock-k8s.io"
git config --local user.name "KSM Release Bot"
Copy link
Member

Choose a reason for hiding this comment

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

Could these be pointed to the person invoking the release instead?

git config --local user.name "KSM Release Bot"
git add .
git commit -m "chore: Cut ${{ inputs.new_version }}"
MAJOR_MINOR_VERSION=$(echo "${{ inputs.new_version }}" | sed 's/^v//' | cut -d. -f1,2)
Copy link
Member

Choose a reason for hiding this comment

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

This isn't being used anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah removed it

Comment on lines 97 to 102
- name: Validate docs
run: make doccheck
- name: Validate manifests
run: make validate-manifests
- name: Validate go modules
run: make validate-modules
Copy link
Member

Choose a reason for hiding this comment

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

I'd like to see these done before testing steps.

run: make validate-manifests
- name: Validate go modules
run: make validate-modules
- name: Create a pull request
Copy link
Member

Choose a reason for hiding this comment

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

I'd appreciate if the longer lines could be broken (using multi-line separators) down and commented for this step.

@Rishab87 Rishab87 force-pushed the pre-release-workflow branch from c0d1c8b to e6bd578 Compare October 2, 2025 10:38
@Rishab87
Copy link
Contributor Author

Rishab87 commented Oct 2, 2025

@rexagod I've addressed all the reviews, can you please re-review again?
Test run after the changes: Rishab87#10

@Rishab87 Rishab87 requested a review from rexagod October 2, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
Status: Needs Triage
Development

Successfully merging this pull request may close these issues.

3 participants