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

Diagnostics for QuietDownCommandTest.quietDownShouldSuccessWithBlockPlusNonExpiredTimeoutAndRunningExecutor #8534

Merged
merged 1 commit into from
Oct 21, 2023

Conversation

jglick
Copy link
Member

@jglick jglick commented Sep 28, 2023

Alternative diagnostics building on #8513; see jenkinsci/jenkins-test-harness#657 (comment) with @Vlatombe & @basil

Testing done

Test passes locally and shows

…
   9.481 [aProject #1] Finished: SUCCESS
   9.772 [id=20]	INFO	hudson.lifecycle.Lifecycle#onStatusUpdate: Stopping Jenkins
   9.828 [id=20]	FINEST	hudson.XmlFile#write: Writing …/queue.xml
java.lang.Throwable
	at hudson.XmlFile.write(XmlFile.java:205)
	at hudson.model.Queue.save(Queue.java:472)
	at jenkins.model.Jenkins._cleanUpPersistQueue(Jenkins.java:3921)
	at jenkins.model.Jenkins.cleanUp(Jenkins.java:3676)
	at org.jvnet.hudson.test.JenkinsRule._stopJenkins(JenkinsRule.java:566)
	at org.jvnet.hudson.test.JenkinsRule.after(JenkinsRule.java:514)
	at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:625)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.lang.Thread.run(Thread.java:829)
WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.
   9.842 [id=20]	INFO	hudson.lifecycle.Lifecycle#onStatusUpdate: Jenkins stopped
   9.889 [id=20]	INFO	o.j.h.t.TemporaryDirectoryAllocator#dispose: deleting …

as expected. Unknown if the culprit would in fact appear during a flake.

Proposed changelog entries

  • N/A

Before the changes are marked as ready-for-merge:

Maintainer checklist

@@ -356,7 +361,7 @@ public void quietDownShouldSuccessWithBlockPlusNonExpiredTimeoutAndRunningExecut
threadPool.submit(exec_task);
beforeCli.block();
assertJenkinsInQuietMode();
final boolean timeout_occured = false;
Copy link
Member Author

Choose a reason for hiding this comment

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

Among other 🤨 in this test, this variable was unused.

@Vlatombe
Copy link
Member

Thought of this though I wanted to have a generic option because this is typically the kind of failure appearing on Windows for reasons that can be unrelated to the test itself.

@jglick
Copy link
Member Author

jglick commented Sep 28, 2023

https://github.com/jenkinsci/jenkins/pull/8511/checks?check_run_id=17000216956 happened to be on Windows, perhaps just because Windows CI tends to be slower and more likely to expose race conditions, but I strongly suspect the flake in this case is the fault of the test.

@NotMyFault NotMyFault added the skip-changelog Should not be shown in the changelog label Oct 19, 2023
Copy link
Member

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

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

/label ready-for-merge


This PR is now ready for merge. We will merge it after ~24 hours if there is no negative feedback.
Please see the merge process documentation for more information about the merge process.
Thanks!

@comment-ops-bot comment-ops-bot bot added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Oct 19, 2023
@NotMyFault NotMyFault merged commit 53fa102 into jenkinsci:master Oct 21, 2023
15 checks passed
@jglick jglick deleted the QuietDownCommandTest branch October 23, 2023 11:33
@jglick
Copy link
Member Author

jglick commented Oct 27, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback skip-changelog Should not be shown in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants