-
Bug
-
Resolution: Done
-
Major
-
Pipelines 1.19.0
Description of problem:
Using opc results list commands like taskrun list or pipelineruns list -A results in cryptic or non-informative error messages:
- For an existing taskrun name:
opc results taskrun list buildah-run-clone-git-repo Error: client error: 404 page not found (code: 404)
This implies the resource is missing, but does not clarify whether the config is invalid, the name is not found, or something else is wrong.
- For pipelineruns with -A:
opc results pipelineruns list -A Error: client error: {"code":3, "message":"name must match (^[a-z0-9_-]{1,63})/results/([a-z0-9_-]{1,63}$)"} (code: 400)
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
- Run opc results config for a namespace with Tekton results
- Try to list a known TaskRun by name:
opc results taskrun list buildah-run-clone-git-repo - Try to list all PipelineRuns across namespaces:
opc results pipelineruns list -A
Actual results:
**
- 404 page not found for valid TaskRun name
- 400 error with confusing name must match ... regex from underlying API
Expected results:
**
- Clear error messages explaining:
-
- Whether the config is invalid or missing
-
- Whether the resource was not found
-
- The correct format expected (namespace/resource-name)
- Friendly CLI guidance instead of raw backend responses
Reproducibility (Always/Intermittent/Only Once):
Acceptance criteria:
Definition of Done:
Build Details:
Additional info (Such as Logs, Screenshots, etc):