Skip to content

Conversation

lentzi90
Copy link
Contributor

@lentzi90 lentzi90 commented Aug 18, 2025

What this PR does / why we need it:

The workflow is failing in #2647 because the base is not set. This is an attempt to fix that.
However, creating a PR from a workflow triggered by a PR requires more privileges than the normal token has. I suggest we don't run this workflow on PRs at all, rather than giving it more permissions and a custom token.
We can still manually trigger it to run and select on which branch it should run.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • if necessary:
    • includes documentation
    • adds unit tests

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 18, 2025
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 18, 2025
Copy link

netlify bot commented Aug 18, 2025

Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!

Name Link
🔨 Latest commit b10b418
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-cluster-api-openstack/deploys/68a8110ee16dda00088be1d9
😎 Deploy Preview https://deploy-preview-2659--kubernetes-sigs-cluster-api-openstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@lentzi90
Copy link
Contributor Author

/hold
There is something else wrong with this workflow also. I think the reason it doesn't work on the PR is because it starts from the merge commit (not on a branch). This is not an issue in the periodic job though, but it still fails to create PRs.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 18, 2025
@lentzi90 lentzi90 force-pushed the lentzi90/base-input branch from e20ed2b to ca48b37 Compare August 18, 2025 09:34
@lentzi90
Copy link
Contributor Author

Ok now it is at least trying to create the PR! The remaining issue is that the default token doesn't have permission to create PRs when the action is triggered from a PR/push. I think that is a sane policy that we should not tamper with. Perhaps we can do some kind of dry-run on PRs 🤔

@lentzi90 lentzi90 force-pushed the lentzi90/base-input branch from ca48b37 to 6f08cea Compare August 22, 2025 06:40
We cannot run this on PRs since that would require more privileges. We can still manually trigger it to run on a specific branch as a way of testing
the workflow.
Also fix the syntax for add-paths. It should be a comma or newline separated list of paths, but we had an extra "-" in front of the path.

Signed-off-by: Lennart Jern <[email protected]>
@lentzi90 lentzi90 force-pushed the lentzi90/base-input branch from 6f08cea to b10b418 Compare August 22, 2025 06:41
@lentzi90
Copy link
Contributor Author

I have not found any clever way to dry-run this so removing the PR trigger. We can still trigger the workflow manually on specific branches as a way of testing it.
/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 22, 2025
@lentzi90 lentzi90 changed the title 🌱 Set base for golanci-lint update PR 🌱 Don't run golanci-lint update on PRs Aug 26, 2025
@EmilienM
Copy link
Contributor

EmilienM commented Sep 9, 2025

/lgtm
/approve

Thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 9, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: EmilienM

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

The pull request process is described 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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 9, 2025
@lentzi90
Copy link
Contributor Author

lentzi90 commented Sep 9, 2025

/retest

@k8s-ci-robot k8s-ci-robot merged commit 06ca685 into kubernetes-sigs:main Sep 9, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from Inbox to Done in CAPO Roadmap Sep 9, 2025
@lentzi90 lentzi90 deleted the lentzi90/base-input branch September 9, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants