future-oxygen-10553
10/12/2022, 7:55 PM./pants test --force ::
repeatedly, it fails about 3/4 of the time. I have no idea why this is occurring… adding as many output and debugging options as I can from the docs (--print-stacktrace -ldebug --pex-verbosity=9 --keep-sandboxes=always --no-pantsd --no-local-cache
) and comparing logs between successful and failing runs doesn’t turn up anything obvious.
The reason I created this test repo is because in our actual code, I can’t even run the tests due to a dependency inference error:
./pants test ::
15:48:35.48 [ERROR] 1 Exception encountered:
UnownedDependencyError: Pants cannot infer owners for the following imports in the target pants-plugins/pep621/pep621_requirements_test.py:tests:
* .pep621_requirements.PEP621RequirementsTargetGenerator (line: 16)
* .pep621_requirements.rules (line: 16)
If you do not expect an import to be inferrable, add `# pants: no-infer-dep` to the import line. Otherwise, see <https://www.pantsbuild.org/v2.14/docs/troubleshooting#import-errors-and-missing-dependencies> for common problems.
As near I can tell, the configuration between the repos is the same.future-oxygen-10553
10/12/2022, 8:04 PMhappy-kitchen-89482
10/12/2022, 8:15 PMfuture-oxygen-10553
10/12/2022, 9:18 PMhappy-kitchen-89482
10/12/2022, 9:56 PMhappy-kitchen-89482
10/12/2022, 9:57 PMfuture-oxygen-10553
10/13/2022, 1:47 AM--debug-adapter
and connecting via VSCode, the tests passed every time I tried (maybe 5 times). Obviously, those runs there’s a much longer time taken for the test to run as I’m stepping through… I wonder if time piece is related?happy-kitchen-89482
10/13/2022, 6:55 AMtags=('another-tag', 'jupyter', 'jupyter')
vs tags=('another-tag', 'jupyer')
happy-kitchen-89482
10/13/2022, 6:56 AMjupyter
tag is wronghappy-kitchen-89482
10/13/2022, 6:56 AMfuture-oxygen-10553
10/13/2022, 12:12 PMfuture-oxygen-10553
10/13/2022, 12:18 PMbacked_package
then it has this failure mode. If I comment out the plugin from backed_packages
, (and adjust BUILD
to be python_requirements
instead of pep621_requirements
), I can’t reproduce any failuresfuture-oxygen-10553
10/13/2022, 12:19 PMfuture-oxygen-10553
10/13/2022, 12:23 PMhappy-kitchen-89482
10/13/2022, 2:52 PMfuture-oxygen-10553
10/13/2022, 4:15 PMhappy-kitchen-89482
10/13/2022, 4:54 PMhappy-kitchen-89482
10/13/2022, 4:55 PMhappy-kitchen-89482
10/13/2022, 4:55 PMfuture-oxygen-10553
10/13/2022, 5:59 PMfuture-oxygen-10553
10/13/2022, 6:03 PMfuture-oxygen-10553
10/13/2022, 8:15 PMhappy-kitchen-89482
10/13/2022, 10:06 PM