Slightly misleading error message (perhaps fixed o...
# development
Slightly misleading error message (perhaps fixed on main, haven’t checked)
Copy code
11:56:51.44 [ERROR] 1 Exception encountered:

  InvalidFieldException: Only fields which will be moved to generated targets may be parametrized, so target generator src/python/... (with type python_sources) cannot parametrize the {'foobar'} field.
as the field doesn’t exist, I think that error should take precedence here 😉 (in my case, I had a typo, which got me looking at this all wrong for a minute 😛 )
👍 1
feel free to open an issue if you don't have time to fix today
👍 1
I have an issue with a pex lockfile test in this PR, and I can’t really figure out why. Seems to be some kind of dependency on the surrounding tests, because if I single out this one test, it works fine (reproduces for me on main):
Copy code
╰─❯ ./pants test --debug src/python/pants/backend/python/util_rules/ -- -vv -k test_lockfiles
======================================================================= test session starts =======================================================================
collected 27 items / 26 deselected / 1 selected

src/python/pants/backend/python/util_rules/ PASSED                                                                               [100%]

================================================================ 1 passed, 26 deselected in 3.21s =================================================================
Where as if I run all tests, it’s stuck on this particular test:
Copy code
╰─❯ ./pants test --debug src/python/pants/backend/python/util_rules/ -- -vv
======================================================================= test session starts =======================================================================
collected 27 items

src/python/pants/backend/python/util_rules/[True-Pex] PASSED                                                                 [  3%]
src/python/pants/backend/python/util_rules/[True-VenvPex] PASSED                                                             [  7%]
src/python/pants/backend/python/util_rules/[False-Pex] PASSED                                                                [ 11%]
src/python/pants/backend/python/util_rules/[False-VenvPex] PASSED                                                            [ 14%]
src/python/pants/backend/python/util_rules/[Pex] PASSED                                                                    [ 18%]
src/python/pants/backend/python/util_rules/[VenvPex] PASSED                                                                [ 22%]
src/python/pants/backend/python/util_rules/[Pex] PASSED                                                              [ 25%]
src/python/pants/backend/python/util_rules/[VenvPex] PASSED                                                          [ 29%]
src/python/pants/backend/python/util_rules/ PASSED                                                                   [ 33%]
src/python/pants/backend/python/util_rules/ PASSED                                                                 [ 37%]
src/python/pants/backend/python/util_rules/ ^CInterrupted by user.
FWIW there's another thread about a hang in pex_test on CI. Might be related?
Thx that's the same one. 👍