Closed kaos closed 1 year ago
Is there something to clean up to start fresh.. in case I have gotten into a broken state?
Well, so, you in particular are an interesting user here. Forgetting the immediate context and focusing on just Pants:
alias = CliAlias.from_dict(alias_dict)
File "/Users/andreas.stenius/Library/Caches/nce/b85e31749a229329c058bb98bd5875ae0621ebe38e6e15f1fb89631f449cc327/bindings/venvs/2.12.1/lib/python3.9/site-packages/pants/option/alias.py", line 79, in from_dict
definitions = {key: tuple(shlex.split(value)) for key, value in aliases.items()}
...
File "/Users/andreas.stenius/Library/Caches/nce/64dc7e1013481c9864152c3dd806c41144c79d5e9cd3140e185c6a5060bdc9ab/cpython-3.9.15+20221106-aarch64-apple-darwin-install_only.tar.gz/python/lib/python3.9/shlex.py", line 140, in read_token
nextchar = self.instream.read(1)
AttributeError: 'dict' object has no attribute 'read'
Do you have .pants.rc
or some other similar config that might have CLI alias definitions not compatible with Pants 2.12 / exposing an old bug?
To answer your question though, no. I've never seen anything like this at all and neither has the Mac ARM CI job.
This is Python; so the easiest debug step is to modify the py file in the nce cache directly to print the CLI alias dict just prior to stacktrace. That should help move things forward. Just don't forget to blow away (that portion of) the nce when all debugging is done.
IOW: scie-pants is just executing pants
from a venv it built earlier under the nce. You can experiment and debug in that venv directly.
Thanks for the pointers @jsirois
Indeed I have custom aliases in a ~/.pants.rc
file. I did notice this was in the vicinity of cli aliases, but didn't connect (too late at night again?). Also the issue reported by the unexpected tools.pex checksum had me thinking my setup could be borked.
I'll dig into this 👍🏽
Ok, great. FWIW the checksum issue is well known and fully understood: https://github.com/pantsbuild/scie-pants/issues/2
This was caused by my ~/.pants.rc
having configuration that was incompatible with pants 2.12.
Adding PANTS_PANTSRC=False
globally for all smoke tests in #75
I have some issue running the tests as below.
This on current
main
4f06c9de4e99e667bacde43c6367accd930b7013