bitter-ability-32190
05/10/2023, 7:06 PMnogil
fork of CPython 3.9.10, and then building the engine with his nogil
fork of PyO3 I see...
A lot of seg faults and other errors. So, we'll have to hold our breath for that one. Presumably, eventually, we'd get a nogil
interpreter we can leverage.hundreds-father-404
05/10/2023, 7:09 PMbitter-ability-32190
05/11/2023, 3:19 PMbitter-ability-32190
05/11/2023, 3:28 PMbrash-accountant-86050
05/11/2023, 4:07 PMbitter-ability-32190
05/11/2023, 7:12 PM$ tree . -L 1
.
├── __filter.py
├── __nbconvert.py
├── notebook.pex
├── notebook.pex_bin_python_shim.sh
├── notebook.pex_pex_shim.sh
├── notebooks
├── __pycache__
├── __run.sh
└── __template.py.j2
3 directories, 6 files
In ./__run.sh
export PEX_MODULE=__nbconvert
cd /tmp/pants-sandbox-EuAiqL
./notebook.pex_pex_shim.sh nbconvert ...
Running it I get
$ ./__run.sh
Traceback (most recent call last):
File "/tmp/pants-sandbox-EuAiqL/.cache/pex_root/venvs/8af8dff5caba8ff4e3555dafecebf663b2d3b550/3ae15bb9525f8e6ffaefc76519921e604f1e7079/pex", line 274, in <module>
runpy.run_module(module_name, run_name="__main__", alter_sys=True)
File "/home/josh/.cache/pants/named_caches/pyenv/44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a/versions/3.8.16/lib/python3.8/runpy.py", line 203, in run_module
mod_name, mod_spec, code = _get_module_details(mod_name)
File "/home/josh/.cache/pants/named_caches/pyenv/44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a/versions/3.8.16/lib/python3.8/runpy.py", line 138, in _get_module_details
raise error("No module named %s" % mod_name)
ImportError: No module named __nbconvert
So the only change I would expect to make a difference is PEX version?enough-analyst-54434
05/11/2023, 7:16 PMwitty-crayon-22786
05/11/2023, 7:20 PMpyo3
upgrade caused wheel building shards to start failing on `main`: e.g. https://github.com/pantsbuild/pants/actions/runs/4943093059/jobs/8837254210bitter-ability-32190
05/11/2023, 8:29 PMmain
into this branch". Since our classifier script requires your branch is within some static number from main
, I suggest we enable this option to make the bring-to-the-present operation simplehappy-kitchen-89482
05/12/2023, 1:51 AMpolite-garden-50641
05/12/2023, 1:46 PMwitty-crayon-22786
05/12/2023, 4:30 PM2.14.x
and 2.15.x
once the ARM shard is healthy again. but i’m going to hold off on 2.16.x
and 2.17.x
releases, since Benjy did/is-doing them in the last few days.
i’ll aim to do a 2.16.0
final early next week, and cut the 2.17.x
branch at the same timebitter-ability-32190
05/12/2023, 5:56 PMwitty-crayon-22786
05/12/2023, 10:28 PMpantsd
crash on the Linux-ARM64 shards on main
, but i am completely out of steam for investigating it today. maybe Monday.happy-kitchen-89482
05/13/2023, 5:04 PMworried-painter-31382
05/15/2023, 7:26 AMbitter-ability-32190
05/15/2023, 3:56 PMpolite-garden-50641
05/15/2023, 5:03 PMwitty-crayon-22786
05/15/2023, 5:17 PMmain
, so test shards currently rebuild the rust code from scratch.bitter-ability-32190
05/15/2023, 6:22 PMCODEOWNERS
is that the codeowner is still there even if reviewers are added. IMO I should've known that in hindsight.
So, I'm starting to be -1 on the change as that wasn't the intent.
Instead I might suggest we:
• Migrate this to a GitHub Action -> "if there are no reviewers on a PR, add X, Y, or Z." Could still make it based on path.
• Add a PR template which in a comment suggests to the PR author to leave it blank if they are unsure and someone will be added automatically
Thoughts?bitter-ability-32190
05/15/2023, 8:18 PMmodules
on python_distribution
and add a FirstPartyPythonMappingImplMarker
union impl?enough-analyst-54434
05/15/2023, 9:40 PMhappy-kitchen-89482
05/15/2023, 11:02 PMcareful-address-89803
05/16/2023, 1:37 PMbitter-ability-32190
05/16/2023, 4:50 PMAdhocProcessRequest
construction specify the shell_command.address.spec
after the command?
https://github.com/pantsbuild/pants/blob/d12d7e2026225159219b21aba159bd0b6c3f8d39/src/python/pants/backend/shell/util_rules/shell_command.py#L147
So it looks like:
run_shell_command(
name = "foo",
command=f"echo hi",
workdir="/",
)
turns into:
/usr/bin/bash -c $'echo hi' $'//:foo'
witty-crayon-22786
05/16/2023, 7:09 PMtowncrier
to concatenate them)proud-dentist-22844
05/17/2023, 3:06 AMFileContent
/ Digest
is similar to git
in that it only preserves the executable bit - the mtime and other bits of file mode are not accounted for.
For some package types (I'm working on rpm/deb/etc), mode and mtime are significant as they are baked into the package. So, I'm trying to think of a sane way to define defaults for mode / mtime, and I'm hoping that some other backend (or pex?) has already had to deal with this and what solution was used.proud-dentist-22844
05/17/2023, 6:04 AMfile_mode
field (for file permissions/mode)?
• int: file_mode=0o644
• str: file_mode="644"
• object: file_mode=perm(u=6, g=4, o=4)
• Something else?
Ultimately this will end up represented as an octal in yaml, when passing it to the underlying app.flat-zoo-31952
05/17/2023, 3:04 PMwitty-crayon-22786
05/17/2023, 5:34 PM