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

Build fails on Windows with Toml test failures #20933

Open
jclark opened this issue Feb 9, 2020 · 0 comments
Open

Build fails on Windows with Toml test failures #20933

jclark opened this issue Feb 9, 2020 · 0 comments
Assignees
Labels
Area/TOMLParser TOML parser related issues Points/2 Equivalent to two days effort Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug Type/TestFailure Intermittent build failures caused due to given test failure

Comments

@jclark
Copy link

jclark commented Feb 9, 2020

I followed the steps from the repo's README.md to build on Windows. I'm using latest version of JDK 8. I get three test failures all in ballerina-toml-parser-test-suite:

  1. ManifestProcessorTest. testMultipleDependencies
  2. ManifestProcessorTest. testSingleDependencies
  3. TomlFileToManifestTest. testTomlFile

Stack traces as follows:

1:

java.lang.NumberFormatException: For input string: "sers"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at com.moandjiezana.toml.StringValueReaderWriter.replaceUnicodeCharacters(StringValueReaderWriter.java:67)
	at com.moandjiezana.toml.StringValueReaderWriter.read(StringValueReaderWriter.java:51)
	at com.moandjiezana.toml.ValueReaders.convert(ValueReaders.java:23)
	at com.moandjiezana.toml.InlineTableValueReader.read(InlineTableValueReader.java:33)
	at com.moandjiezana.toml.ValueReaders.convert(ValueReaders.java:23)
	at com.moandjiezana.toml.TomlParser.run(TomlParser.java:49)
	at com.moandjiezana.toml.Toml.read(Toml.java:138)
	at org.ballerinalang.toml.parser.ManifestProcessor.parseTomlContentFromString(ManifestProcessor.java:107)
	at org.ballerinalang.toml.ManifestProcessorTest.testMultipleDependencies(ManifestProcessorTest.java:158)

2:

java.lang.NumberFormatException: For input string: "sers"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at com.moandjiezana.toml.StringValueReaderWriter.replaceUnicodeCharacters(StringValueReaderWriter.java:67)
	at com.moandjiezana.toml.StringValueReaderWriter.read(StringValueReaderWriter.java:51)
	at com.moandjiezana.toml.ValueReaders.convert(ValueReaders.java:23)
	at com.moandjiezana.toml.InlineTableValueReader.read(InlineTableValueReader.java:33)
	at com.moandjiezana.toml.ValueReaders.convert(ValueReaders.java:23)
	at com.moandjiezana.toml.TomlParser.run(TomlParser.java:49)
	at com.moandjiezana.toml.Toml.read(Toml.java:138)
	at org.ballerinalang.toml.parser.ManifestProcessor.parseTomlContentFromString(ManifestProcessor.java:107)
	at org.ballerinalang.toml.ManifestProcessorTest.testSingleDependencies(ManifestProcessorTest.java:135)

3:

java.lang.AssertionError: expected [path/to/github.balo] but found [path\to\github.balo]
	at org.testng.Assert.fail(Assert.java:96)
	at org.testng.Assert.failNotEquals(Assert.java:776)
	at org.testng.Assert.assertEqualsImpl(Assert.java:137)
	at org.testng.Assert.assertEquals(Assert.java:118)
	at org.testng.Assert.assertEquals(Assert.java:453)
	at org.testng.Assert.assertEquals(Assert.java:463)
	at org.ballerinalang.toml.TomlFileToManifestTest.testTomlFile(TomlFileToManifestTest.java:61)
@hemikak hemikak added Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/TestFailure Intermittent build failures caused due to given test failure labels Feb 10, 2020
@IrushiL IrushiL added this to To do in Sprint 6 - Dev Tools via automation Mar 3, 2020
@IrushiL IrushiL moved this from To do to In progress in Sprint 6 - Dev Tools Mar 3, 2020
@IrushiL IrushiL moved this from In progress to PR Sent in Sprint 6 - Dev Tools Mar 6, 2020
@hevayo hevayo added this to To do in Sprint 7 - Dev Tools via automation Mar 23, 2020
@hevayo hevayo removed this from PR Sent in Sprint 6 - Dev Tools Mar 23, 2020
@hevayo hevayo added this to To do in Sprint 8 - Dev Tools via automation Apr 6, 2020
@hevayo hevayo removed this from To do in Sprint 7 - Dev Tools Apr 6, 2020
@pramodya1994 pramodya1994 added the Points/2 Equivalent to two days effort label Apr 6, 2020
@pramodya1994 pramodya1994 moved this from To do to PR sent in Sprint 8 - Dev Tools Apr 17, 2020
@praveennadarajah praveennadarajah added this to In progress in Sprint 9 - Dev Tools Apr 21, 2020
@azinneera azinneera added this to To do in Sprint 10 - Dev Tools via automation May 4, 2020
@azinneera azinneera removed this from In progress in Sprint 9 - Dev Tools May 4, 2020
@azinneera azinneera moved this from To do to PR Sent in Sprint 10 - Dev Tools May 11, 2020
@Ibaqu Ibaqu added this to To do in Sprint 11 - Dev Tools via automation May 15, 2020
@Ibaqu Ibaqu moved this from To do to PR Sent in Sprint 11 - Dev Tools May 15, 2020
@Ibaqu Ibaqu removed this from PR Sent in Sprint 11 - Dev Tools May 15, 2020
@Ibaqu Ibaqu added this to To do in Sprint 11 - Dev Tools via automation May 15, 2020
@Ibaqu Ibaqu moved this from To do to PR Sent in Sprint 11 - Dev Tools May 15, 2020
@hevayo hevayo removed this from PR Sent in Sprint 10 - Dev Tools May 15, 2020
@Ibaqu Ibaqu added this to To do in Sprint 12 - Dev Tools via automation May 29, 2020
@Ibaqu Ibaqu removed this from PR Sent in Sprint 11 - Dev Tools May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/TOMLParser TOML parser related issues Points/2 Equivalent to two days effort Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug Type/TestFailure Intermittent build failures caused due to given test failure
Projects
No open projects
Development

No branches or pull requests

5 participants