proud-dentist-22844
12/17/2022, 3:12 AMwide-midnight-78598
12/17/2022, 3:16 AMproud-dentist-22844
12/17/2022, 3:16 AMwide-midnight-78598
12/17/2022, 3:16 AMwide-midnight-78598
12/17/2022, 3:21 AMwide-midnight-78598
12/17/2022, 3:24 AMwide-midnight-78598
12/17/2022, 3:26 AMfrom pants.core.util_rules import system_binaries
from pants.engine.fs import rules as fs_rules
return RuleRunner(
rules=[
...
*system_binaries.rules(),
*fs_rules,
...
Or.. maybe it was *archive_rules() from from pants.core.util_rules.archive import rules as archive_rules which imports system binarieswide-midnight-78598
12/17/2022, 3:28 AMproud-dentist-22844
12/17/2022, 3:32 AMFunnily enough, I was going to open a discussion, or thread about this same problem. I'm curious what the use case for specifying rules in the test rule runner (but not exporting them from the production rules.py) isIn my code or in the core pants code?
wide-midnight-78598
12/17/2022, 3:34 AMwide-midnight-78598
12/17/2022, 3:34 AMproud-dentist-22844
12/17/2022, 3:36 AMwide-midnight-78598
12/17/2022, 3:37 AMproud-dentist-22844
12/17/2022, 3:37 AMPexFromTargetsRequest -> VenvPex? And the target it is using is not in the pants-plugins resolve?wide-midnight-78598
12/17/2022, 3:38 AMwide-midnight-78598
12/17/2022, 3:38 AMwide-midnight-78598
12/17/2022, 3:39 AMfrom pants.backend.python.util_rules.pex import rules as pex_rulesproud-dentist-22844
12/17/2022, 3:39 AMwide-midnight-78598
12/17/2022, 3:40 AMwide-midnight-78598
12/17/2022, 3:41 AMfrom pants.backend.python import target_types_rules
target_type_rules.rules()proud-dentist-22844
12/17/2022, 3:42 AMwide-midnight-78598
12/17/2022, 3:43 AMproud-dentist-22844
12/17/2022, 3:43 AMproud-dentist-22844
12/17/2022, 3:43 AMwide-midnight-78598
12/17/2022, 3:44 AMproud-dentist-22844
12/17/2022, 3:45 AMwide-midnight-78598
12/17/2022, 3:45 AMproud-dentist-22844
12/17/2022, 3:45 AMwide-midnight-78598
12/17/2022, 3:46 AMwide-midnight-78598
12/17/2022, 3:47 AMproud-dentist-22844
12/17/2022, 3:47 AMwide-midnight-78598
12/17/2022, 3:47 AMproud-dentist-22844
12/17/2022, 3:48 AMproud-dentist-22844
12/17/2022, 3:49 AM./pants test pants-plugins/schemasproud-dentist-22844
12/17/2022, 3:49 AMwide-midnight-78598
12/17/2022, 3:53 AMproud-dentist-22844
12/17/2022, 3:55 AMwide-midnight-78598
12/17/2022, 3:55 AMwide-midnight-78598
12/17/2022, 3:57 AMwide-midnight-78598
12/17/2022, 4:01 AMwide-midnight-78598
12/17/2022, 4:19 AMwide-midnight-78598
12/17/2022, 4:24 AMQueryRule(FmtResult, (GenerateSchemasViaFmtTargetsRequest,)),
Which is a bit weirdproud-dentist-22844
12/17/2022, 4:25 AMwide-midnight-78598
12/17/2022, 4:25 AMproud-dentist-22844
12/17/2022, 4:27 AMwide-midnight-78598
12/17/2022, 4:28 AMwide-midnight-78598
12/17/2022, 4:47 AMproud-dentist-22844
12/17/2022, 4:48 AMwide-midnight-78598
12/17/2022, 4:49 AMwide-midnight-78598
12/17/2022, 4:52 AMwide-midnight-78598
12/17/2022, 4:52 AMwide-midnight-78598
12/17/2022, 4:52 AMproud-dentist-22844
12/17/2022, 4:52 AMwide-midnight-78598
12/17/2022, 5:04 AMfield_set.sources?wide-midnight-78598
12/17/2022, 5:13 AMfrom pants.backend.python.util_rules import pex_from_targets
*pex_from_targets.rules(),wide-midnight-78598
12/17/2022, 5:14 AMproud-dentist-22844
12/17/2022, 5:39 AMproud-dentist-22844
12/17/2022, 5:43 AMPexFromTargetsRequest in the tests is failing. I suspect that's because those targets are in a different resolve.proud-dentist-22844
12/17/2022, 5:44 AMwide-midnight-78598
12/17/2022, 5:48 AM