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

xmake run/xmake test failing to execute targets in github actions (CI) #4980

Closed
SFGrenade opened this issue Apr 15, 2024 · 14 comments
Closed
Labels
Milestone

Comments

@SFGrenade
Copy link

Xmake Version

2.8.9

Operating System Version and Architecture

Windows Server 2022 10.0.20348

Describe Bug

When running a test target in github ci, it fails to execute but doesn't show any meaningful error.

Expected Behavior

It runs fine

Project Configuration

https://github.com/SFGrenade/MinXmakeProtobufExample/actions/runs/8694739231/job/23844283776#step:16:10

Additional Information and Error Logs

logs: https://github.com/SFGrenade/MinXmakeProtobufExample/actions/runs/8694739231/job/23844283776#step:16:10 and other

@SFGrenade SFGrenade added the bug label Apr 15, 2024
@waruqi
Copy link
Member

waruqi commented Apr 16, 2024

execv(D:\a\MinXmakeProtobufExample\MinXmakeProtobufExample\build\windows\x64\release\MinExample.exe ) failed(-1073741511)

exit code: -1073741511

maybe some dll are missing or other some errors when running MinExample.exe

xmake cannot get more error info.

@SFGrenade
Copy link
Author

SFGrenade commented Apr 16, 2024

exit code: -1073741511

maybe some dll are missing or other some errors when running MinExample.exe

xmake cannot get more error info.

possibly, but that would meant that directly executing the program also would crash, which it doesnt, as seen in the linked workflow.

@waruqi
Copy link
Member

waruqi commented Apr 16, 2024

exit code: -1073741511
maybe some dll are missing or other some errors when running MinExample.exe
xmake cannot get more error info.

possibly, but that would meant that directly executing the program also would crash, which it doesnt, as seen in the linked workflow.

MinExample has crashed.

@SFGrenade
Copy link
Author

SFGrenade commented Apr 16, 2024

exit code: -1073741511
maybe some dll are missing or other some errors when running MinExample.exe
xmake cannot get more error info.

possibly, but that would meant that directly executing the program also would crash, which it doesnt, as seen in the linked workflow.

MinExample has crashed.

only through xmake run, not if called directly.
Screenshot_20240416-161338-349.png

@waruqi
Copy link
Member

waruqi commented Apr 16, 2024

run: 'cd dest/bin/ && MinExample.exe'

try running MinExample.exe in build directory directly. do not use xmake install

maybe some package bin path envs are missing when call xmake run

@SFGrenade
Copy link
Author

https://github.com/SFGrenade/MinXmakeProtobufExample/actions/runs/8708152914/
of course directly in the build directly, in this case, libprotobuf.dll is missing there (for the shared kind windows workflows). oddly enough, only the static release mode windows workflows complete the steps and not the other static mode windows workflows.

@SFGrenade
Copy link
Author

so while testing i just saw that locally xmake adds: C:\Program Files\Microsoft Visual Studio\2022\Community\Team Tools\Performance Tools to path, which i don't see in the CI list of path, though idk what important DLLs there are there

waruqi added a commit that referenced this issue Apr 17, 2024
@waruqi
Copy link
Member

waruqi commented Apr 17, 2024

maybe PATH has been override when call os.execv()

try this patch.

#4986

@SFGrenade
Copy link
Author

gets 404 error on install

@SFGrenade
Copy link
Author

looking at the install action, it doesn't support branches other than dev & master for windows runners

@SFGrenade
Copy link
Author

https://github.com/SFGrenade/MinXmakeProtobufExample/actions/runs/8724763810/job/23936103174#step:14:10
i see that while the lib folders are there, the bin folders (with the DLLs) are missing

@waruqi
Copy link
Member

waruqi commented Apr 18, 2024

Try dev branch, it should work. #4986

https://github.com/waruqi/MinXmakeProtobufExample/actions/runs/8735071173

but you need to wait for this ci is finished, it is building xmake/dev artifacts, then try it again. https://github.com/xmake-io/xmake/actions/runs/8735470154

@waruqi waruqi added this to the v2.9.1 milestone Apr 18, 2024
@waruqi
Copy link
Member

waruqi commented Apr 18, 2024

Does it work now?

@SFGrenade
Copy link
Author

Does it work now?

it does work with also with zmqpb, yes!
many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants