Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
Description
There are too many @RandomlyFails tests. SemaphoreStep should be used more consistently in place of WatchYourStep and waiting for the execution to suspend. (Already prototyped in WorkflowTest.env.)
Also any build logs should be streamed immediately to stderr, rather than forcing the test to include the current log in every assertion message observed to fail. (In combination with SemaphoreStep, this should also more reliably flush recent output: WorkflowRun flushes logs when new steps are run.)
Attachments
Issue Links
- is related to
-
JENKINS-26398 Fix createSlave for RestartableJenkinsRule
-
- Resolved
-
-
JENKINS-26399 Utility method in JenkinsRule to wait for build to complete
-
- Resolved
-
- links to
Code changed in jenkins
User: Jesse Glick
Path:
aggregator/src/test/java/org/jenkinsci/plugins/workflow/SingleJobTestBase.java
aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunTest.java
aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java
support/src/test/java/org/jenkinsci/plugins/workflow/test/steps/WatchYourStep.java
http://jenkins-ci.org/commit/workflow-plugin/d3ba64ddd6eaaacad401624d5b17809ebbec9b30
Log:
[FIXED JENKINS-25975] Finally able to delete WatchYourStep; using SemaphoreStep instead.