Skip to content

Support pipeline matrix feature #1661

Open

Description

@afrittoli

Feature request

Support all usual commands in case of tekton matrix.

Use case

Interact with Tekton pipelines that make use of matrix.

UI Example

I think the basic support would be make the logs command work. The current behaviour lists all tasks but the logs are only those of the first taskrun from the matrix.

$ tkn pr describe matrixed-pr-hl56m
Name:                  matrixed-pr-hl56m
Namespace:             default
Service Account:       default
Timeout(Deprecated):   1h0m0s
Labels:
 tekton.dev/pipeline=matrixed-pr-hl56m

🌡️  Status

STARTED         DURATION   STATUS
5 minutes ago   31s        Succeeded

🗂  Taskruns

 NAME                                               TASK NAME                    STARTED         DURATION   STATUS
 ∙ matrixed-pr-hl56m-platforms-and-browsers-dag-4   platforms-and-browsers-dag   5 minutes ago   7s         Succeeded
 ∙ matrixed-pr-hl56m-platforms-and-browsers-dag-5   platforms-and-browsers-dag   5 minutes ago   15s        Succeeded
 ∙ matrixed-pr-hl56m-platforms-and-browsers-dag-0   platforms-and-browsers-dag   5 minutes ago   10s        Succeeded
 ∙ matrixed-pr-hl56m-platforms-and-browsers-dag-1   platforms-and-browsers-dag   5 minutes ago   10s        Succeeded
 ∙ matrixed-pr-hl56m-platforms-and-browsers-dag-2   platforms-and-browsers-dag   5 minutes ago   11s        Succeeded
 ∙ matrixed-pr-hl56m-platforms-and-browsers-dag-3   platforms-and-browsers-dag   5 minutes ago   12s        Succeeded
 ∙ matrixed-pr-hl56m-get-platforms                  get-platforms                5 minutes ago   8s         Succeeded
 ∙ matrixed-pr-hl56m-get-browsers                   get-browsers                 5 minutes ago   15s        Succeeded

But in the logs:

$ tkn pr logs matrixed-pr-hl56m -f
[get-platforms : echo] linuxmacwindows

[get-browsers : echo] chromesafarifirefox

[platforms-and-browsers-dag : echo] windows and chrome

It might be nice to highlight the matrix better in the CLI view as well, for instance by visually grouping TaskRuns that belong to a matrix and which TaskRun is associated with this tuple of inputs.

Activity

  1. added
    kind/featureCategorizes issue or PR as related to a new feature.
    on Jul 28, 2022
  2. added
    priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.
    on Jul 29, 2022
  3. added this to the 0.27.0 milestone on Sep 6, 2022
  4. modified the milestones: 0.27.0, 0.29.0 on Nov 23, 2022
  5. modified the milestones: 0.29.0, 0.30.0 on Jan 5, 2023
  6. vinamra28 commented on Jan 26, 2023

    @vinamra28
    Member

    /assign

  7. modified the milestones: 0.30.0, 0.31.0 on Mar 28, 2023
  8. 16 remaining items

  9. modified the milestones: 0.35.0, 0.36.0 on Feb 8, 2024
  10. modified the milestones: 0.36.0, 0.37.0, 0.38.0 on May 8, 2024
  11. modified the milestones: 0.38.0, 0.39.0 on Aug 22, 2024
  12. added
    area/roadmapIssues that are part of the project (or organization) roadmap (usually an epic)
    on Feb 12, 2025
  13. removed
    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.
    on Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/roadmapIssues that are part of the project (or organization) roadmap (usually an epic)help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions