-
-
Notifications
You must be signed in to change notification settings - Fork 808
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 update dev
fails when not ptrace-d on GitHub CI
#6030
Comments
xmake update dev
fails to run when not ptrace-d on GitHub ubuntu-22.04
.xmake update dev
fails when not ptrace-d on GitHub ubuntu-22.04
.
xmake update dev
fails when not ptrace-d on GitHub ubuntu-22.04
.xmake update dev
fails when not ptrace-d on GitHub CI
Similar failure mode on |
Why do not use https://github.com/xmake-io/github-action-setup-xmake on ci?
Please do not call xmake update will call the xmake subprocess in the background to update itself. There will be a delay of 1-2 seconds, which does not block the update. |
I did not know about that action, so thank you. It is, unfortunately, GitHub specific, and we use other CI engines as well. As such, concerning
the general rule of thumb for UNIX commands, as opposed to daemons, is that when they return to the shell, all processing has finished. Would you consider making that the default or at least a (Failing that, I'm tempted to appeal to something like Linux's |
It needs to replace the xmake binary itself, so xmake needs to exit first. you can call |
In addition, your problem should not be related to it, because the previous xmake was installed through apt, which is installed in the /usr directory, and it cannot support Only xmake installed through If you use apt/xmake to call Otherwise apt/xmake will still be used. xmake update dev
source ~/.xmake/profile Or you can refer https://github.com/waruqi/dockerfiles/blob/master/ubuntu/Dockerfile , if you are using docker |
I have worked around this issue in our GH CI with
That's not necessarily true. While
Yes, especially in the case of writing entirely new files to entirely new directories, there's no need for
I understand that, that's unrelated to the failure observed, and we made sure to prune the apt-installed |
At least for github ci, you can use it to simplify your ci configuration. |
Xmake Version
v2.9.7+dev.686b414
Operating System Version and Architecture
GitHub CI ubuntu-22.04
Describe Bug
xmake update dev
completes its own installation when run understrace
(and so is beingptrace()
-d), but does not when not being carefully observed, omitting several files, apparently at random, from~/.local
in the latter case.I have no idea what's going on, and I would not believe me if I were telling me this. However, I'm not making this up, and the effect is consistent across a large number of runs tried so far. The only difference between https://github.com/nwf/cheriot-rtos/actions/runs/12575210568 (failure) and https://github.com/nwf/cheriot-rtos/actions/runs/12575263084 (success) is the absence (resp. presence) of
strace -e file -f -o /dev/null
on line 35 of the failing workflow file (resp. the successful one).(This was originally found using the CHERIoT devcontainer in CI; see https://github.com/nwf/cheriot-rtos/actions/runs/12575072524 (success) and https://github.com/nwf/cheriot-rtos/actions/runs/12575106471 (failure), where again the difference is just a
strace -f -o /dev/null
on line 31 of the workflow file).)Expected Behavior
xmake update dev
should install all of its filesProject Configuration
n/a
Additional Information and Error Logs
Please see logs of the referenced CI jobs. I am unable to reproduce this failure locally.
The text was updated successfully, but these errors were encountered: