-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add setup krel github action #101
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Vyom-Yadav 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 |
May I ask why? What is the need for that? |
Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com>
4510b94
to
baaa5cd
Compare
Just added the reason to the PR description. It is required for running a pre submit validation job. |
The release team is building a yaml linter into krel (for the release notes maps), this would allow it to run on One thing that comes to mind is that krel is not intended to be a general-purpose tool so perhaps we could still have the installer workflow but only for k/release (not as a reusable action)? WdYT @cpanato ? |
Do you want to have this directly on /~https://github.com/kubernetes/sig-release? (I'm assuming by k/release you meant that and not /~https://github.com/kubernetes/release). Or do you actually want to have this in /~https://github.com/kubernetes/release, and want this to be a reusable workflow and not a composite action? (https://docs.github.com/en/actions/sharing-automations/avoiding-duplication) |
@puerco @Vyom-Yadav, why is that not a stand-alone tool instead being injected inside krel? |
@npolshakova Is there any release notes specific validation other than standard yaml format validation that |
Yep, there are a couple of reasons this is not a stand-alone tool and instead is bundled as part of
|
exit 1 | ||
fi | ||
|
||
# Compare paths |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we run it on the git diff (git diff --name-only master
) that gets created when a release notes PR is put for review? This way it will ignore old changes and only run on the new files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just the test workflow for setting up krel. This would be used out of tree on sig release repo, which will be a separate PR after this which would have the constraints on when to trigger it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Then we can potentially reuse the action for other krel commands: /~https://github.com/kubernetes/release/tree/23fe7e8cfa915a24abf3d61d2fadc80ab0674baf/docs/krel#usage
@cpanato I hope #101 (comment) answers your question |
@Vyom-Yadav yeah I meant on k/sig-release, sorry. The goal of the release-actions repo is to let others reuse the general purpose tools we have. Since krel (and this feature specifically) is only intended for use in the kubernetes releases I think we should not offer it here for everybody, but we should definitely have it in sig-release. |
I think when we brought this up in the release meeting, they specifically suggested having That way sig-release will be relatively free of go code and GitHub workflow logic, and would just import in this workflow. |
We discussed this during the Dec 17 SIG release meeting. Based on our discussion please recreate this PR in k/sig-release. A final note on the implementation: Before you recreate the PR, please make sure that instead of building it in the workflow, download a prebuilt (pinned) /cc @npolshakova @cpanato @kubernetes-sigs/release-engineering |
We will be closing this soon (see comment above) I'll leave it open for visibility for a few days. |
I'll send updates to the newer PR. /close |
@Vyom-Yadav: Closed this PR. In response to this:
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. |
Adds a GitHub Action to setup krel.
This is required to setup a presubmit job for PRs like: kubernetes/sig-release#2659. The current requirement is to add validation using: