<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Xu, Petr,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 22, 2021 at 4:37 PM <a href="mailto:xuyang2018.jy@fujitsu.com">xuyang2018.jy@fujitsu.com</a> <<a href="mailto:xuyang2018.jy@fujitsu.com">xuyang2018.jy@fujitsu.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Petr<br>
> Hi Xu,<br>
><br>
>>> This is not working as expected in Github CI. I'm still looking at the<br>
>>> problem.<br>
>>> <a href="https://github.com/wangli5665/ltp/runs/4602025797?check_suite_focus=true" rel="noreferrer" target="_blank">https://github.com/wangli5665/ltp/runs/4602025797?check_suite_focus=true</a><br>
>> I tested local but it works well. I guess ci fails because of linux user<br>
>> namespace. Maybe we should require CAP_SYS_RESOURCE cap instead of using<br>
>> geteuid.<br>
> Good catch, verifying.<br>
You can refer to my ltp fork<br>
<a href="https://github.com/xuyang0410/ltp/commits/oom_kill_ci_fixes" rel="noreferrer" target="_blank">https://github.com/xuyang0410/ltp/commits/oom_kill_ci_fixes</a></blockquote><div><br></div><div class="gmail_default" style="font-size:small">+1 </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I was thinking of adding the permission but that's</div><div class="gmail_default" style="font-size:small">might not be a good way for the namespace. Like your</div><div class="gmail_default" style="font-size:small">method which only does check and return is better.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>