Skip to content

[SYSTEMDS-3240] Fix IOGEN test path if the iogen directory doesn't exist#1475

Merged
j143 merged 2 commits into
apache:mainfrom
fathollahzadeh:sf-iogentestpath
Dec 7, 2021
Merged

[SYSTEMDS-3240] Fix IOGEN test path if the iogen directory doesn't exist#1475
j143 merged 2 commits into
apache:mainfrom
fathollahzadeh:sf-iogentestpath

Conversation

@fathollahzadeh

Copy link
Copy Markdown
Contributor

This commit makes "iogen" directory in "/test/scripts/functions" path when we don't have it.

@j143

j143 commented Dec 7, 2021

Copy link
Copy Markdown
Member

Seems, a test related to this fails.

Running org.apache.sysds.test.functions.iogen.FrameGenerateReaderCSVTest
java.lang.Exception: The file format couldn't recognize!!
	at org.apache.sysds.runtime.iogen.GenerateReader$GenerateReaderFrame.getReader(GenerateReader.java:114)
	at org.apache.sysds.test.functions.iogen.GenerateReaderFrameTest.runGenerateReaderTest(GenerateReaderFrameTest.java:180)

@j143 j143 changed the title [IOGEN] Fixed IOGEN Test Path [SYSTEMDS-3240] Fix IOGEN test path if the iogen directory doesn't exist Dec 7, 2021
@fathollahzadeh

Copy link
Copy Markdown
Contributor Author

Seems, a test related to this fails.

Running org.apache.sysds.test.functions.iogen.FrameGenerateReaderCSVTest
java.lang.Exception: The file format couldn't recognize!!
	at org.apache.sysds.runtime.iogen.GenerateReader$GenerateReaderFrame.getReader(GenerateReader.java:114)
	at org.apache.sysds.test.functions.iogen.GenerateReaderFrameTest.runGenerateReaderTest(GenerateReaderFrameTest.java:180)

Seems, a test related to this fails.

Running org.apache.sysds.test.functions.iogen.FrameGenerateReaderCSVTest
java.lang.Exception: The file format couldn't recognize!!
	at org.apache.sysds.runtime.iogen.GenerateReader$GenerateReaderFrame.getReader(GenerateReader.java:114)
	at org.apache.sysds.test.functions.iogen.GenerateReaderFrameTest.runGenerateReaderTest(GenerateReaderFrameTest.java:180)

Thanks, @j143 - I fixed the tests and run all of them multiple times. The errors come up when I generate data with a random function; it seems some values had bad formats.

@j143 j143 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you, @fathollahzadeh - LGTM. 👍 🎉 🚀

Worked fine on my machine.

@j143 j143 merged commit 9a295c0 into apache:main Dec 7, 2021
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.

2 participants