Skip to content

Conversation

l-qing
Copy link
Member

@l-qing l-qing commented Jan 14, 2025

fix #8324
Continuing development based on this PR: #8327

Changes

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
  • Has Tests included if any functionality added or changed
  • pre-commit Passed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

fix: avoid fan out matrix task failed due to result ref

/kind bug

1. Reproducible steps

$ kubectl version

Client Version: v1.32.0
Kustomize Version: v5.5.0
Server Version: v1.28.8

$ tkn version

Client version: 0.39.0
Pipeline version: v0.66.0
cat <<'EOF' | kubectl replace -f -
apiVersion: tekton.dev/v1
kind: Task
metadata:
  name: array-emitter
spec:
  results:
  - name: array
    type: array
  steps:
    - name: echo
      image: mirror.gcr.io/alpine
      script: |
        echo -n "[\"linux\",\"max\",\"windows\"]" > $(results.array.path)

---
apiVersion: tekton.dev/v1
kind: Task
metadata:
  name: platform-browsers
spec:
  params:
    - name: platform
  results:
  - name: str
    type: string
  steps:
    - name: echo
      image: mirror.gcr.io/alpine
      script: |
        echo -n "$(params.platform)" | tee $(results.str.path)

---
apiVersion: tekton.dev/v1
kind: Task
metadata:
  name: printer
