-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat(ISV-5128): add new Tekton task to update component sboms #656
Conversation
Hi @wcheang. Thanks for your PR. I'm waiting for a konflux-ci member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
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.
"wip" is not a valid commit title prefix. This should probably be "feat". If you want to say that it's not ready for review yet, you can change the PR to Draft. (If a PR is created as Draft from the start, the reviewers won't be added until it's changed to Ready - maybe for next time.)
@mmalina the CONTRIBUTING.md says Tekton task tests are not required, but the check is failing due to missing |
This recently came up in a PR: #656 We definitely do require tests for all new tasks. For existing tasks, we mostly do as well, but there are still three tasks without tests: - base64-encode-checksum - create-internal-request - prepare-validation Signed-off-by: Martin Malina <mmalina@redhat.com>
The doc is not correct. Fix here: #664 To explain, when we came up with the mechanism to write task tests, none of the tasks had tests, but there would be a tests directory and a sample run.yaml which was a taskrun definition using the task. So the reason for that sentence was that if you changed an existing task, you wouldn't be required to write tests for it. I understand that in your case the task will not do much besides running the script, but it's still nice have some basic test to ensure there is no error in the task definition or something like that. I would recommend using a mock for the python script and just check that it was called with the parameters it was expected to be called with. |
69b389f
to
642b662
Compare
This recently came up in a PR: konflux-ci#656 We definitely do require tests for all new tasks. For existing tasks, we mostly do as well, but there are still three tasks without tests: - base64-encode-checksum - create-internal-request - prepare-validation Signed-off-by: Martin Malina <mmalina@redhat.com>
This recently came up in a PR: #656 We definitely do require tests for all new tasks. For existing tasks, we mostly do as well, but there are still three tasks without tests: - base64-encode-checksum - create-internal-request - prepare-validation Signed-off-by: Martin Malina <mmalina@redhat.com>
24058f6
to
121ab41
Compare
The symlink appears to be set up with the wrong path in my previous change in the utils repos. PR to fix it here: konflux-ci/release-service-utils#295 |
335ea29
to
35ac838
Compare
@mmalina Could you please help me figure out why the Tekton task tests are running into "permission denied" errors on all the scripts ( |
The script doesn't have execute permissions:
That's something that's typically not shown in Github UI. It has the permissions it had when it was added. You can |
b1af50d
to
64dfefe
Compare
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.
Two small nit picks left then I am good to approve
/ok-to-test |
@wcheang can you squash this down to one commit and sign the commit? |
Signed-off-by: Wai Cheang <wcheang@redhat.com>
/ok-to-test |
@wcheang would you like this merged as soon as it passes e2e? I can turn on auto merge if so. If another PR is merged before this one passes though it will still have to be rebased |
Yes please turn on auto-merge |
No description provided.