hundreds-breakfast-49010
12/09/2019, 7:50 PMLineOriented
provided both a print_stdout
and print_stderr
function, but now the stderr variant is gone?hundreds-father-404
12/09/2019, 8:32 PMhundreds-breakfast-49010
12/09/2019, 9:25 PMhundreds-breakfast-49010
12/10/2019, 1:51 AMConsole
type is fully compatible with --v2-ui, we're going to have to consider it an abstraction violation to use print
in any @rule
hundreds-breakfast-49010
12/10/2019, 1:51 AMhundreds-breakfast-49010
12/10/2019, 1:54 AMprint
in v2-related python codehundreds-father-404
12/10/2019, 2:46 AMhundreds-breakfast-49010
12/10/2019, 3:16 AMhundreds-breakfast-49010
12/10/2019, 3:19 AMhundreds-breakfast-49010
12/10/2019, 10:05 PMwitty-crayon-22786
12/10/2019, 10:38 PMwitty-crayon-22786
12/10/2019, 10:39 PM@rules
might occupy time between processes, and to render them when processes aren't executingwitty-crayon-22786
12/10/2019, 10:42 PMhundreds-breakfast-49010
12/11/2019, 12:40 AMMultiPlatformExecuteProcessRequest
and the `Platform`/`PlatformConstraint` types?red-balloon-89377
12/11/2019, 4:48 PM./pants test tests/python/pants_test/backend/project_info/tasks:test_export_dep_as_jar
which has 10-15 unit tests, at some point I start getting Exception: Could not initialize store for process cache: "Error making env for store at \"/private/var/folders/rm/zwytnntn5013gslf3xlv31rc0000gp/T/tmp6y9cz45d/processes/7\": No space left on device
in all the tests, which can only be solve by restarting. Until now, when I just restarted but the problem persisted.
Things that I’ve checked:
• I have plenty of memory left, and I’m not swapping.
• The volume has enough space and inodes left.
• There are no deleted files held by processes.
Any ideas?witty-crayon-22786
12/11/2019, 8:18 PMwitty-crayon-22786
12/11/2019, 8:20 PMwitty-crayon-22786
12/11/2019, 8:20 PMhundreds-breakfast-49010
12/11/2019, 10:48 PM22:28:54 [INFO] computed 1 nodes in 3.122364 seconds. there are 20961 total nodes.
is configured?hundreds-breakfast-49010
12/11/2019, 10:48 PMaloof-angle-91616
12/11/2019, 10:49 PMsrc/python/pants/engine/scheduler.py
, line 427witty-crayon-22786
12/11/2019, 10:51 PMhundreds-breakfast-49010
12/12/2019, 1:58 AMwitty-crayon-22786
12/12/2019, 2:30 AM@union
class FormattablePythonType:
pass
@dataclass
class BlackTarget:
target: HydratedTarget
@dataclass
class IsortTarget:
target: HydratedTarget
def rules():
return [
UnionRule(FormattablePythonType, BlackTarget),
UnionRule(FormattablePythonType, IsortTarget),
]
def my_python_formatting_rule(...) -> FormatResult:
"""This is an aggregator that allows multiple python formatters to coexist.
TODO: It's not common to need to do this for sideeffects, but it will be common for linting.
"linters for type" feels like a thing that can be accomplished with (possibly nested) unions?
# ... need to filter by relevant to this target type
await MultiGet[LintResult](LintableType, linter.cls(target) for target in targets for linters in union_membership.members(LintableType))
"""
sources = my_python_target...sources
for member in union_membership.members(FormattablePythonTypes):
result = await Get[FormatResult](FormattablePythonTypes, member.cls(sources))
sources = result.directory_digest
stdout_so_far = result.stdout
return FormatResult(sources)
aloof-angle-91616
12/12/2019, 7:27 PMaloof-angle-91616
12/12/2019, 7:28 PMwitty-crayon-22786
12/12/2019, 7:43 PMrecc
, which is the tool that the Bloomberg folks made?witty-crayon-22786
12/12/2019, 7:44 PMgoma
client has a daemon, the line is blurry)aloof-angle-91616
12/12/2019, 7:51 PMwitty-crayon-22786
12/12/2019, 8:01 PM