-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Exception: ERROR java.nio.file.NoSuchFileException: /tmp/testngXmlPathInJar-15086412835569336174 #2761
Comments
@martinaldrin - Can you please help add a sample that I can use to reproduce the problem ? |
Added Example code and command above. |
I did some testing and reverted one line, so it seems to be working if I switch back this line. d190ade#diff-2be212be737b88302f4058b07a51c8731b5480f824a6fe98a85354e38a9fff95L79 |
After more investigation I found the issue, I copied the file check from the old method and added that infront of the copy method and that seems to solve the issue. We need to ensure that the parent directories exists before we copy the file.
|
…/tmp/testngXmlPathInJar
I have created a PR now for the issue, but I have no idea about how to create unit tests for the issue. |
Closes testng-team#2761 Also toggled the version back to a bug fix version
Closes testng-team#2761 Also toggled the version back to a bug fix version
Closes testng-team#2761 Also toggled the version back to a bug fix version
Closes testng-team#2761 Also toggled the version back to a bug fix version
Closes #2761 Also toggled the version back to a bug fix version
@martinaldrin - Can you please check this version and see if all is well ? https://oss.sonatype.org/content/repositories/snapshots/org/testng/testng/7.6.1-SNAPSHOT/ |
Hi, Yes I will try it. |
Hi, I can see that this issue is resolved, our test has passed. |
@martinaldrin - Can you please check this once again against 7.6.1-SNAPSHOT. We plan to do a bug fix release over the weekend and would like to ensure that all is well. |
@krmahadevan We have been running a fork from your PR during for days now and it seems to works well. Many thanks for fast fix. If you have submitted any new changes after this fix I have hard to try it during the weekend since we have vacation today and tomorrow. |
I did a new test since my latest fork test last week and now I get a new issue. Exception in thread "main" java.lang.NoSuchMethodError: 'void org.testng.reporters.Files.copyFile(java.io.InputStream, java.io.File)' |
@martinaldrin - Yes we removed that deprecated method. |
Thanks, then it will take a bit longer for me to verify since then other projects needs to be updated. |
Sure. I can wait to hear back. |
@krmahadevan I have now been running latest TestNg for 3 days and everything seems to be working fine so far. |
Hi @krmahadevan do you still plan to do the bug fix release for 7.6.1 or do you plan to include more fixes before the release? |
Yes if this fix is absolutely the immediately needed for you folks to consume 7.6.0 else we can stall it to 7.7.0 which is probably atleast a couple of months away. Let me know how you want it. |
Hi, yes this fix is required for us. Not a single test can pass at the moment with 7.6.0 since all our executions uses xmlPathInJar. |
I have published a release candidate for You can get access to it by adding a repository entry such as below <repository>
<id>maven-central-staging</id>
<url>https://oss.sonatype.org/content/repositories/orgtestng-1082</url>
</repository> or if you are using Gradle, please add
and add a dependency on to TestNG |
@krmahadevan , I'll test the TestNG version 7.6.1 rc version. and come back here after several days. |
@krmahadevan, We have done the test and don't find any new issue on the version. |
@bobshie TestNG bug fix version The tag creation part is going to have to wait since I would be out travelling for the next couple of days. I will come back and create the tag later. |
@krmahadevan , OK, Very thanks for your help. |
TestNG Version
7.6.0
I have some bad news with last release 7.6.0, We tested a snapshot last week from master and that was working. But there seems to be a new commit in-between that affects us badly. non of the executions passed.
I expect it is related to this commit: d190ade
Seems that some tmp path is added infront of the path
argument: -xmlpathinjar suites/postrelease/emulator_wrat_postrelease.xml
Exception: 2022-05-18T08:44:26,315 ERROR java.nio.file.NoSuchFileException: /tmp/testngXmlPathInJar-15086412835569336174/suites/old_action_test_suites/rnc_action_regression_with_configurationdata.xml
Sample Test
Sample Suite
Command
java -classpath target/testng-sample-xmlpathinjar-0.0.1-SNAPSHOT-jar-with-dependencies.jar org.testng.TestNG -testjar target/testng-sample-xmlpathinjar-0.0.1-SNAPSHOT-jar-with-dependencies.jar -xmlpathinjar suites/xmlpathinjarSuite.xml
TestNG 7.5 Output
TestNg 7.6.0 Output
The text was updated successfully, but these errors were encountered: