Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display matrix TaskRuns on the PipelineRun details page #3081

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

AlanGreene
Copy link
Member

Changes

Related to #2410

Add support for displaying all TaskRuns produced by a matrix task on the PipelineRun details page.

Future updates will improve the display of the matrix information making it easier to differentiate between them on the left task/step nav, and making it clearer which params are provided from the matrix.

/kind feature

Submitter Checklist

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

  • Docs included if any changes are user facing
  • Tests included if any functionality added or changed
  • 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 (new features, significant UI changes, API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

Add support for displaying TaskRuns for a matrix task on the PipelineRun details page.
This allows users to access logs, status, and other details of the matrix-generated TaskRuns that were not previously available on the PipelineRun details page. Future releases will improve the display of this information.

@tekton-robot tekton-robot added kind/feature Categorizes issue or PR as related to a new feature. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 24, 2023
@AlanGreene AlanGreene requested review from briangleeson and removed request for skaegi August 24, 2023 15:23
@AlanGreene
Copy link
Member Author

AlanGreene commented Aug 24, 2023

Timed out on CreatePipelineRun test, stuck on loading state for >3 seconds. I've already bumped the timeout for this step in #3040

Re-running for now and will need to find another approach as we can't just keep increasing the timeout.

When running locally this step takes ~50ms, so it really shouldn't be taking 3+ seconds (60 times as long…) in CI.

/test tekton-dashboard-unit-tests

@AlanGreene
Copy link
Member Author

Hold for a bit so we can publish a new version of the packages with #3082. I'll unhold once that's done in the next hour or so.
/hold

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 25, 2023
@AlanGreene
Copy link
Member Author

Ready for review
/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 25, 2023
selectedTaskId === pipelineTaskName ||
(!erroredTask && !selectedTaskId && index === 0);
const selectDefaultStep = !selectedTaskId;
!hasExpandedTask &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Found this value tough to deconstruct. Perhaps worth adding a comment or two, or splitting up into more variables with explanatory names?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah there's a lot going on there, added comments for each branch. Let me know if that helps

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good, thanks

Copy link
Contributor

@briangleeson briangleeson left a comment

Choose a reason for hiding this comment

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

Looks good overall, just one suggestion

Add support for displaying all TaskRuns produced by a matrix
task on the PipelineRun details page.

Future updates will improve the display of the matrix information
making it easier to differentiate between them on the left task/step nav,
and making it clearer which params are provided from the matrix.
Copy link
Contributor

@briangleeson briangleeson left a comment

Choose a reason for hiding this comment

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

/lgtm

selectedTaskId === pipelineTaskName ||
(!erroredTask && !selectedTaskId && index === 0);
const selectDefaultStep = !selectedTaskId;
!hasExpandedTask &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good, thanks

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 29, 2023
@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: briangleeson

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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 29, 2023
@tekton-robot tekton-robot merged commit aedcb8b into tektoncd:main Aug 29, 2023
3 checks passed
@AlanGreene AlanGreene deleted the matrix branch August 29, 2023 10:16
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/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants