Skip to content

Conversation

camilamacedo86
Copy link
Member

@camilamacedo86 camilamacedo86 commented Aug 7, 2025

This updates the behaviour of runMakeTargets after a merge:

  • If --force is set, it runs all make targets (like generate, vet, etc.)
    Even if some fail, this helps keep the project in as consistent a state as possible when conflicts are faced.
    If the conflict is faced, but we are still able to regenerate the manifest, we try to do so.
  • If --force is not set, it fails immediately on the first failed target.

We now use sh -c "make <target> || true" when --force is enabled,
So we can continue execution, but still detect and log failures.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 7, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 7, 2025
@camilamacedo86 camilamacedo86 force-pushed the fix-makefile-target-warning branch from 1caa54d to 96422ce Compare August 7, 2025 07:55
@camilamacedo86 camilamacedo86 changed the title 🐛 (alpha update) runMakeTargets: always try to run make targets after merge, even with conflicts 🐛 (alpha update) unMakeTargets: run all targets only with --force, fail fast otherwise Aug 7, 2025
@camilamacedo86 camilamacedo86 force-pushed the fix-makefile-target-warning branch 3 times, most recently from edc47c1 to 915d306 Compare August 7, 2025 08:02
@camilamacedo86 camilamacedo86 changed the title 🐛 (alpha update) unMakeTargets: run all targets only with --force, fail fast otherwise 🐛 (alpha update) runMakeTargets: run all targets only with --force, fail fast otherwise Aug 7, 2025
@camilamacedo86 camilamacedo86 changed the title 🐛 (alpha update) runMakeTargets: run all targets only with --force, fail fast otherwise 🐛 (alpha commands): alpha update command with --force now runs post-merge fixes in best-effort mode to improve recovery from conflicts. Aug 7, 2025
@camilamacedo86 camilamacedo86 changed the title 🐛 (alpha commands): alpha update command with --force now runs post-merge fixes in best-effort mode to improve recovery from conflicts. 🐛 (alpha commands): alpha update command with --force now runs post-merge fixes in best-effort mode raising warnings instead of errors to allow properly automation with this option Aug 7, 2025
@camilamacedo86
Copy link
Member Author

/test pull-kubebuilder-test

@camilamacedo86 camilamacedo86 force-pushed the fix-makefile-target-warning branch from 915d306 to 152219d Compare August 7, 2025 12:01
@vitorfloriano
Copy link
Contributor

/lgtm

Should we close #4989 and #4990

@k8s-ci-robot
Copy link
Contributor

@vitorfloriano: changing LGTM is restricted to collaborators

In response to this:

/lgtm

Should we close #4989 and #4990

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.

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/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants