Closed ramessesii2 closed 7 months ago
Hi @ramessesii2. Thanks for your PR.
I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
@sayan-biswas @avinal fyi
@ramessesii2 This is the one we figured out yesterday, right?
This is the one we figured out yesterday, right?
Hey @sayan-biswas , yes!
This is the one we figured out yesterday, right?
Hey @sayan-biswas , yes!
Do you see this error after adding the nil
check to Summary
?
Do you see this error after adding the nil check to Summary?
Not so far! Do you suspect it's not the root cause?
Shouldn't you also add the same check here https://github.com/tektoncd/results/pull/702/files#diff-29c3f7e1287f6e99bc811ea3b6b08d62a6e8b4a43579530c50aed0f2ecd7de70R133 ?
Shouldn't you also add the same check here https://github.com/tektoncd/results/pull/702/files#diff-29c3f7e1287f6e99bc811ea3b6b08d62a6e8b4a43579530c50aed0f2ecd7de70R133 ?
Hey @enarha, the reason I didn't add the check for curr.Annotaions is because even if that is nil map, reading from a nil map is safe and it behaves as if the map is empty - if curr.Annotations is nil, the length check will return 0.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: avinal
The full list of commands accepted by this bot can be found here.
The pull request process is described here
/cherry-pick @release-v0.9.x
/cherry-pick release-v0.9.x
@khrm: cannot checkout @release-v0.9.x
: error checking out @release-v0.9.x: exit status 1. output: error: pathspec '@release-v0.9.x' did not match any file(s) known to git
@khrm: new pull request created: #733
Changes
There were occurrences of runtime panic due to a nil pointer dereference prior to the code modification suggested in this PR. It specifically occurs because the code does not currently handle cases where curr.Summary could be nil, leading to a crash if it tries to access the Annotations field on a nil object. Here's a panic instance:
/kind bug
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you review them:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes