average-vr-56795
04/02/2021, 7:11 PMbored-art-40741
04/03/2021, 10:46 PMbored-art-40741
04/03/2021, 10:46 PMfmt
goalhappy-kitchen-89482
04/04/2021, 7:23 AMwarning: src/zlib/gzlib.c:214:15: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration]
warning: (void)snprintf(state->path, len + 1, "%s", (const char *)path);
warning: ^
warning: src/zlib/gzlib.c:214:15: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
warning: 1 error generated.
error: failed to run custom build command for `libz-sys v1.0.25`
Ring any bells?bored-art-40741
04/04/2021, 10:17 PMUnionRule(TestFieldSet, JavaTestFieldSet)
, I somehow indirectly break Python's test rule graph.
No installed rules return the type PythonTestFieldSet, and it was not provided by potential callers of @rule(pants.backend.python.goals.pytest_runner:282:run_python_test(PythonTestFieldSet, TestSubsystem, PyTest) -> TestResult, gets=[Get(TestSetup, TestSetupRequest), Get(FallibleProcessResult, Process), Get(PySnapshot, DigestSubset), Get(PySnapshot, AddPrefix), Get(PySnapshot, RemovePrefix)]).
bored-art-40741
04/04/2021, 10:18 PMJavaTestFieldSet
is a very minimal crib off of PythonTestFieldSet
:
@dataclass(frozen=True)
class JavaTestFieldSet(TestFieldSet):
required_fields = (JavaTestsSources,)
sources: JavaTestsSources
bored-art-40741
04/04/2021, 10:19 PMbored-art-40741
04/04/2021, 10:23 PMhappy-kitchen-89482
04/05/2021, 3:45 PMtest_export.py
fail, both in CI and locally: https://travis-ci.com/github/pantsbuild/pants/jobs/496026410hundreds-father-404
04/06/2021, 12:50 AM//
comments:jolly-midnight-72759
04/06/2021, 1:48 AMoutput-format
to dependencies
goal. Seeking early redirection with a WIP PR.hundreds-father-404
04/06/2021, 6:42 AM--ignore-pants-warnings
expects regex patterns, which can result in surprising behavior like
The optionnot actually ignoring that warning due tois not configured[isort].config
[]
not being escaped.
Are folks using the regex feature? I'd like to simplify with a new option --ignore-warnings
that is normal strings, and deprecate the old one.bored-art-40741
04/07/2021, 12:53 AMFile "/home/patrick/code/pants/src/python/pants/engine/target.py", line 839, in create
address=tgt.address, **_get_field_set_fields_from_target(cls, tgt)
TypeError: __init__() missing 1 required positional argument: 'sources'
bored-art-40741
04/07/2021, 12:54 AM@dataclass(frozen=True)
class JavaTestFieldSet(TestFieldSet):
required_fields = (JavaTestsSources,)
sources: JavaTestsSources
bored-art-40741
04/07/2021, 12:57 AMclass JavaSources(Sources):
expected_file_extensions = (".java",)
class JavaTestsSources(JavaSources):
default = ("*Test.java",)
class JavaTests(Target):
alias = "java_tests"
core_fields = (
*COMMON_TARGET_FIELDS,
Dependencies,
JavaTestsSources,
)
help = "Java tests"
hundreds-father-404
04/07/2021, 8:44 PMException: String("Cannot strip prefix __output from root directory (Digest with hash Fingerprint<bb11eda082823e90c95f959f8b89c6886423521773bb24bb31e8c25454d0740b>) - root directory didn\'t contain a directory named __output but did contain directory named: shellcheck-v0.7.1")
https://github.com/pantsbuild/pants/runs/2291026549#step:9:234
The confusing thing to me is why it's flakypolite-garden-50641
04/08/2021, 8:47 PMhundreds-father-404
04/09/2021, 1:23 AMpex_binary
to venv
, rather than zipapp
? Fwict, it has far fewer gotchas and much better perf for most use cases.
It will require a deprecation cycle to change the default. I can do that if you agreecurved-television-6568
04/09/2021, 8:47 AMpex_binary(name="bin", entry_point="foo.qux.bin:main")
I don’t see that there is a bin.py
file in foo.qux
for the test, and it is not listed in the assert either, so I feel like this should fail.. but seems like it is silently ignored?curved-television-6568
04/09/2021, 6:02 PMwide-energy-11069
04/09/2021, 9:34 PM$ ./pants goals
Building native engine
error: invalid channel name '[toolchain]' in '/Users/yic/workspace/pants_2/rust-toolchain'
info: caused by: invalid toolchain name: '[toolchain]'
Failed to build native engine.
any advice?bored-art-40741
04/10/2021, 7:49 PM__init__
-style docstring at the class level?bored-art-40741
04/10/2021, 9:39 PMappend_only_caches
in my Coursier code, but I'm still not 100% sure what they're supposed to be used forbored-art-40741
04/10/2021, 9:40 PM/// These caches are globally shared and so must be concurrency safe: a consumer of the cache
/// must never assume that it has exclusive access to the provided directory.
bored-art-40741
04/10/2021, 9:41 PMbored-art-40741
04/10/2021, 9:45 PM~/.cache/coursier
) seems equally safe but with hypothetically better cache hits--unless I'm missing something herebored-art-40741
04/10/2021, 11:44 PMQueryRule
. At least, it doesn't have a directly associated QueryRule
the way I wrote it, and I don't think it should have one. It's an intermediate rule and product used by others. Do I just need to stub in a QueryRule
to force the RuleRunner
to have a path from the root query to my rule?bored-art-40741
04/10/2021, 11:57 PMProcess
invocation that I know my rule is going to make?bored-art-40741
04/11/2021, 7:19 PMPyDigest
) not having a ___repr___
on the Python side of things?bored-art-40741
04/11/2021, 7:21 PMDigest
is that the engine is guaranteeing that there's actually a blob to back that up in the DB? Whereas if you can just construct it by hand from a fingerprint and length and pass it around, you might violate some invariant in the engine