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

Open Connector Framework testng throwing output exceptions #6692

Closed
planetf1 opened this issue Jul 1, 2022 · 1 comment · Fixed by #6693
Closed

Open Connector Framework testng throwing output exceptions #6692

planetf1 opened this issue Jul 1, 2022 · 1 comment · Fixed by #6693

Comments

@planetf1
Copy link
Member

planetf1 commented Jul 1, 2022

From build logs, some test cases are throwing testNG exceptions. The tests are running fine, but output is not being logged correctly:

[INFO] 
[2347](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2348)
[INFO] -------------------------------------------------------
[2348](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2349)
[INFO]  T E S T S
[2349](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2350)
[INFO] -------------------------------------------------------
[2350](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2351)
[INFO] Running org.odpi.openmetadata.frameworks.connectors.properties.TestAssetNote
[2351](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2352)
[INFO] Running org.odpi.openmetadata.frameworks.connectors.properties.TestAssetRelatedAssets
[2352](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2353)
[INFO] Running org.odpi.openmetadata.frameworks.connectors.properties.TestAssetSchemaAttributes
[2353](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2354)
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.727 s - in org.odpi.openmetadata.frameworks.connectors.properties.TestAssetNote
[2354](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2355)
[INFO] Running org.odpi.openmetadata.frameworks.connectors.properties.TestConnectionProperties
[2355](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2356)
[main] ERROR org.testng.reporters.jq.Main - /home/runner/work/egeria/egeria/open-metadata-implementation/frameworks/open-connector-framework/target/surefire-reports/jquery-3.6.0.min.js
[2356](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2357)
java.nio.file.FileAlreadyExistsException: /home/runner/work/egeria/egeria/open-metadata-implementation/frameworks/open-connector-framework/target/surefire-reports/jquery-3.6.0.min.js
[2357](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2358)
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:94)
[2358](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2359)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
[2359](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2360)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
[2360](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2361)
	at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
[2361](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2362)
	at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478)
[2362](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2363)
	at java.base/java.nio.file.Files.newOutputStream(Files.java:220)
[2363](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2364)
	at java.base/java.nio.file.Files.copy(Files.java:3067)
[2364](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2365)
	at org.testng.reporters.jq.Main.generateReport(Main.java:93)
[2365](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2366)
	at org.testng.TestNG.generateReports(TestNG.java:1134)
[2366](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2367)
	at org.testng.TestNG.run(TestNG.java:1072)
[2367](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2368)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:151)
[2368](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2369)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:111)
[2369](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2370)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeLazy(TestNGDirectoryTestSuite.java:122)
[2370](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2371)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:89)
[2371](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2372)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:155)
[2372](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2373)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456)
[2373](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2374)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169)
[2374](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2375)
	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595)
[2375](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2376)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)
[2376](https://github.com/odpi/egeria/runs/7134454730?check_suite_focus=true#step:5:2377)
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.912 s - in org.odpi.openmetadata.frameworks.connectors.properties.TestAssetRelatedAssets

There are MANY instances of this in the build log for the maven build.

This isn't a regression with the latest testNG updates, though may have been introduced in previus updates

@planetf1
Copy link
Member Author

planetf1 commented Jul 1, 2022

This seems to affect all testNG tests, not just this component

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 a pull request may close this issue.

1 participant