Open TharmiganK opened 1 year ago
The issue is due to a windows exception with the exit code EXCEPTION_ACCESS_VIOLATION (0xc0000005)
during the runtime.
The most possible reason is the high memory usage which causes to exceed the available memory.
I am currently looking into,
The same exact issue is there in the grpc
module as well.
@gayaldassanayake is this happening only in GitHub workflow runner or are you able to reproduce this issue locally?
@gayaldassanayake is this happening only in GitHub workflow runner or are you able to reproduce this issue locally?
Yes the issue is locally reproducible. However the root cause for the windows error code is yet unclear.
@gayaldassanayake is this happening only in GitHub workflow runner or are you able to reproduce this issue locally?
Yes the issue is locally reproducible. However the root cause for the windows error code is yet unclear.
The issue might be because of a failing test case in the std lib module, which causes some unexpected error while running the tests. @gayaldassanayake did you able to figure out which test case causes this issue?
I reported this issue to lang since there is no test report. It might be a std lib issue as well.
@gayaldassanayake is this happening only in GitHub workflow runner or are you able to reproduce this issue locally?
Yes the issue is locally reproducible. However the root cause for the windows error code is yet unclear.
The issue might be because of a failing test case in the std lib module, which causes some unexpected error while running the tests. @gayaldassanayake did you able to figure out which test case causes this issue?
I reported this issue to lang since there is no test report. It might be a std lib issue as well.
@TharmiganK The error might be in generated byte code or standard library side or even in Testerina side (possibly in passing native arguments to native-image, we checked them too, nothing found to be working). In the Testerina runtime, we execute methods within testable jar(which is generated from tests resources) through a java processBuilder, while executing a method ($moduleStart
from $_init
class) the process is terminated by windows. That's why we couldn't get any test reports. we only get the termination code to the main process (EXCEPTION_ACCESS_VIOLATION (0xc0000005)
).
All of the above repos are failing due to EXCEPTION_ACCESS_VIOLATION (0xc0000005)
As per the call in the GraalVM group today,
After some recent changes in GraphQL, the windows native tests is also failing similarly in GraphQL : https://github.com/ballerina-platform/module-ballerina-graphql/actions/runs/4097934000/jobs/7066673197#step:11:433
GraphQL is also failing with the same exit code(EXCEPTION_ACCESS_VIOLATION (0xc0000005)
). https://github.com/Thevakumar-Luheerathan/module-ballerina-graphql/actions/runs/4101524373/jobs/7073399976#step:11:434
The issue seems to be due to the recent changes in the GraphQL side. I checked the a previous commit (def4851d
) with latest master. It passed without any issue.
Hi @Thevakumar-Luheerathan, I was wondering if there is any progress on this issue? Have we been able to identify the root cause of the problem yet?
Hi @Thevakumar-Luheerathan, I was wondering if there is any progress on this issue? Have we been able to identify the root cause of the problem yet?
Hi @MohamedSabthar.. We still couldn't find the exact root cause as it is terminated within $moduleInit()
method(Testerina relies on this generated byte-code method to execute the test functions).Runtime team is working on few improvements regarding non-reproducible loops. As per the discussions, we expect this issue will be resolved with those changes.
Any update on this @Thevakumar-Luheerathan ?
Any update on this @Thevakumar-Luheerathan ?
The fix for this issue for the GraphQL is available on https://github.com/ballerina-platform/ballerina-lang/tree/graalvm-non-reducible-loops branch. Further testing is going on. It will be merged to master Once fix is verified.
I have tested the http test failure related to this issue with non-reducible-loop fix and observed the following:
bal test --native
works without any issue.Link to the codes used for the above testing : https://drive.google.com/drive/folders/1_cD6q1eyWR-mRYM5jdSYfZEG5zZweYYc?usp=sharing
And had a call on these observations with @warunalakshitha and @shafreenAnfar and decided to check further on this:
And since this is even reproducible in a main function, most probably the issue is not related to testerina.
I'm facing the same issue in ubuntu for ballerinax/persist.googlesheets
library for the PR #14 with the same error without generating a test report. The PR was meant to enable test cases with a test:BeforeSuite
method to reset the test google spreadsheet. A std lib issue was also created to track this. Issue #4537
Is this merged now? Can we enable the Windows tests in the GraalVM tests?
Description
In the native test workflows, the windows testing is failing with
error: there are test failures
without any test report.Steps to Reproduce
See the following workflow runners :
Affected Version(s)
Ballerina SwanLake Update 4
OS, DB, other environment details and versions
Windows
Related area
-> Test Framework
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response