Skip to content

Patching in code generation workflow doesn't work #3893

Open
@yue9944882

Description

@yue9944882

https://github.com/kubernetes-client/java/actions/runs/13120437178

When I just ran the openapi model generation workflow just now, an error from code patching step aborted the workflow with following error:

Run ls scripts/patches/*.diff | xargs git apply
error: patch failed: kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java:18
error: kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java: patch does not apply

So I had skip the code patch step in the workflow via, retry and toggling If true, skip patching code after generation: https://github.com/kubernetes-client/java/actions/runs/13120777699

This indicates that the patches under scripts/patches folder are outdated, hence we need to do either of:

  1. Refresh the patch files for the branch
  2. Consider an alternative approach to make incremental patches on top of the raw generated code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions