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

Ignore temporary files in BindingStepTest.grep #279

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

jglick
Copy link
Member

@jglick jglick commented Oct 23, 2023

Otherwise can get PCT flakes such as

java.nio.file.NoSuchFileException: …/target/tmp/j h8642771068129316003/jobs/p/builds/1/atomic7832996773747571639.tmp
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
	at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
	at java.base/java.nio.file.Files.newByteChannel(Files.java:371)
	at java.base/java.nio.file.Files.newByteChannel(Files.java:422)
	at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
	at java.base/java.nio.file.Files.newInputStream(Files.java:156)
	at org.apache.commons.io.FileUtils.lambda$readFileToString$12(FileUtils.java:2615)
	at org.apache.commons.io.IOUtils.toString(IOUtils.java:3239)
	at org.apache.commons.io.IOUtils.toString(IOUtils.java:3214)
	at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:2615)
	at org.jenkinsci.plugins.credentialsbinding.impl.BindingStepTest.grep(BindingStepTest.java:471)
	at org.jenkinsci.plugins.credentialsbinding.impl.BindingStepTest.grep(BindingStepTest.java:459)
	at org.jenkinsci.plugins.credentialsbinding.impl.BindingStepTest.lambda$cleanupAfterRestart$8(BindingStepTest.java:265)

when grepping the build directory before the build completes.

@jglick jglick requested a review from a team as a code owner October 23, 2023 18:38
@jglick jglick merged commit 737c34d into jenkinsci:master Oct 24, 2023
14 checks passed
@jglick jglick deleted the BindingStepTest.grep branch October 24, 2023 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants