tektoncd / plumbing

This repo holds configuration for infrastructure used across the tektoncd org 🏗️
Apache License 2.0
60 stars 109 forks source link

`pull-tekton-pipeline-go-coverage-df` is flaky #1908

Open vdemeester opened 6 months ago

vdemeester commented 6 months ago

Expected Behavior

It works, always.

Actual Behavior

Sometimes, especially when creating a PR, it can fail with the following:

 [clone-coverage-upload : clone] {"level":"error","ts":1711581650.6748326,"caller":"git/git.go:54","msg":"Error running git [fetch --recurse-submodules=yes origin --update-head-ok --force refs/heads/main:refs/heads/main refs/pull/7808/head:refs/batch/refs/pull/7808/head]: exit status 128\nremote: Repository not found.\nfatal: repository 'https://github.com/$(tasks.split-full-repo-name.results.repoOwner)/$(tasks.split-full-repo-name.results.repoName).git/' not found\n","stacktrace":"github.com/tektoncd/pipeline/pkg/git.run\n\tgithub.com/tektoncd/pipeline/pkg/git/git.go:54\ngithub.com/tektoncd/pipeline/pkg/git.Fetch\n\tgithub.com/tektoncd/pipeline/pkg/git/git.go:145\nmain.main\n\tgithub.com/tektoncd/pipeline/cmd/git-init/main.go:52\nruntime.main\n\truntime/proc.go:204"}
[clone-coverage-upload : clone] {"level":"fatal","ts":1711581650.6749718,"caller":"git-init/main.go:53","msg":"Error fetching git repository: failed to fetch [refs/heads/main:refs/heads/main refs/pull/7808/head:refs/batch/refs/pull/7808/head]: exit status 128","stacktrace":"main.main\n\tgithub.com/tektoncd/pipeline/cmd/git-init/main.go:53\nruntime.main\n\truntime/proc.go:204"} 

It doesn't happen consistently so it is probably a race or something in how results are handled. As TaskRun seem

Steps to Reproduce the Problem

  1. Open a PR on tektoncd/pipeline
  2. See if it fails or not

See https://github.com/tektoncd/pipeline/pull/7808#issuecomment-2025396683

This might be an issue in tektoncd/pipeline itself, but wanted to track something here as well.

Additional Info

vdemeester commented 3 months ago

There is also some report issue (https://github.com/tektoncd/pipeline/pull/8047#issuecomment-2175190268)