Skip to content

Conversation

@timja
Copy link
Member

@timja timja commented Mar 4, 2020

Hi we're experiencing flakey tests trying to integrate the next bom line,

example:

Expected: a string containing "broken condition"
     but: was "Started
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] waitUntil
[Pipeline] {
[Pipeline] semaphore
[Pipeline] }
Will try again after 0.25 sec
[Pipeline] {
[Pipeline] semaphore
[Pipeline] }
[Pipeline] // waitUntil
[Pipeline] End of Pipeline

@jglick suggested replacing assertLogContains with waitForMessage
jenkinsci/bom#110 (comment)

Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

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

@timja timja force-pushed the use-wait-for-message branch from f2371f1 to d5bead0 Compare March 5, 2020 19:51
@timja timja requested a review from jglick March 5, 2020 19:51
@jglick
Copy link
Member

jglick commented Apr 8, 2020

Also need

java.lang.AssertionError: 

Expected: a string containing "Timeout has been exceeded"
     but: was "Started
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /home/jenkins/workspace/Tools_bom_PR-110/pct-work/workflow-durable-task-step/target/tmp/j h7284083198078828316/workspace/p
[Pipeline] {
[Pipeline] timeout
Timeout set to expire in 1 sec
[Pipeline] {
[Pipeline] sh
+ sleep 5
Cancelling nested steps due to timeout
Sending interrupt signal to process
Terminated
script returned exit code 143
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
"
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.junit.Assert.assertThat(Assert.java:956)
	at org.junit.Assert.assertThat(Assert.java:923)
	at org.jvnet.hudson.test.JenkinsRule.assertLogContains(JenkinsRule.java:1396)
	at org.jenkinsci.plugins.workflow.steps.durable_task.ShellStepTest.interruptingAbortsBuild(ShellStepTest.java:707)

jglick added a commit to jglick/bom that referenced this pull request Apr 8, 2020
@jglick
Copy link
Member

jglick commented Jun 12, 2020

see #136 (comment)

@dwnusbaum
Copy link
Member

I think that jenkinsci/jenkins-test-harness#210, which is in the version of jenkins-test-harness used by this plugin, fixed all of these issues, so I am closing the PR. Feel free to reopen the PR if I am misunderstanding something.

@dwnusbaum dwnusbaum closed this Aug 14, 2020
@timja timja deleted the use-wait-for-message branch August 14, 2020 19:53
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.

3 participants