Closed khrm closed 1 year ago
@avinal @sayan-biswas @enarha Let's get this merge asap.
/lgtm
Tested! Resolves the issue, but I am noticing a new problem that was not present before.
$ ./tkn-results list default --filter="summary.status=='SUCCESS'"
ListResults: rpc error: code = InvalidArgument desc = error compiling CEL filters: ERROR: <input>:1:15: found no matching overload for '_==_' applied to '(int, string)'
| summary.status=='SUCCESS'
| ..............^
Error: rpc error: code = InvalidArgument desc = error compiling CEL filters: ERROR: <input>:1:15: found no matching overload for '_==_' applied to '(int, string)'
| summary.status=='SUCCESS'
| ..............^
I am uncertain if this is related, if someone else is also getting the same error, this will need to be fixed as well.
@avinal
Can you test with these commits: https://github.com/tektoncd/results/commit/3643dcc5356f467d447c2cc6c567bc9f4569c98a https://github.com/tektoncd/results/commit/89ee88eb8fdc9e767af3bfab0367ff175ef6b5c9
Is that error present in both of the revision?
Yes, it is present in both of them.
Ah sorry I was just checking the tkn-results, I need to check by re deploying the whole project. Let me do that.
Update: no luck similar results.
Is it happening with only this filter or every filter? @avinal
I created another issue regarding this. https://github.com/tektoncd/results/issues/569 This pr doesn't cause this issue and it should be tackled separately.
Only happening with this particular filter expression. All other I tested are working fine. It seems somehow the summary.status
field is interpreted as int.
We are good to go with this PR then. /approve
/approve on behalf of @avinal
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: avinal, enarha
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Earlier, we weren't calling getconfig in the beginning. After we added port-forward, we added the GetConfig call earlier. This fixed the global flag and when we merge the global flag fix, it broke the local flag. Now, refactored the setting flag/config to singleton in the init to avoid undefined scenarios.
Fixes #567
Changes
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