-
Improvement
-
Resolution: Fixed
-
Major
-
None
When using the ForkScanner to walk through a flow graph, most things are returned in logical reverse order (end --> start, right), but parallels are done in the opposite (first branch, then second).
The API doesn't guarantee parallel ordering but it is helpful for consumers to have the same guarantee in place for parallels too, since it turns out to be practical.
- relates to
-
JENKINS-38457 FlowGraphTable shows parallel branches out of order
-
- Resolved
-
Code changed in jenkins
User: Sam Van Oort
Path:
src/main/java/org/jenkinsci/plugins/workflow/graphanalysis/ForkScanner.java
src/test/java/org/jenkinsci/plugins/workflow/graphanalysis/FlowScannerTest.java
src/test/java/org/jenkinsci/plugins/workflow/graphanalysis/ForkScannerTest.java
http://jenkins-ci.org/commit/workflow-api-plugin/dcd2152870040fe8dd1ee4fa616542b6bb3329dc
Log:
Ensure that parallels in ForkScanner follow the same reverse-order iteration, per
JENKINS-38309