enough-analyst-54434
11/09/2021, 10:05 PMmelodic-thailand-99227
11/10/2021, 6:58 AMcurved-television-6568
11/10/2021, 9:17 AMancient-vegetable-10556
11/10/2021, 6:18 PMexport
dependencies for Java dep inference ā these are source dependencies that need to be inspected recursively to fulfil a complete type definition for the compiler. I may have some questions about the parsing code at some point, but Iām not certain thereās much to comment on just yet, unless youāve spent any time thinking about it. (cc @witty-crayon-22786)witty-crayon-22786
11/10/2021, 6:33 PMexports
will likely be a second Dependencies
field for jvm targets, which we would also like to infer (cc @ancient-vegetable-10556)fast-nail-55400
11/10/2021, 6:33 PMfast-nail-55400
11/10/2021, 6:48 PMInteractiveProcess
processes actually spawned?curved-television-6568
11/10/2021, 9:19 PMhelpful-jackal-12093
11/11/2021, 3:40 PMpants
. I admit I have a rather large project, and Iām currently using pants
for running python tests. After really not much runs - it seems that the pants
cache becomes rather large, and Iām not sure itās size wise but more quantity wise.
I tried to rm -rf
the directory, that took so much time that I gave up eventually, and used rsync
which took lots of time (tens of minutes).
I decided to run a simple find
on the directory and time it - is this expected?
[devenv2] ~ āÆāÆāÆ time find ~/.cache/pants -type f | wc -l
7333743
noglob find ~/.cache/pants -type f 18.45s user 609.89s system 18% cpu 56:23.34 total
wc -l 1.26s user 1.18s system 0% cpu 56:23.34 total
[devenv2] ~ āÆāÆāÆ
It took a little bit more than 56 minutes to complete
Iām using a MacBook Pro - Intel i5 Quad Core with 16GB Ram on an APPLE SSD running macOS Montereybitter-ability-32190
11/11/2021, 3:50 PM[GLOBAL].stats
logging reports a bunch of 0s on fully-cached re-run of test. Is this expected?
joshuacannon@CEPHANDRIUS:~/work/techlabs$ ./pants test tools/codeowners/gen_codeowners_test.py:tests
09:49:21.50 [INFO] Completed: Run Pytest - tools/codeowners/gen_codeowners_test.py:tests succeeded.
ā tools/codeowners/gen_codeowners_test.py:tests succeeded.
09:49:21.50 [INFO] Counters:
local_cache_read_errors: 0
local_cache_requests: 0
local_cache_requests_cached: 0
local_cache_requests_uncached: 0
local_cache_total_time_saved_ms: 0
local_cache_write_errors: 0
local_execution_requests: 0
local_process_total_time_run_ms: 0
remote_cache_read_errors: 0
remote_cache_requests: 0
remote_cache_requests_cached: 0
remote_cache_requests_uncached: 0
remote_cache_speculation_local_completed_first: 0
remote_cache_speculation_remote_completed_first: 0
remote_cache_total_time_saved_ms: 0
remote_cache_write_attempts: 0
remote_cache_write_errors: 0
remote_cache_write_successes: 0
remote_execution_errors: 0
remote_execution_requests: 0
remote_execution_rpc_errors: 0
remote_execution_rpc_execute: 0
remote_execution_rpc_retries: 0
remote_execution_rpc_wait_execution: 0
remote_execution_success: 0
remote_execution_timeouts: 0
remote_process_total_time_run_ms: 0
remote_store_blob_bytes_downloaded: 0
remote_store_blob_bytes_uploaded: 0
remote_store_missing_digest: 0
fast-nail-55400
11/11/2021, 6:28 PMhundreds-father-404
11/12/2021, 7:46 PMtranslate
from example-python?witty-crayon-22786
11/12/2021, 9:41 PM--loop
for some goals while in a TTY would be neat.bitter-ability-32190
11/12/2021, 10:06 PME ValueError: A target of type PexBinariesFromSourcesGeneratorTarget was proposed at address src/python/foo:pex_binaries with explicit sources main3.py, but this target type does not have a `sources` field.
But in src/python/pants/backend/python/target_types.py
I have:
class PexBinariesFromSourcesGeneratingSourcesField(PythonGeneratingSourcesBase):
...
class PexBinariesFromSourcesGeneratorTarget(Target):
alias = "pex_binaries_from_sources"
core_fields = (
...
PexBinariesFromSourcesGeneratingSourcesField,
)
ancient-vegetable-10556
11/12/2021, 10:50 PM13:46:50.38 [ERROR] Completed: Compile with javac - core/test/com/googlecode/guice/OSGiContainerTest.java:tests failed (exit code 1).
core/test/com/googlecode/guice/OSGiContainerTest.java:138: error: incompatible types: Properties cannot be converted to Map<String,String>
Framework framework = frameworkFactory.newFramework(properties);
^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
I canāt find a version of org.osgi.framework.FrameworkFactory
that every took Properties
as a param, but this seems to live quite happily in the Guice repo. (ping @witty-crayon-22786 @fast-nail-55400)happy-kitchen-89482
11/13/2021, 3:10 PMhappy-kitchen-89482
11/14/2021, 1:01 AMwitty-crayon-22786
11/14/2021, 4:53 AMhundreds-father-404
11/14/2021, 9:45 AMartifacts
entry uses Snapshot
rather than Digest
?melodic-thailand-99227
11/14/2021, 2:26 PMResolving requirements.txt
, we realized that itās because Iām running the code from inside a virtualenv and outside the virtualenv.
I think it would be very useful to know that I switched context explicitly. I thought of something like New env - disgest =
to mark this.witty-crayon-22786
11/14/2021, 7:12 PMcurved-television-6568
11/15/2021, 7:57 AMbitter-ability-32190
11/15/2021, 2:32 PMbitter-ability-32190
11/15/2021, 3:31 PMerror: failed to get `pyo3` as a dependency of package `engine v0.0.1 (/__w/pants/pants/src/rust/engine)`
https://github.com/pantsbuild/pants/runs/4212817534?check_suite_focus=true
on PR: https://github.com/pantsbuild/pants/pull/13611witty-crayon-22786
11/15/2021, 8:30 PMhundreds-father-404
11/16/2021, 12:02 AMpython_source(name="app", source="app.py")
Option 1: project:app
Option 2: project/app.py:app
š§µcurved-television-6568
11/16/2021, 10:17 AMcurved-television-6568
11/16/2021, 2:36 PMwitty-crayon-22786
11/16/2021, 11:46 PMhundreds-father-404
11/17/2021, 12:52 AM