make patch generator code more modular #30

Merged
zaprit merged 3 commits from chore/separate-patch-generator-code into main 2026-08-24 22:39:50 +00:00
Owner

moves patch generator code out of the main package and into a dedicated "patch_generator" package and moves some of the symbol finding logic out of the main method, still not sure this is the best way of going about it but it should be more reusable in other tools

moves patch generator code out of the main package and into a dedicated "patch_generator" package and moves some of the symbol finding logic out of the main method, still not sure this is the best way of going about it but it should be more reusable in other tools
make patch generator code more modular
Some checks failed
Pipelines as Code CI / patchwork-pr Failed
40b4d32c85
moves patch generator code out of the main package and into a dedicated "patch_generator" package and moves some of the symbol finding logic out of the main method, still not sure this is the best way of going about it but it should be more reusable in other tools
Owner

Pipelines as Code CI/patchwork-pr-lkkmb is running.

Starting Pipelinerun patchwork-pr-lkkmb in namespace hugespaceship-ci

You can monitor the execution using the Not configured PipelineRun viewer or through the command line by
using the tkn CLI with the following command:

tkn pr logs -n hugespaceship-ci patchwork-pr-lkkmb -f

Pipelines as Code CI/patchwork-pr-lkkmb is running. Starting Pipelinerun <b>[patchwork-pr-lkkmb](https://dashboard.is.not.configured)</b> in namespace <b>hugespaceship-ci</b> You can monitor the execution using the [Not configured](https://dashboard.is.not.configured) PipelineRun viewer or through the command line by using the [tkn](https://tekton.dev/docs/cli/#installation) CLI with the following command: <code>tkn pr logs -n hugespaceship-ci patchwork-pr-lkkmb -f</code>
Owner

Pipelines as Code CI/patchwork-pr-lkkmb has failed.


Task Statuses:

StatusDurationName
Succeeded 32 seconds

fetch

Succeeded 19 seconds

build

Failed 33 seconds

go-build


Failure snippet:

task go-build has the status "Failed":
go: ./patch-generator (/workspace/source/patch-generator) is not a package in module rooted at /workspace/source
Pipelines as Code CI/patchwork-pr-lkkmb has <b>failed</b>. <ul> <li><b>Namespace</b>: <a href="https://dashboard.is.not.configured">hugespaceship-ci</a></li> <li><b>PipelineRun:</b> <a href="https://dashboard.is.not.configured">patchwork-pr-lkkmb</a></li> </ul> <hr> <h4>Task Statuses:</h4> <table> <tr><th>Status</th><th>Duration</th><th>Name</th></tr> <tr> <td>Succeeded</td> <td>32 seconds</td><td> [fetch](https://dashboard.is.not.configured) </td></tr> <tr> <td>Succeeded</td> <td>19 seconds</td><td> [build](https://dashboard.is.not.configured) </td></tr> <tr> <td>Failed</td> <td>33 seconds</td><td> [go-build](https://dashboard.is.not.configured) </td></tr> </table> <hr> <h4>Failure snippet:</h4> task <b>go-build</b> has the status <b>"Failed"</b>: <pre>go: ./patch-generator (/workspace/source/patch-generator) is not a package in module rooted at /workspace/source</pre>
Author
Owner

/retest

/retest
Owner

Pipelines as Code CI/patchwork-pr-gcx5b is running.

Starting Pipelinerun patchwork-pr-gcx5b in namespace hugespaceship-ci

You can monitor the execution using the Not configured PipelineRun viewer or through the command line by
using the tkn CLI with the following command:

tkn pr logs -n hugespaceship-ci patchwork-pr-gcx5b -f

Pipelines as Code CI/patchwork-pr-gcx5b is running. Starting Pipelinerun <b>[patchwork-pr-gcx5b](https://dashboard.is.not.configured)</b> in namespace <b>hugespaceship-ci</b> You can monitor the execution using the [Not configured](https://dashboard.is.not.configured) PipelineRun viewer or through the command line by using the [tkn](https://tekton.dev/docs/cli/#installation) CLI with the following command: <code>tkn pr logs -n hugespaceship-ci patchwork-pr-gcx5b -f</code>
Owner

Pipelines as Code CI/patchwork-pr-gcx5b has failed.


Task Statuses:

StatusDurationName
Succeeded 33 seconds

fetch

Succeeded 18 seconds

build

Failed 7 seconds

go-build


Failure snippet:

task go-build has the status "Failed":
go: ./patch-generator (/workspace/source/patch-generator) is not a package in module rooted at /workspace/source
Pipelines as Code CI/patchwork-pr-gcx5b has <b>failed</b>. <ul> <li><b>Namespace</b>: <a href="https://dashboard.is.not.configured">hugespaceship-ci</a></li> <li><b>PipelineRun:</b> <a href="https://dashboard.is.not.configured">patchwork-pr-gcx5b</a></li> </ul> <hr> <h4>Task Statuses:</h4> <table> <tr><th>Status</th><th>Duration</th><th>Name</th></tr> <tr> <td>Succeeded</td> <td>33 seconds</td><td> [fetch](https://dashboard.is.not.configured) </td></tr> <tr> <td>Succeeded</td> <td>18 seconds</td><td> [build](https://dashboard.is.not.configured) </td></tr> <tr> <td>Failed</td> <td>7 seconds</td><td> [go-build](https://dashboard.is.not.configured) </td></tr> </table> <hr> <h4>Failure snippet:</h4> task <b>go-build</b> has the status <b>"Failed"</b>: <pre>go: ./patch-generator (/workspace/source/patch-generator) is not a package in module rooted at /workspace/source</pre>
Author
Owner

/retest

/retest
Owner

Pipelines as Code CI/patchwork-pr-2p9p6 is running.

Starting Pipelinerun patchwork-pr-2p9p6 in namespace hugespaceship-ci

You can monitor the execution using the Tekton Dashboard PipelineRun viewer or through the command line by
using the tkn CLI with the following command:

tkn pr logs -n hugespaceship-ci patchwork-pr-2p9p6 -f

Pipelines as Code CI/patchwork-pr-2p9p6 is running. Starting Pipelinerun <b>[patchwork-pr-2p9p6](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-2p9p6)</b> in namespace <b>hugespaceship-ci</b> You can monitor the execution using the [Tekton Dashboard](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-2p9p6) PipelineRun viewer or through the command line by using the [tkn](https://tekton.dev/docs/cli/#installation) CLI with the following command: <code>tkn pr logs -n hugespaceship-ci patchwork-pr-2p9p6 -f</code>
Owner

Pipelines as Code CI/patchwork-pr-2p9p6 has failed.


Task Statuses:

StatusDurationName
Succeeded 26 seconds

fetch

Succeeded 19 seconds

build

Failed 7 seconds

go-build


Failure snippet:

task go-build has the status "Failed":
go: ./patch-generator (/workspace/source/patch-generator) is not a package in module rooted at /workspace/source
Pipelines as Code CI/patchwork-pr-2p9p6 has <b>failed</b>. <ul> <li><b>Namespace</b>: <a href="https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns">hugespaceship-ci</a></li> <li><b>PipelineRun:</b> <a href="https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-2p9p6">patchwork-pr-2p9p6</a></li> </ul> <hr> <h4>Task Statuses:</h4> <table> <tr><th>Status</th><th>Duration</th><th>Name</th></tr> <tr> <td>Succeeded</td> <td>26 seconds</td><td> [fetch](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-2p9p6?pipelineTask=fetch) </td></tr> <tr> <td>Succeeded</td> <td>19 seconds</td><td> [build](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-2p9p6?pipelineTask=build) </td></tr> <tr> <td>Failed</td> <td>7 seconds</td><td> [go-build](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-2p9p6?pipelineTask=go-build) </td></tr> </table> <hr> <h4>Failure snippet:</h4> task <b>go-build</b> has the status <b>"Failed"</b>: <pre>go: ./patch-generator (/workspace/source/patch-generator) is not a package in module rooted at /workspace/source</pre>
Owner

Pipelines as Code CI/patchwork-pr-wwsgb is running.

Starting Pipelinerun patchwork-pr-wwsgb in namespace hugespaceship-ci

You can monitor the execution using the Tekton Dashboard PipelineRun viewer or through the command line by
using the tkn CLI with the following command:

tkn pr logs -n hugespaceship-ci patchwork-pr-wwsgb -f

Pipelines as Code CI/patchwork-pr-wwsgb is running. Starting Pipelinerun <b>[patchwork-pr-wwsgb](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-wwsgb)</b> in namespace <b>hugespaceship-ci</b> You can monitor the execution using the [Tekton Dashboard](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-wwsgb) PipelineRun viewer or through the command line by using the [tkn](https://tekton.dev/docs/cli/#installation) CLI with the following command: <code>tkn pr logs -n hugespaceship-ci patchwork-pr-wwsgb -f</code>
Owner

Pipelines as Code CI/patchwork-pr-wwsgb has failed.


Task Statuses:

StatusDurationName
Succeeded 33 seconds

fetch

Succeeded 18 seconds

build

Failed 7 seconds

go-build


Failure snippet:

task go-build has the status "Failed":
go: ./patch-generator (/workspace/source/patch-generator) is not a package in module rooted at /workspace/source
Pipelines as Code CI/patchwork-pr-wwsgb has <b>failed</b>. <ul> <li><b>Namespace</b>: <a href="https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns">hugespaceship-ci</a></li> <li><b>PipelineRun:</b> <a href="https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-wwsgb">patchwork-pr-wwsgb</a></li> </ul> <hr> <h4>Task Statuses:</h4> <table> <tr><th>Status</th><th>Duration</th><th>Name</th></tr> <tr> <td>Succeeded</td> <td>33 seconds</td><td> [fetch](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-wwsgb?pipelineTask=fetch) </td></tr> <tr> <td>Succeeded</td> <td>18 seconds</td><td> [build](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-wwsgb?pipelineTask=build) </td></tr> <tr> <td>Failed</td> <td>7 seconds</td><td> [go-build](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-wwsgb?pipelineTask=go-build) </td></tr> </table> <hr> <h4>Failure snippet:</h4> task <b>go-build</b> has the status <b>"Failed"</b>: <pre>go: ./patch-generator (/workspace/source/patch-generator) is not a package in module rooted at /workspace/source</pre>
if I wasn't stupid I'd be dangerous
All checks were successful
Pipelines as Code CI / patchwork-pr Success
90b15e95d2
Owner

Pipelines as Code CI/patchwork-pr-47tfm is running.

Starting Pipelinerun patchwork-pr-47tfm in namespace hugespaceship-ci

You can monitor the execution using the Tekton Dashboard PipelineRun viewer or through the command line by
using the tkn CLI with the following command:

tkn pr logs -n hugespaceship-ci patchwork-pr-47tfm -f

Pipelines as Code CI/patchwork-pr-47tfm is running. Starting Pipelinerun <b>[patchwork-pr-47tfm](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-47tfm)</b> in namespace <b>hugespaceship-ci</b> You can monitor the execution using the [Tekton Dashboard](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-47tfm) PipelineRun viewer or through the command line by using the [tkn](https://tekton.dev/docs/cli/#installation) CLI with the following command: <code>tkn pr logs -n hugespaceship-ci patchwork-pr-47tfm -f</code>
Owner

Pipelines as Code CI/patchwork-pr-47tfm has successfully validated your commit.


Task Statuses:

StatusDurationName
Succeeded 30 seconds

fetch

Succeeded 19 seconds

build

Succeeded 16 seconds

go-build

Succeeded 6 seconds

patch-generate

Succeeded 9 seconds

upload-artifacts

Succeeded 6 seconds

cleanup

Pipelines as Code CI/patchwork-pr-47tfm has <b>successfully</b> validated your commit. <ul> <li><b>Namespace</b>: <a href="https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns">hugespaceship-ci</a></li> <li><b>PipelineRun:</b> <a href="https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-47tfm">patchwork-pr-47tfm</a></li> </ul> <hr> <h4>Task Statuses:</h4> <table> <tr><th>Status</th><th>Duration</th><th>Name</th></tr> <tr> <td>Succeeded</td> <td>30 seconds</td><td> [fetch](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-47tfm?pipelineTask=fetch) </td></tr> <tr> <td>Succeeded</td> <td>19 seconds</td><td> [build](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-47tfm?pipelineTask=build) </td></tr> <tr> <td>Succeeded</td> <td>16 seconds</td><td> [go-build](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-47tfm?pipelineTask=go-build) </td></tr> <tr> <td>Succeeded</td> <td>6 seconds</td><td> [patch-generate](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-47tfm?pipelineTask=patch-generate) </td></tr> <tr> <td>Succeeded</td> <td>9 seconds</td><td> [upload-artifacts](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-47tfm?pipelineTask=upload-artifacts) </td></tr> <tr> <td>Succeeded</td> <td>6 seconds</td><td> [cleanup](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-47tfm?pipelineTask=cleanup) </td></tr> </table>
zaprit added this to the 2.0 milestone 2026-08-24 22:26:21 +00:00
zaprit added this to the 2.0 project 2026-08-24 22:26:23 +00:00
Merge branch 'main' into chore/separate-patch-generator-code
All checks were successful
Pipelines as Code CI / patchwork-pr Success
58e975cc03
Owner

Pipelines as Code CI/patchwork-pr-zmpk2 is running.

Starting Pipelinerun patchwork-pr-zmpk2 in namespace hugespaceship-ci

You can monitor the execution using the Tekton Dashboard PipelineRun viewer or through the command line by
using the tkn CLI with the following command:

tkn pr logs -n hugespaceship-ci patchwork-pr-zmpk2 -f

Pipelines as Code CI/patchwork-pr-zmpk2 is running. Starting Pipelinerun <b>[patchwork-pr-zmpk2](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-zmpk2)</b> in namespace <b>hugespaceship-ci</b> You can monitor the execution using the [Tekton Dashboard](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-zmpk2) PipelineRun viewer or through the command line by using the [tkn](https://tekton.dev/docs/cli/#installation) CLI with the following command: <code>tkn pr logs -n hugespaceship-ci patchwork-pr-zmpk2 -f</code>
Owner

Pipelines as Code CI/patchwork-pr-zmpk2 has successfully validated your commit.


Task Statuses:

StatusDurationName
Succeeded 32 seconds

fetch

Succeeded 24 seconds

build

Succeeded 35 seconds

go-build

Succeeded 6 seconds

patch-generate

Succeeded 9 seconds

upload-artifacts

Succeeded 7 seconds

cleanup

Pipelines as Code CI/patchwork-pr-zmpk2 has <b>successfully</b> validated your commit. <ul> <li><b>Namespace</b>: <a href="https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns">hugespaceship-ci</a></li> <li><b>PipelineRun:</b> <a href="https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-zmpk2">patchwork-pr-zmpk2</a></li> </ul> <hr> <h4>Task Statuses:</h4> <table> <tr><th>Status</th><th>Duration</th><th>Name</th></tr> <tr> <td>Succeeded</td> <td>32 seconds</td><td> [fetch](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-zmpk2?pipelineTask=fetch) </td></tr> <tr> <td>Succeeded</td> <td>24 seconds</td><td> [build](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-zmpk2?pipelineTask=build) </td></tr> <tr> <td>Succeeded</td> <td>35 seconds</td><td> [go-build](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-zmpk2?pipelineTask=go-build) </td></tr> <tr> <td>Succeeded</td> <td>6 seconds</td><td> [patch-generate](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-zmpk2?pipelineTask=patch-generate) </td></tr> <tr> <td>Succeeded</td> <td>9 seconds</td><td> [upload-artifacts](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-zmpk2?pipelineTask=upload-artifacts) </td></tr> <tr> <td>Succeeded</td> <td>7 seconds</td><td> [cleanup](https://tekton-dashboard.valtek.uk/#/namespaces/hugespaceship-ci/pipelineruns/patchwork-pr-zmpk2?pipelineTask=cleanup) </td></tr> </table>
zaprit merged commit 3fd3c80f85 into main 2026-08-24 22:39:50 +00:00
zaprit deleted branch chore/separate-patch-generator-code 2026-08-24 22:39:50 +00:00
Sign in to join this conversation.
No description provided.