enough-analyst-54434
03/19/2021, 3:44 PMtrace = await Get(Trace, Here())
print(f"At {here}")
And have a rendering of the stack of rules that are suspended waiting on the current (Here()
) rule.witty-crayon-22786
03/19/2021, 7:25 PMfast-nail-55400
03/20/2021, 11:50 PMbored-art-40741
03/21/2021, 2:39 AMcoursier fetch
, which returns me a report on which jars were fetched and the absolute paths where they were fetched. They're fetched into a subdir of global_options.options.named_caches_dir
. But now I want to gather up only the jars that were relevant to this resolve into a Digest
where the jars have been flattened out (or at least have the named cache prefix trimmed off). AFAICT the only way to do this would be with PathGlobs
, but it only works on paths relative to the build root. Is there some other way to capture arbitrary files from known locations on disk into a Digest
?bored-art-40741
03/21/2021, 5:47 PMWorkspace
is. Is this like a hermetic temp directory made for each rule execution, or process invocation? Based on poking around at code, I'm having trouble deciding whether it's just for interacting with the equivalent of dist/
, (i.e. "repo global"), or if it's a sandbox for hermetizing task activityhundreds-father-404
03/22/2021, 8:26 PM4210c6c9dece3ff6d0c00b318b880bd6050c3e96
resulted in ./pants lint
hanging with Black, Flake8, and Docformatter - it doesn't finish execution.
Could someone please try running ./pants lint src/python/pants/util/strutil.py --no-process-execution-use-local-cache --no-pantsd
?hundreds-father-404
03/23/2021, 4:24 AM--no-process-execution-cleanup-local-dirs
to be --no-process-execution-cleanup
? If we ever wanted something like that for RE, I imagine it would be --no-remote-execution-cleanup
Motivation is to make it less painful to type, given that this is so useful to debug. In fact, we might want to suggest both --print-stacktrace
and --no-process-execution-cleanup
upon Pants errors?hundreds-father-404
03/23/2021, 4:27 AM--no-process-execution-use-local-cache
to --no-local-cache
, or --no-process-execution-local-cache
if that's too little contextwitty-crayon-22786
03/23/2021, 4:56 PMhundreds-father-404
03/23/2021, 6:46 PMrm -rf .pids && ./pants
on main
and see how long it takes for the scheduler to initialize? It's taking 8 seconds for me, which seems like a perf regression. But 2.4.0.dev1 is still taking me 5 seconds 👀curved-television-6568
03/25/2021, 1:53 PM~/src/.../
$ /private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/process-executionQXCoGY/pylint_runner.pex --version
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/process-executionQXCoGY/pylint_runner.pex/__main__.py", line 74, in <module>
File "/private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/process-executionQXCoGY/pylint_runner.pex/__main__.py", line 31, in __maybe_run_venv__
File "/private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/process-executionQXCoGY/pylint_runner.pex/.bootstrap/pex/variables.py", line 689, in venv_dir
File "/private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/process-executionQXCoGY/pylint_runner.pex/.bootstrap/pex/variables.py", line 687, in add_pex_path_items
File "/private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/process-executionQXCoGY/pylint_runner.pex/.bootstrap/pex/pex_info.py", line 99, in from_pex
FileNotFoundError: [Errno 2] No such file or directory: 'pylint.pex/PEX-INFO'
~/src/.../
$ cd /private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/process-executionQXCoGY
/private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/process-executionQXCoGY
$ ls
__plugins pylint.pex pylint_runner.pex_bin_python_shim.sh requirements.pex
__run.sh pylint_runner.pex pylint_runner.pex_pex_shim.sh src
/private/var/folders/8j/c8jf_msj009947wyw82xvdkw0000gn/T/process-executionQXCoGY
$ ./pylint_runner.pex --version
pylint 2.7.2
...
happy-kitchen-89482
03/26/2021, 6:02 PMstatler:[~/src/pants][fix_urls]$ RUST_BACKTRACE=1 ./pants
10:56:30.54 [INFO] initializing scheduler...
10:56:30.98 [ERROR] panic at 'called `Result::unwrap()` on an `Err` value: PyErr { ptype: <class 'AttributeError'>, pvalue: Some("module 'pants.util.docutil' has no attribute 'docs_url'"), ptraceback: None }', src/externs/mod.rs:265
10:56:30.98 [ERROR] Please set RUST_BACKTRACE=1, re-run, and then file a bug at <https://github.com/pantsbuild/pants/issues>.
10:56:30.98 [INFO] Filesystem changed during run: retrying `ResolvedPluginDistributions` in 500ms...
10:56:31.49 [ERROR] panic at 'called `Result::unwrap()` on an `Err` value: PyErr { ptype: <class 'AttributeError'>, pvalue: Some("module 'pants.util.docutil' has no attribute 'docs_url'"), ptraceback: None }', src/externs/mod.rs:265
10:56:31.49 [ERROR] Please set RUST_BACKTRACE=1, re-run, and then file a bug at <https://github.com/pantsbuild/pants/issues>.
10:56:31.49 [INFO] Filesystem changed during run: retrying `ResolvedPluginDistributions` in 500ms...
10:56:31.99 [ERROR] panic at 'called `Result::unwrap()` on an `Err` value: PyErr { ptype: <class 'AttributeError'>, pvalue: Some("module 'pants.util.docutil' has no attribute 'docs_url'"), ptraceback: None }', src/externs/mod.rs:265
10:56:31.99 [ERROR] Please set RUST_BACKTRACE=1, re-run, and then file a bug at <https://github.com/pantsbuild/pants/issues>.
10:56:32.00 [INFO] Filesystem changed during run: retrying `ResolvedPluginDistributions` in 500ms...
10:56:32.50 [ERROR] panic at 'called `Result::unwrap()` on an `Err` value: PyErr { ptype: <class 'AttributeError'>, pvalue: Some("module 'pants.util.docutil' has no attribute 'docs_url'"), ptraceback: None }', src/externs/mod.rs:265
...
happy-kitchen-89482
03/26/2021, 6:02 PMfast-nail-55400
03/27/2021, 8:02 PMbored-art-40741
03/28/2021, 6:13 PMDigest
of a downloaded jar. It would be useful if I could inform the engine of that relationship so that later resolves, with different inputs and therefore different keys, could still take advantage of that coor -> Digest
relationship and potentially avoid refetchingbored-art-40741
03/28/2021, 6:15 PMfetch_single_coordinate(coord: MavenCoord) -> Digest
, except I just tell the engine to act as though that rule has executed and give it both the input and the outputbored-art-40741
03/28/2021, 6:17 PMbored-art-40741
03/28/2021, 9:36 PMFileDigest
from a file within a Digest
or Snapshot
? I see I can get FileContent
, but I don't actually need the bytes of the file, just the fingerprintbusy-vase-39202
03/30/2021, 12:16 AMbored-art-40741
04/01/2021, 12:04 AM20:03:30.47 [ERROR] panic at 'called `Result::unwrap()` on an `Err` value: "Field `content` was not convertible to type alloc::vec::Vec<u8>: PyErr { ptype: <class \'TypeError\'>, pvalue: Some(\'an integer is required (got type str)\'), ptraceback: None }"', src/intrinsics.rs:354
20:03:30.47 [ERROR] Please set RUST_BACKTRACE=1, re-run, and then file a bug at <https://github.com/pantsbuild/pants/issues>.
20:03:30.47 [INFO] Filesystem changed during run: retrying `@rule(pants.backend.experimental.jvm.goals.coursier_resolve.coursier_generate_lockfile)` in 500ms...
happy-kitchen-89482
04/02/2021, 1:09 AMhappy-kitchen-89482
04/02/2021, 1:17 AMhappy-kitchen-89482
04/02/2021, 1:18 AMhundreds-father-404
04/02/2021, 5:12 AM--norc
option? I'm very concerned about the risk of ~/.shellcheckrc breaking reproducibility, which is a core objective of Pants to providehappy-kitchen-89482
04/02/2021, 5:15 AMhundreds-father-404
04/02/2021, 7:41 AM.sh
file at src/sh/foo.sh
and it sources src/sh/dep.sh
, would you expect to do source dep.sh
or source src/sh/dep.sh
?
I don't think there would be an equivalent to PYTHONPATH, beyond maybe cd-ing into the source root?average-vr-56795
04/02/2021, 11:45 AMaverage-vr-56795
04/02/2021, 1:10 PMPantsEnvironment
- I'll bump the deprecation for now, but looks like someone should push a new plugin 🙂enough-analyst-54434
04/02/2021, 2:10 PMhundreds-father-404
04/02/2021, 5:22 PM