pipeline: Nightly unit test failure due to race condition when initializing config stores

Expected Behavior

Nightly build unit test passes

Actual Behavior

Nightly build unit test failed:

TaskRun is: pipeline-release-nightly-gkd24-unit-tests-l2pdb

Failure:

  --- FAIL: TestReconcile_ExplicitDefaultSA/success (0.08s)

Additional Info

  • Tekton Pipeline version: v0.13.2

  • I tried to reproduce this locally and failed:

 go test -race -cover -count=10 -run="TestReconcile_ExplicitDefaultSA" ./pkg/reconciler/taskrun

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (5 by maintainers)

Commits related to this issue

Most upvoted comments

This test has failed during nightlies on two of my build cop rotations in a row. Iโ€™ll assign this to myself and see if I can figure out whatโ€™s triggering the random behaviour.

I think the point was that this is non-deterministic - letโ€™s leave it open until we feel we understand why the race occurred.

Nothing unfortunately:

[unit-test] --- FAIL: TestReconcile_ExplicitDefaultSA (0.14s)
[unit-test]     --- FAIL: TestReconcile_ExplicitDefaultSA/success (0.08s)
[unit-test] FAIL
[unit-test] FAIL        github.com/tektoncd/pipeline/pkg/reconciler/taskrun     22.590s
[unit-test] FAIL

The command I used is (you have to be connected to the dogfooding cluster) :

tkn tr logs pipeline-release-nightly-gkd24-unit-tests-l2pdb