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

Graphql build has been failing intermittently in Windows #37009

Closed
kalaiyarasiganeshalingam opened this issue Jul 8, 2022 · 1 comment
Closed
Assignees
Labels
Area/RuntimeTypeChecker JBallerina runtime type checking related issues Lang/LangLib Related to ballerina/lang.* modules module/file module/graphql Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Task

Comments

@kalaiyarasiganeshalingam
Copy link
Contributor

kalaiyarasiganeshalingam commented Jul 8, 2022

Description:
Graphql build has been failing intermittently due to getting nil value from string arguments. Check the following logs to get the error log.
https://github.com/ballerina-platform/module-ballerina-graphql/runs/7189193929?check_suite_focus=true#step:4:255
https://github.com/ballerina-platform/module-ballerina-graphql/runs/7226165147?check_suite_focus=true#step:4:232

Describe your task(s)
Count is getting from the string argument in the file package and grapql is using this function:

isolated function buildWindowsPath(string... parts) returns string|Error {
    int count = parts.length();
    ....
}

The build fails with the following error from the above coding:

{ballerina}TypeCastError {"message":"incompatible types: '()' cannot be cast to 'long'"}

As per this error message, we have a chance to get this error if the value of the parts is nil. But in graphql, some values of this are hard-coded. So, there is no chance to get nil.

isolated function getGraphQLDocumentFromFile(string fileName) returns string|error {
    string path = check file:joinPath("tests", "resources", "documents", fileName);
    return io:fileReadString(path);
}

And, locally tested the Graphql package on Windows10 but couldn't reproduce this error. So, couldn't find the cause for this build failure.

@warunalakshitha @MaryamZi We want to know if this build is affected by any lang or runtime changes. Can you help us?

@kalaiyarasiganeshalingam kalaiyarasiganeshalingam changed the title Graphql Windows build has been failing intermittently recently Graphql build has been failing intermittently in Windows Jul 10, 2022
@kalaiyarasiganeshalingam kalaiyarasiganeshalingam transferred this issue from ballerina-platform/ballerina-library Jul 14, 2022
@kalaiyarasiganeshalingam kalaiyarasiganeshalingam added Lang/LangLib Related to ballerina/lang.* modules Area/RuntimeTypeChecker JBallerina runtime type checking related issues labels Jul 14, 2022
@MaryamZi MaryamZi removed their assignment Aug 4, 2022
@anupama-pathirage anupama-pathirage added Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime and removed Team/DIU labels Sep 5, 2022
@warunalakshitha
Copy link
Contributor

I am closing this since this behaviour have not seen in recently. Please reopen if you have further queries on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/RuntimeTypeChecker JBallerina runtime type checking related issues Lang/LangLib Related to ballerina/lang.* modules module/file module/graphql Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Task
Projects
None yet
Development

No branches or pull requests

4 participants