tektoncd / tektoncd/cli

make test is failing on main branch on TestDeterministicLayers test

Open Beginner friendly
#3,266 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
Go
Stars
461
Forks
277
Avg merge
16h 48m
Merged PRs (30d)
95

Description

Versions and Operating System

Compling version from main (c0d3c8b8fb15cc8790829b4b87fc53b727705cb9) i am getting a failure wile running make. which runs the unittest. The error is
as below:

b.com/tektoncd/cli/pkg/pipelinerun/sort github.com/tektoncd/cli/pkg/plugins github.com/tektoncd/cli/pkg/pods github.com/tektoncd/cli/pkg/pods/fake github.com/tektoncd/cli/pkg/pods/stream github.com/tektoncd/cli/pkg/suggestion github.com/tektoncd/cli/pkg/task github.com/tektoncd/cli/pkg/taskrun github.com/tektoncd/cli/pkg/taskrun/sort github.com/tektoncd/cli/pkg/test github.com/tektoncd/cli/pkg/test/builder github.com/tektoncd/cli/pkg/test/dynamic github.com/tektoncd/cli/pkg/test/dynamic/clientset github.com/tektoncd/cli/pkg/triggerbinding github.com/tektoncd/cli/pkg/triggertemplate github.com/tektoncd/cli/pkg/trustedresources github.com/tektoncd/cli/pkg/version github.com/tektoncd/cli/pkg/workspaces github.com/tektoncd/cli/test github.com/tektoncd/cli/test/builder github.com/tektoncd/cli/test/cli github.com/tektoncd/cli/test/e2e github.com/tektoncd/cli/test/framework github.com/tektoncd/cli/test/helper github.com/tektoncd/cli/test/prompt github.com/tektoncd/cli/test/wait
?    github.com/tektoncd/cli/cmd/docs [no test files]
?    github.com/tektoncd/cli/cmd/tkn [no test files]
ok   github.com/tektoncd/cli/pkg 0.010s
?    github.com/tektoncd/cli/pkg/actions [no test files]
--- FAIL: TestDeterministicLayers (0.00s)
    builder_test.go:278: unexpected digest for layer 0: sha256:05ea10ce5b8dbbd638d40b7e09008f1553e37d7146fa7440443f41b54565990c, expecting sha256:561b99bf08733028cbc799caf7f8b74e1f633d3acb7c6d25d880bae4b32cd0b5
    builder_test.go:278: unexpected digest for layer 1: sha256:8163f84b890c6d57307a766098bb24eb3ea93328408cd05a59176d21c5e03f98, expecting sha256:bd941a3b5d1618820ba5283fd0dd4138379fef0e927864d35629cfdc1bdd2f3f
    builder_test.go:278: unexpected digest for layer 2: sha256:f3b8e632fdd3769d9f1c79fe17ddf4bece7f34a605276364a22fcee1d840a9a3, expecting sha256:751deb7e696b6a4f30a2e23f25f97a886cbff22fe832a0c7ed956598ec489f58
--- FAIL: TestDeterministicManifest (0.00s)
    builder_test.go:299: unexpected image digest: sha256:6f74ecf3bf60218d26087e1f2f1aca3f7501cd89d43d88c6de1b20738b89b842, expecting sha256:7a4f604555b84cdb06cbfebda3fb599cd7485ef2c9c9375ab589f192a3addb4c

This run on OSX for what is worth. i haven't tried on linux yet. I am not sure
if this is a problem with the test or with my environment.

Additional Info

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running make and the TestDeterministicLayers and TestDeterministicManifest tests reported in builder_test.go:278-299 on the referenced main commit. Compare the observed digests with the expected values and check whether the failure reproduces outside macOS. Done means the deterministic tests pass consistently and the environment-specific cause is documented or corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.