-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process Tekton results instead of labels and annotations #231
Process Tekton results instead of labels and annotations #231
Conversation
CLOUDBLD-8889 OSBS pipelines will provide the most important build results as Tekton results. Fetch repositories and koji_build_id from Tekton results rather than labels and annotations. Previously, koji_build_id was handled as a string (it was taken directly from OpenShift labels without converting to integer). In the results returned by the get_build_results method, koji-build-id is an integer. Convert it to string explicitly to preserve backward compatibility. Signed-off-by: Adam Cmiel <acmiel@redhat.com>
6d94798
to
2cab57a
Compare
PTAL, depends on containerbuildsystem/osbs-client#1076 but otherwise should be done-ish This will need a docs update, will work on that soon We will also want to follow up on removing the task_annotations_whitelist from atomic-reactor config, I'll either do it now or file a separate story for it |
task_annotations = { | ||
# TODO: previously, remote_sources was double JSON-encoded, do we need to keep that? | ||
# prev: {"remote_sources": "[{\\"name\\": null, \\"url\\": \\"some url\\"}]"} | ||
# curr: {"remote_sources": [{"name": null, "url": "some url"}]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How much do we need to worry about keeping build_annotations.json exactly the same as before? I'm thinking not that much, since when we last switched from remote_source_url
to remote_sources
, nobody seemed to notice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the other hand, it's easier to preserve the format than to answer this question. I'll change this to match the previous format
2cab57a
to
dcbecf1
Compare
CLOUDBLD-8889 Due to unstable behavior of updating annotations on Tekton PipelineRun objects, using build annotations to generate build_annotations.json is not reliable. Instead, generate build_annotations.json from Tekton results. Drop the concept of an annotations whitelist, simply hardcode the list of results to be uploaded. For backward compatibility, keep the build_annotations.json name even though the file now contains Tekton results rather than annotations. The file used to contain raw values of annotations - usually JSON-encoded strings. Encode result values explicitly to preserve the same format. Signed-off-by: Adam Cmiel <acmiel@redhat.com>
dcbecf1
to
8d65e41
Compare
docs pr: containerbuildsystem/osbs-docs#207 |
Packit is stuck on Fedora 36, merging anyway |
Release notes:
|
More details in individual commits
Maintainers will complete the following section