spec:
  params:
    - name: platform
      default: "default-platform"
    - name: platforms
      default: []
  steps:
    - name: echo
      image: mirror.gcr.io/alpine
      args:
        - "$(params.platforms)"
      script: |
        if [ -z "$(params.platform)" ]; then
          echo "platform: $(params.platform)"
        fi
        if [ $# -gt 0 ]; then
          echo "platforms: $@"
        fi

---
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
  name: matrixed-pr
spec:
  taskRunTemplate:
    serviceAccountName: "default"
  pipelineSpec:
    tasks:

    - name: array-emitter
      taskRef:
        name: array-emitter

    - name: platforms
      params:
        - name: test
          value: test
      matrix:
        params:
          - name: platform
            value: $(tasks.array-emitter.results.array[*])
      taskRef:
        name: platform-browsers

    - name: printer-matrix
      taskRef:
        name: printer
      matrix:
        params:
          - name: platform
            value: $(tasks.platforms.results.str[*])

    - name: printer-all-platforms
      taskRef:
        name: printer
      params:
        - name: platforms
          value: $(tasks.platforms.results.str[*])
EOF

2. Error message

invalid result reference in pipeline task "printer-matrix": unable to validate result referencing pipeline task "platforms": task spec not found

apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
  creationTimestamp: "2025-01-14T07:40:10Z"
  generation: 1
  name: matrixed-pr
  namespace: default
  resourceVersion: "26861"
  uid: feba93ac-759d-4817-8512-700eb8eef059
spec:
  pipelineSpec:
    tasks:
    - name: array-emitter
      taskRef:
        kind: Task
        name: array-emitter
    - matrix:
        params:
        - name: platform
          value: $(tasks.array-emitter.results.array[*])
      name: platforms
      params:
      - name: test
        value: test
      taskRef:
        kind: Task
        name: platform-browsers
    - matrix:
        params:
        - name: platform
          value: $(tasks.platforms.results.str[*])
      name: printer-matrix
      taskRef:
        kind: Task
        name: printer
    - name: printer-all-platforms
      params:
      - name: platforms
        value: $(tasks.platforms.results.str[*])
      taskRef:
        kind: Task
        name: printer
  taskRunTemplate:
    serviceAccountName: default
  timeouts:
    pipeline: 1h0m0s
status:
  completionTime: "2025-01-14T07:40:12Z"
  conditions:
  - lastTransitionTime: "2025-01-14T07:40:12Z"
    message: 'invalid result reference in pipeline task "printer-matrix": unable to
      validate result referencing pipeline task "platforms": task spec not found'
    reason: InvalidTaskResultReference
    status: "False"
    type: Succeeded
  pipelineSpec:
    tasks:
    - name: array-emitter
      taskRef:
        kind: Task
        name: array-emitter
    - matrix:
        params:
        - name: platform
          value: $(tasks.array-emitter.results.array[*])
      name: platforms
      params:
      - name: test
        value: test
      taskRef:
        kind: Task
        name: platform-browsers
    - matrix:
        params:
        - name: platform
          value: $(tasks.platforms.results.str[*])
      name: printer-matrix
      taskRef:
        kind: Task
        name: printer
    - name: printer-all-platforms
      params:
      - name: platforms
        value: $(tasks.platforms.results.str[*])
      taskRef:
        kind: Task
        name: printer
  provenance:
    featureFlags:
      AwaitSidecarReadiness: true
      Coschedule: workspaces
      DisableAffinityAssistant: false
      DisableCredsInit: false
      DisableInlineSpec: ""
      EnableAPIFields: beta
      EnableArtifacts: false
      EnableCELInWhenExpression: false
      EnableConciseResolverSyntax: false
      EnableKeepPodOnCancel: false
      EnableKubernetesSidecar: false
      EnableParamEnum: false
      EnableProvenanceInStatus: true
      EnableStepActions: false
      EnforceNonfalsifiability: none
      MaxResultSize: 4096
      RequireGitSSHSecretKnownHosts: false
      ResultExtractionMethod: termination-message
      RunningInEnvWithInjectedSidecars: true
      SendCloudEventsForRuns: false
      SetSecurityContext: false
      VerificationNoMatchPolicy: ignore
  startTime: "2025-01-14T07:40:12Z"

3. Analysis

a. validateResultRef: unable to validate result referencing pipeline task

if ptMap[ref.PipelineTask].ResolvedTask == nil || ptMap[ref.PipelineTask].ResolvedTask.TaskSpec == nil {

if ptMap[ref.PipelineTask].ResolvedTask == nil || ptMap[ref.PipelineTask].ResolvedTask.TaskSpec == nil {
return fmt.Errorf("unable to validate result referencing pipeline task %q: task spec not found", ref.PipelineTask)
}

b. ValidatePipelineTaskResults: invalid result reference in pipeline task

func ValidatePipelineTaskResults(state PipelineRunState) error {
ptMap := state.ToMap()
for _, rpt := range state {
for _, ref := range v1.PipelineTaskResultRefs(rpt.PipelineTask) {
if err := validateResultRef(ref, ptMap); err != nil {
return pipelineErrors.WrapUserError(fmt.Errorf("invalid result reference in pipeline task %q: %w", rpt.PipelineTask.Name, err))

c. PipelineRun-Reconcile: call ValidatePipelineTaskResults

if pipelineRunFacts.State.IsBeforeFirstTaskRun() {
if err := resources.ValidatePipelineTaskResults(pipelineRunFacts.State); err != nil {
logger.Errorf("Failed to resolve task result reference for %q with error %v", pr.Name, err)
pr.Status.MarkFailed(v1.PipelineRunReasonInvalidTaskResultReference.String(), err.Error())
return controller.NewPermanentError(err)
}

d. pipelineRunFacts.State: come from resolvePipelineState

// Second iteration
pipelineRunState, err = c.resolvePipelineState(ctx, notStartedTasks, pipelineMeta.ObjectMeta, pr, pipelineRunState)
switch {
case errors.Is(err, remote.ErrRequestInProgress):
message := fmt.Sprintf("PipelineRun %s/%s awaiting remote resource", pr.Namespace, pr.Name)
pr.Status.MarkRunning(v1.TaskRunReasonResolvingTaskRef, message)
return nil
case err != nil:
return err
default:
}
// Build PipelineRunFacts with a list of resolved pipeline tasks,
// dag tasks graph and final tasks graph
pipelineRunFacts := &resources.PipelineRunFacts{
State: pipelineRunState,

e. resolvePipelineState: resolvedTask - ResolvePipelineTask

resolvedTask, err := resources.ResolvePipelineTask(ctx,
*pr,
fn,
func(name string) (*v1.TaskRun, error) {
return c.taskRunLister.TaskRuns(pr.Namespace).Get(name)
},
getCustomRunFunc,
task,
pst,
)

f. ResolvePipelineTask: call CountCombinations

numCombinations := 1
// We want to resolve all of the result references and ignore any errors at this point since there could be
// instances where result references are missing here, but will be later skipped and resolved in
// skipBecauseResultReferencesAreMissing. The final validation is handled in CheckMissingResultReferences.
resolvedResultRefs, _, _ := ResolveResultRefs(pst, PipelineRunState{&rpt})
if err := validateArrayResultsIndex(resolvedResultRefs); err != nil {
return nil, err
}
ApplyTaskResults(PipelineRunState{&rpt}, resolvedResultRefs)
if rpt.PipelineTask.IsMatrixed() {
numCombinations = rpt.PipelineTask.Matrix.CountCombinations()
}
if rpt.IsCustomTask() {
rpt.CustomRunNames = getNamesOfCustomRuns(pipelineRun.Status.ChildReferences, pipelineTask.Name, pipelineRun.Name, numCombinations)
for _, runName := range rpt.CustomRunNames {
run, err := getRun(runName)
if err != nil && !kerrors.IsNotFound(err) {
return nil, fmt.Errorf("error retrieving CustomRun %s: %w", runName, err)
}
if run != nil {
rpt.CustomRuns = append(rpt.CustomRuns, run)
}
}
} else {
rpt.TaskRunNames = GetNamesOfTaskRuns(pipelineRun.Status.ChildReferences, pipelineTask.Name, pipelineRun.Name, numCombinations)
for _, taskRunName := range rpt.TaskRunNames {
if err := rpt.setTaskRunsAndResolvedTask(ctx, taskRunName, getTask, getTaskRun, pipelineTask); err != nil {

h1. CountCombinations: Calculate the number of TaskRuns

// CountCombinations returns the count of Combinations of Parameters generated from the Matrix in PipelineTask.
func (m *Matrix) CountCombinations() int {
// Iterate over Matrix Parameters and compute count of all generated Combinations
count := m.countGeneratedCombinationsFromParams()
// Add any additional Combinations generated from Matrix Include Parameters
count += m.countNewCombinationsFromInclude()
return count
}
// countGeneratedCombinationsFromParams returns the count of Combinations of Parameters generated from the Matrix
// Parameters
func (m *Matrix) countGeneratedCombinationsFromParams() int {
if !m.HasParams() {
return 0
}
count := 1
for _, param := range m.Params {
count *= len(param.Value.ArrayVal)
}
return count
}

h2. Error: The calculated count is 0.

func (m *Matrix) countGeneratedCombinationsFromParams() int {
if !m.HasParams() {
return 0
}
count := 1
for _, param := range m.Params {
count *= len(param.Value.ArrayVal)

Because the param.Value.StringVale is $(tasks.platforms.results.str[*]) and param.Value.ArrayVal is empty.

j1. ResolvePipelineTask: call GetNamesOfTaskRuns

rpt.TaskRunNames = GetNamesOfTaskRuns(pipelineRun.Status.ChildReferences, pipelineTask.Name, pipelineRun.Name, numCombinations)
for _, taskRunName := range rpt.TaskRunNames {
if err := rpt.setTaskRunsAndResolvedTask(ctx, taskRunName, getTask, getTaskRun, pipelineTask); err != nil {

j2. GetNamesOfTaskRuns: call getNewRunNames the numberOfRuns is 0, the result taskRunNames is empty

func getNewRunNames(ptName, prName string, numberOfRuns int) []string {
var taskRunNames []string
// If it is a singular TaskRun/CustomRun, we only append the ptName
if numberOfRuns == 1 {
taskRunName := kmeta.ChildName(prName, "-"+ptName)
return append(taskRunNames, taskRunName)
}
// For a matrix we append i to then end of the fanned out TaskRuns "matrixed-pr-taskrun-0"
for i := range numberOfRuns {
taskRunName := kmeta.ChildName(prName, fmt.Sprintf("-%s-%d", ptName, i))
// check if the taskRun name ends with a matrix instance count
if !strings.HasSuffix(taskRunName, fmt.Sprintf("-%d", i)) {
taskRunName = kmeta.ChildName(prName, "-"+ptName)
// kmeta.ChildName limits the size of a name to max of 63 characters based on k8s guidelines
// truncate the name such that "-<matrix-id>" can be appended to the taskRun name
longest := 63 - len(fmt.Sprintf("-%d", numberOfRuns))
taskRunName = taskRunName[0:longest]
taskRunName = fmt.Sprintf("%s-%d", taskRunName, i)
}
taskRunNames = append(taskRunNames, taskRunName)
}
return taskRunNames
}

k. ResolvePipelineTask: setTaskRunsAndResolvedTask has not been called.

rpt.TaskRunNames = GetNamesOfTaskRuns(pipelineRun.Status.ChildReferences, pipelineTask.Name, pipelineRun.Name, numCombinations)
for _, taskRunName := range rpt.TaskRunNames {
if err := rpt.setTaskRunsAndResolvedTask(ctx, taskRunName, getTask, getTaskRun, pipelineTask); err != nil {
return nil, err
}

l. setTaskRunsAndResolvedTask: ResolvedTask has not been set.

func (t *ResolvedPipelineTask) setTaskRunsAndResolvedTask(
ctx context.Context,
taskRunName string,
getTask resources.GetTask,
getTaskRun resources.GetTaskRun,
pipelineTask v1.PipelineTask,
) error {
taskRun, err := getTaskRun(taskRunName)
if err != nil {
if !kerrors.IsNotFound(err) {
return fmt.Errorf("error retrieving TaskRun %s: %w", taskRunName, err)
}
}
if taskRun != nil {
t.TaskRuns = append(t.TaskRuns, taskRun)
}
rt, err := resolveTask(ctx, taskRun, getTask, pipelineTask)
if err != nil {
return err
}
t.ResolvedTask = rt

m. So it led to the error seen at the top.

@tekton-robot tekton-robot added kind/bug Categorizes issue or PR as related to a bug. release-note Denotes a PR that will be considered when it comes time to generate release notes. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 14, 2025
@tekton-robot
Copy link
Collaborator

Hi @l-qing. Thanks for your PR.

I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 14, 2025
name: "combinations count is zero",
matrix: &v1.Matrix{
Params: v1.Params{{}}},
Params: v1.Params{}},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The behavior is different between having no param and having a param with an empty value.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, the indentation is really weird here. We should format it better.

&v1.Matrix{
    Params: v1.Params{},
}
// or 
&v1.Matrix{Params: v1.Params{}}

Params: v1.Params{{
Name: "GOARCH", Value: v1.ParamValue{ArrayVal: []string{"linux/amd64", "linux/ppc64le", "linux/s390x"}},
}, {
Name: "version", Value: v1.ParamValue{StringVal: "$(tasks.platforms.results.str[*])"}},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem to be solved this time involves referencing an array parameter within a string value.

- name: b-task
taskRef:
name: mytask
taskSpec:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid returning early due to the PipelineRunReasonCouldntGetTask error.

Copy link
Member

@waveywaves waveywaves Mar 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this require a change in the codebase instead, so that we don't return early? Skipping dereferencing a task here to avoid returning early would be a workaround then is my only concern.

pt: pts[2],
want: &ResolvedPipelineTask{
TaskRunNames: nil,
TaskRunNames: []string{"pipelinerun-pipelinetask-with-whole-array-results"},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current behavior will return a definition of TaskSpec, facilitating subsequent verification.

matrix:
params:
- name: platform
value: $(tasks.matrix-include.results.str[*])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a usage that is supported this time.

@l-qing l-qing force-pushed the fix/matrix-result-ref branch from d4c465d to def2c31 Compare January 15, 2025 03:02
@l-qing
Copy link
Member Author

l-qing commented Jan 15, 2025

It seems that this usage might bypass the limitation of DefaultMaxMatrixCombinationsCount.

func (m *Matrix) validateCombinationsCount(ctx context.Context) (errs *apis.FieldError) {
matrixCombinationsCount := m.CountCombinations()
maxMatrixCombinationsCount := config.FromContextOrDefaults(ctx).Defaults.DefaultMaxMatrixCombinationsCount
if matrixCombinationsCount > maxMatrixCombinationsCount {
errs = errs.Also(apis.ErrOutOfBoundsValue(matrixCombinationsCount, 0, maxMatrixCombinationsCount, "matrix"))
}
return errs
}

@l-qing
Copy link
Member Author

l-qing commented Jan 21, 2025

Hi, @afrittoli can you help me review it when you have time?

@fabricebrito
Copy link

Looking forward for this fix 👍🏽

@vdemeester
Copy link
Member

/retest

name: "combinations count is zero",
matrix: &v1.Matrix{
Params: v1.Params{{}}},
Params: v1.Params{}},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, the indentation is really weird here. We should format it better.

&v1.Matrix{
    Params: v1.Params{},
}
// or 
&v1.Matrix{Params: v1.Params{}}

@vdemeester
Copy link
Member

/ok-to-test

@tekton-robot tekton-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 30, 2025
@l-qing l-qing force-pushed the fix/matrix-result-ref branch 2 times, most recently from c971dc1 to f8a3ecd Compare January 30, 2025 13:06
@l-qing l-qing force-pushed the fix/matrix-result-ref branch from f8a3ecd to 71e9e08 Compare February 14, 2025 15:23
@l-qing
Copy link
Member Author

l-qing commented Feb 14, 2025

The logical changes in this PR are minimal, almost just three lines.
The rest are changes to unit tests and e2e.

@l-qing l-qing force-pushed the fix/matrix-result-ref branch from 71e9e08 to f5ba9b8 Compare February 14, 2025 15:28
@l-qing
Copy link
Member Author

l-qing commented Feb 15, 2025

/assign @vdemeester @afrittoli

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 17, 2025
@l-qing
Copy link
Member Author

l-qing commented Feb 17, 2025

I will adjust this branch after the golangci-lint pipeline passes on the main branch.
It is unclear what exactly caused the failure in golangci-lint.

When I use the same version 1.62.2 of the golangci-lint tool for local scanning, my computer freezes.

@vdemeester
Copy link
Member

@l-qing see #8570 👼🏼

@l-qing l-qing force-pushed the fix/matrix-result-ref branch from f5ba9b8 to c026aa1 Compare February 18, 2025 10:30
@l-qing
Copy link
Member Author

l-qing commented Feb 26, 2025

The logical changes in this PR are minimal, almost just three lines. The rest are changes to unit tests and e2e.

@afrittoli Can you help assign a suitable person for this PR?
The code changes are not extensive; mainly, there are a lot of e2e tests.

@l-qing l-qing force-pushed the fix/matrix-result-ref branch from 5e15f05 to 5723a3d Compare February 27, 2025 12:35
@waveywaves
Copy link
Member

/assign

- name: b-task
taskRef:
name: mytask
taskSpec:
Copy link
Member

@waveywaves waveywaves Mar 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this require a change in the codebase instead, so that we don't return early? Skipping dereferencing a task here to avoid returning early would be a workaround then is my only concern.

@l-qing l-qing force-pushed the fix/matrix-result-ref branch from 5723a3d to c6fbd8b Compare March 5, 2025 13:26
@l-qing
Copy link
Member Author

l-qing commented Mar 5, 2025

@waveywaves I adjusted the unit test code here. Do you think this is okay? c6fbd8b

Due to the previous reconciliation, the calculated numCombinations was 0, so it wouldn't enter the process of retrieving tasks rpt.setTaskRunsAndResolvedTask, which is why it reached the subsequent checks.

if rpt.PipelineTask.IsMatrixed() {
numCombinations = rpt.PipelineTask.Matrix.CountCombinations()
}
if rpt.IsCustomTask() {
rpt.CustomRunNames = getNamesOfCustomRuns(pipelineRun.Status.ChildReferences, pipelineTask.Name, pipelineRun.Name, numCombinations)
for _, runName := range rpt.CustomRunNames {
run, err := getRun(runName)
if err != nil && !kerrors.IsNotFound(err) {
return nil, fmt.Errorf("error retrieving CustomRun %s: %w", runName, err)
}
if run != nil {
rpt.CustomRuns = append(rpt.CustomRuns, run)
}
}
} else {
rpt.TaskRunNames = GetNamesOfTaskRuns(pipelineRun.Status.ChildReferences, pipelineTask.Name, pipelineRun.Name, numCombinations)
for _, taskRunName := range rpt.TaskRunNames {
if err := rpt.setTaskRunsAndResolvedTask(ctx, taskRunName, getTask, getTaskRun, pipelineTask); err != nil {
return nil, err

So in order to proceed to the subsequent tests, I need to resolve the issue of the task not existing in the original unit tests.

@l-qing
Copy link
Member Author

l-qing commented Mar 5, 2025

It seems that the failure was due to a failure in pulling the image. However, I am unsure of the specific reason for the failure.
Since I cannot retry the failed action individually, I can only close and then reopen the PR.

2025-03-05T13:55:44.9179983Z --- FAIL: TestExamples (0.08s)
2025-03-05T13:55:44.9201720Z     --- FAIL: TestExamples/v1/pipelineruns/workspace-from-volumeclaimtemplate (268.32s)
2025-03-05T13:51:24.6457141Z     examples_test.go:59: Failed waiting for V1 pipeline run done: "run-with-template-rgb8p" failed
2025-03-05T13:51:24.6460770Z     panic.go:629: ############################################
2025-03-05T13:51:24.6466331Z     panic.go:629: ### Dumping objects from arendelle-7fb9f ###
2025-03-05T13:51:24.6467823Z     panic.go:629: ############################################
2025-03-05T13:51:24.6468870Z I0305 13:51:24.644474  119818 envvar.go:172] "Feature gate default state" feature="WatchListClient" enabled=false
2025-03-05T13:51:24.6470031Z I0305 13:51:24.644542  119818 envvar.go:172] "Feature gate default state" feature="InformerResourceVersion" enabled=false
2025-03-05T13:51:24.7458764Z     panic.go:629: 
2025-03-05T13:51:24.7461464Z         ---
2025-03-05T13:51:24.7462951Z         apiVersion: tekton.dev/v1
2025-03-05T13:51:24.7463423Z         kind: TaskRun
2025-03-05T13:51:24.7463799Z         metadata:
2025-03-05T13:51:24.7464171Z           annotations:
2025-03-05T13:51:24.7466174Z             pipeline.tekton.dev/affinity-assistant: affinity-assistant-5f80ef0f76
2025-03-05T13:51:24.7467075Z             pipeline.tekton.dev/release: ce4baf2
2025-03-05T13:51:24.7467762Z           creationTimestamp: "2025-03-05T13:47:05Z"
2025-03-05T13:51:24.7468432Z           generation: 1
2025-03-05T13:51:24.7469120Z           labels:
2025-03-05T13:51:24.7469766Z             app.kubernetes.io/managed-by: tekton-pipelines
2025-03-05T13:51:24.7470460Z             tekton.dev/memberOf: tasks
2025-03-05T13:51:24.7471177Z             tekton.dev/pipeline: volume-from-template
2025-03-05T13:51:24.7471993Z             tekton.dev/pipelineRun: run-with-template-rgb8p
2025-03-05T13:51:24.7473244Z             tekton.dev/pipelineRunUID: f571fb9a-c771-43dc-9850-1c8251c8ac4c
2025-03-05T13:51:24.7474226Z             tekton.dev/pipelineTask: reader
2025-03-05T13:51:24.7475080Z           name: run-with-template-rgb8p-reader
2025-03-05T13:51:24.7475857Z           namespace: arendelle-7fb9f
2025-03-05T13:51:24.7476546Z           ownerReferences:
2025-03-05T13:51:24.7477385Z           - apiVersion: tekton.dev/v1
2025-03-05T13:51:24.7478441Z             blockOwnerDeletion: true
2025-03-05T13:51:24.7478976Z             controller: true
2025-03-05T13:51:24.7479637Z             kind: PipelineRun
2025-03-05T13:51:24.7480391Z             name: run-with-template-rgb8p
2025-03-05T13:51:24.7481262Z             uid: f571fb9a-c771-43dc-9850-1c8251c8ac4c
2025-03-05T13:51:24.7482009Z           resourceVersion: "19838"
2025-03-05T13:51:24.7482793Z           uid: f88d79be-20ab-4f86-8f88-150574d2f73d
2025-03-05T13:51:24.7483421Z         spec:
2025-03-05T13:51:24.7483889Z           serviceAccountName: default
2025-03-05T13:51:24.7484384Z           taskSpec:
2025-03-05T13:51:24.7484616Z             steps:
2025-03-05T13:51:24.7485042Z             - computeResources: {}
2025-03-05T13:51:24.7485410Z               image: mirror.gcr.io/ubuntu
2025-03-05T13:51:24.7485849Z               name: read
2025-03-05T13:51:24.7486288Z               script: cat $(workspaces.myws.path)/foo | grep bar
2025-03-05T13:51:24.7486780Z             workspaces:
2025-03-05T13:51:24.7487036Z             - name: myws
2025-03-05T13:51:24.7487423Z           timeout: 1h0m0s
2025-03-05T13:51:24.7487670Z           workspaces:
2025-03-05T13:51:24.7488367Z           - name: myws
2025-03-05T13:51:24.7488713Z             persistentVolumeClaim:
2025-03-05T13:51:24.7489373Z               claimName: pvc-5e72df2b7e
2025-03-05T13:51:24.7489628Z         status:
2025-03-05T13:51:24.7489935Z           completionTime: "2025-03-05T13:51:23Z"
2025-03-05T13:51:24.7490289Z           conditions:
2025-03-05T13:51:24.7490635Z           - lastTransitionTime: "2025-03-05T13:51:23Z"
2025-03-05T13:51:24.7491263Z             message: 'the step "read" in TaskRun "run-with-template-rgb8p-reader" failed to
2025-03-05T13:51:24.7491998Z               pull the image "". The pod errored with the message: "Back-off pulling image
2025-03-05T13:51:24.7492461Z               "mirror.gcr.io/ubuntu"."'
2025-03-05T13:51:24.7492820Z             reason: TaskRunImagePullFailed
2025-03-05T13:51:24.7493131Z             status: "False"
2025-03-05T13:51:24.7493391Z             type: Succeeded
2025-03-05T13:51:24.7493752Z           podName: run-with-template-rgb8p-reader-pod`

@l-qing l-qing closed this Mar 5, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in Tekton Community Roadmap Mar 5, 2025
@l-qing l-qing reopened this Mar 5, 2025
@github-project-automation github-project-automation bot moved this from Done to In Progress in Tekton Community Roadmap Mar 5, 2025
@l-qing l-qing force-pushed the fix/matrix-result-ref branch from c6fbd8b to babc976 Compare March 12, 2025 02:06
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@l-qing l-qing force-pushed the fix/matrix-result-ref branch from babc976 to ebbf13a Compare March 14, 2025 04:24
@aThorp96
Copy link
Member

@waveywaves are your requested changes still blocking? Can this be merged?

@waveywaves
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2025
@tekton-robot tekton-robot merged commit 0a23a4b into tektoncd:main Apr 1, 2025
19 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Tekton Community Roadmap Apr 1, 2025
@savitaashture
Copy link
Contributor

/cherry-pick release-v0.68.x

@tekton-robot
Copy link
Collaborator

@savitaashture: new pull request created: #8828

In response to this:

/cherry-pick release-v0.68.x

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@savitaashture
Copy link
Contributor

/cherry-pick release-v0.65.x

@tekton-robot
Copy link
Collaborator

@savitaashture: new pull request created: #8829

In response to this:

/cherry-pick release-v0.65.x

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

InvalidTaskResultsReference when dynamically generating subsequent tasks in a pipeline using matrix
9 participants