fix(KFLUXSPRT-8173): use taskGitRevision SHA for pipeline metadata#2314
fix(KFLUXSPRT-8173): use taskGitRevision SHA for pipeline metadata#2314seanconroy2021 wants to merge 1 commit into
Conversation
The operator already resolves the pipeline ref revision to a SHA via ResolveBranchToSHA and passes it as taskGitRevision. Use that directly instead of calling the GitHub API. Fail back to curl-with-retry if taskGitRevision is not a SHA. The curl will not fail the task since it is only metadata. Signed-off-by: Sean Conroy <sconroy@redhat.com>
|
/ok-to-test |
PR Reviewer Guide 🔍Warning
Here are some key observations to aid the review process:
|
Code Review by Qodo
1. set -eux missing pipefail
|
|
/retest |
Describe your changes
The operator already resolves the pipeline ref revision to a SHA via ResolveBranchToSHA and passes it as taskGitRevision. Use that directly instead of calling the GitHub API. Fail back to curl-with-retry if taskGitRevision is not a SHA. The curl will not fail the task since it is only metadata.
Relevant Jira
https://redhat.atlassian.net/browse/KFLUXSPRT-8173
https://redhat-internal.slack.com/archives/C04PZ7H0VA8/p1781612224952519?thread_ts=1781610891.776909&cid=C04PZ7H0VA8
Checklist before requesting a review
do not mergelabel if there's a dependency PRrelease-service-maintainershandle if you are unsure who to tagSigned-off-by: My name <email>.github/scripts/readme_generator.shand verified the results using.github/scripts/check_readme.shAssisted-By: Cursor