tektoncd/pipeline

Add integration tests for /tekton/debug/scripts

Aberta

#4.426 aberto em 14 de dez. de 2021

 (5 comentários) (0 reação) (0 responsável)Go (1.943 forks)auto 404
area/testinghelp wanted

Métricas do repositório

Stars
 (9.013 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

/area testing

AFAIK the integration tests work by checking if TaskRuns/PipelineRuns have reached a desired state, based on which the tests are marked as success or failure.

To test scripts in /tekton/debug/scripts dir in the TaskRun Pod, first we would need the TaskRun Pod running with the breakpoint(s) in place. Then, we need to run exec commands allowing us to run scripts in the container(s) with breakpoint. Thus helping us assess the state/logs of the TaskRun after, based on the commands we have run.

How can this be achieved ? What are the possible problems we could face while writing these tests ?

Guia do colaborador