tektoncd/pipeline

Add integration tests for /tekton/debug/scripts

オープン

#4,426 opened on 2021/12/14

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)Go (1,943 件のフォーク)auto 404
area/testinghelp wanted

Repository metrics

Stars
 (9,013 個のスター)
PR merge metrics
 (PR metrics pending)

説明

/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 ?

コントリビューターガイド