tektoncd/pipeline

Add integration tests for /tekton/debug/scripts

Open

#4,426 opened on Dec 14, 2021

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Go (1,943 forks)auto 404
area/testinghelp wanted

Repository metrics

Stars
 (9,013 stars)
PR merge metrics
 (PR metrics pending)

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 ?

Contributor guide