Skip to content

Split WorkflowRun.GraphL in two and use new GraphListener.ordinal method to improve listener ordering - #547

Closed
dwnusbaum wants to merge 2 commits into
jenkinsci:masterfrom
dwnusbaum:split-graphl
Closed

Split WorkflowRun.GraphL in two and use new GraphListener.ordinal method to improve listener ordering#547
dwnusbaum wants to merge 2 commits into
jenkinsci:masterfrom
dwnusbaum:split-graphl

Conversation

@dwnusbaum

Copy link
Copy Markdown
Member

See jenkinsci/workflow-cps-plugin#1052 and jenkinsci/workflow-api-plugin#410.

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

Comment on lines 1092 to 1094
if (node.getPersistentAction(TimingAction.class) == null) {
node.addAction(new TimingAction());
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I tried to write a test for the new logic and noticed that this seems to be largely redundant because of FlowHead.setNewHead. I think the if was added in #75 to prevent duplicate actions after jenkinsci/workflow-cps-plugin#188 started adding TimingAction in FlowHead (merged same day, but the former depends on the latter). Maybe though the whole block should be deleted here instead. I'm not sure if there's a case where it does anything.

@dwnusbaum

Copy link
Copy Markdown
Member Author

@dwnusbaum dwnusbaum closed this Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant