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

CI: The Job LPython CI / Check Release build (pull_request) seems flaky #2162

Closed
Shaikh-Ubaid opened this issue Jul 15, 2023 · 7 comments
Closed

Comments

@Shaikh-Ubaid
Copy link
Collaborator

Shaikh-Ubaid commented Jul 15, 2023

@Smit-create
Copy link
Collaborator

Can you describe the exact issue? or point to failure? Rarely, it fails because of some issues on the GH actions side.

@Shaikh-Ubaid
Copy link
Collaborator Author

Can you describe the exact issue? or point to failure? Rarely, it fails because of some issues on the GH actions side.

I updated the description of this issue.

@Shaikh-Ubaid
Copy link
Collaborator Author

The job Check Release build passed in the third run attempt. Something does not seem right. I will explore more about this.

@certik
Copy link
Contributor

certik commented Jul 21, 2023

The failure seems different though:

make[2]: *** [CMakeFiles/modules_02_FAST.dir/build.make:74: modules_02_FAST.o] Illegal instruction (core dumped)
make[1]: *** [CMakeFiles/Makefile2:2838: CMakeFiles/modules_02_FAST.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

and

Test project /home/runner/work/lpython/lpython
    Start 1: test_stacktrace
1/2 Test #1: test_stacktrace ..................   Passed    0.00 sec
    Start 2: test_lpython
2/2 Test #2: test_lpython .....................***Exception: Illegal  0.13 sec

and (3x):

make[2]: *** [CMakeFiles/array_03_decl_FAST.dir/build.make:74: array_03_decl_FAST.o] Illegal instruction (core dumped)
make[1]: *** [CMakeFiles/Makefile2:568: CMakeFiles/array_03_decl_FAST.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

But all three failures seem to be caused by the lpython compiler executing some illegal instruction. That typically happens with the Release mode is compiled to a newer architecture than it runs, quite common at a CI. I think we just need to lower the optimization options, perhaps keep -O3, but remove -march=native or something like that.

@Shaikh-Ubaid
Copy link
Collaborator Author

I think the original failure is

2/2 Test #2: test_lpython .....................***Exception: Illegal  0.13 sec

This was previously not being caught because bash would not fail even if there was a failure. Therefore, the CI was failing at a later point when running reference tests.

Since #2194, the above 2/2 Test #2: test_lpython .....................***Exception: Illegal 0.13 sec is always caught now and appropriately fails.

@Shaikh-Ubaid
Copy link
Collaborator Author

The release build seems to fail too often. I request review of #2212 at the earliest convenience. If in case it does not fix the issue, we can try/find other approaches.

@Shaikh-Ubaid
Copy link
Collaborator Author

Shaikh-Ubaid commented Sep 27, 2023

This issues seems to be fixed. It does not seem to be flaky now.

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

No branches or pull requests

3 participants