<div dir="ltr">I wouldn't expect it to be the case in a CI environment but I believe a umask can be overridden if the filesystem is mounted and configured with acls set?  (oh, hah, Ivan just said the same thing)<div><br></div><div>-gps</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 30, 2019 at 9:05 AM Steve Dower <<a href="mailto:steve.dower@python.org">steve.dower@python.org</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">On 29Mar.2019 1944, Steve Dower wrote:<br>
> On 29Mar.2019 1939, Cameron Simpson wrote:<br>
>> Can you get a branch into your pipeline? Then you could just hack the<br>
>> tarfile test with something quick and dirty like:<br>
>><br>
>>    pid = os.getpid()<br>
>>    system("strace -p %d 2>/path/to/strace.out &" % pid)<br>
>>    time.sleep(2)   # get strace heaps of time to start<br>
>><br>
>> just before the tarfile open. A ghastly hack but it would get you<br>
>> debugging info. You could even decide to remove the strace.out file if<br>
>> the umask issue doesn't show, if it is erratic (can't see why it would<br>
>> be though).<br>
> <br>
> Perfect, I'll give this a go. Thanks!<br>
<br>
I set up a PR to collect this trace and the results are at:<br>
<a href="https://github.com/python/cpython/pull/12625" rel="noreferrer" target="_blank">https://github.com/python/cpython/pull/12625</a><br>
<br>
However, I suspect it's a non-result:<br>
<br>
umask(022)                              = 022<br>
open("/home/vsts/work/1/s/build/test_python_5154/@test_5154_tmp-tardir/tmp.tar",<br>
O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 3<br>
write(3, "BZh91AY&SYY{\270\344\0\0\24P\0\300\0\4\0\0\10<br>
\0000\314\5)\246"..., 46) = 46<br>
close(3)                                = 0<br>
stat("/home/vsts/work/1/s/build/test_python_5154/@test_5154_tmp-tardir/tmp.tar",<br>
{st_mode=S_IFREG|0666, st_size=46, ...}) = 0<br>
<br>
Happy to take more suggestions if anyone has them.<br>
<br>
Thanks,<br>
Steve<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/greg%40krypto.org" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/greg%40krypto.org</a><br>
</blockquote></div>