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

Flakes in Security2180Test #150

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Conversation

jglick
Copy link
Member

@jglick jglick commented Jul 28, 2023

From a PCT run:

java.io.IOException: …/matrix-auth-plugin/target/tmp/j h5449561387972401643/jobs/folder0/jobs/item1/builds/permalinks
	at org.jvnet.hudson.test.TemporaryDirectoryAllocator.delete(TemporaryDirectoryAllocator.java:144)
	at org.jvnet.hudson.test.TemporaryDirectoryAllocator.delete(TemporaryDirectoryAllocator.java:131)
	at org.jvnet.hudson.test.TemporaryDirectoryAllocator.delete(TemporaryDirectoryAllocator.java:131)
	at org.jvnet.hudson.test.TemporaryDirectoryAllocator.delete(TemporaryDirectoryAllocator.java:131)
	at org.jvnet.hudson.test.TemporaryDirectoryAllocator.delete(TemporaryDirectoryAllocator.java:131)
	at org.jvnet.hudson.test.TemporaryDirectoryAllocator.delete(TemporaryDirectoryAllocator.java:131)
	at org.jvnet.hudson.test.TemporaryDirectoryAllocator.dispose(TemporaryDirectoryAllocator.java:99)
	at org.jvnet.hudson.test.TestEnvironment.dispose(TestEnvironment.java:84)
	at org.jvnet.hudson.test.JenkinsRule.after(JenkinsRule.java:525)
	at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:626)
	at …
Caused by: java.nio.file.DirectoryNotEmptyException: …/matrix-auth-plugin/target/tmp/j h5449561387972401643/jobs/folder0/jobs/item1/builds
	at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:247)
	at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
	at java.base/java.nio.file.Files.deleteIfExists(Files.java:1181)
	at org.jvnet.hudson.test.TemporaryDirectoryAllocator.delete(TemporaryDirectoryAllocator.java:141)
	... 13 more

jenkinsci/jenkins-test-harness#198 is highlighting anomalous behavior here where builds are running after the ends of tests. Other puzzling flakes have been reported in this class that might be caused by builds from one Jenkins session completing while another is running.

Most expedient in this case to just look for all running builds since from a quick glance there were three or four different places where builds were launched, and from differently-placed projects.

@jglick
Copy link
Member Author

jglick commented Jul 29, 2023

@daniel-beck?

@daniel-beck
Copy link
Member

@jglick Thanks for the PR. Could you clarify what you need? Acknowledging the PR? Merge into master? New plugin release?

@jglick
Copy link
Member Author

jglick commented Aug 2, 2023

New plugin release please.

@jglick
Copy link
Member Author

jglick commented Aug 21, 2023

@daniel-beck ?

Comment on lines +52 to +53
@ClassRule
public static BuildWatcher watcher = new BuildWatcher();
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Well yes, but you might some day wish to edit the test.

@daniel-beck daniel-beck merged commit 305c908 into jenkinsci:master Aug 22, 2023
16 checks passed
@jglick jglick deleted the Security2180Test branch August 22, 2023 14:04
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