hundreds-father-404
06/02/2020, 8:01 PMwitty-crayon-22786
06/02/2020, 8:04 PMlsof -p
for a stable pantsd instance (not because this has anything to do with pantsd, but just because that’s the easiest way to inspect what we use in a stable state), you’ll see about 400 open files, depending on whether pants was loaded from a pex or wheels, or sources, etcwitty-crayon-22786
06/02/2020, 8:05 PMwitty-crayon-22786
06/02/2020, 8:09 PMwitty-crayon-22786
06/02/2020, 8:10 PMStore
.witty-crayon-22786
06/02/2020, 8:12 PMhappy-kitchen-89482
06/02/2020, 8:42 PMulimit -n 10000
in the runner script, at least on macos, since we know with ~certainty that every macos user will encounter this.witty-crayon-22786
06/02/2020, 8:44 PMwitty-crayon-22786
06/02/2020, 8:44 PMwitty-crayon-22786
06/02/2020, 8:46 PMaverage-vr-56795
06/02/2020, 8:53 PMwitty-crayon-22786
06/02/2020, 8:54 PMwitty-crayon-22786
06/02/2020, 8:54 PMfew-alarm-32433
06/02/2020, 10:08 PMfew-alarm-32433
06/02/2020, 10:09 PMechoing-manchester-70122
06/02/2020, 11:46 PMimportant-librarian-62877
06/04/2020, 2:04 AMinterpreter_constraints
to include CPython2.7
2. Adding compatibility to the python_requirement_library like so:
python_requirement_library(
name='futures',
requirements=[python_requirement(name='futures', requirement='futures==3.2.0', compatibility='CPython>=2.7,<3')])
Any suggestions on how to pull that requirement from the python2 repositories or can you point me to some relevant documentation? Thanks in advance 🙂few-alarm-32433
06/04/2020, 7:32 PM15:27:16 00:49 [pyprep]
15:27:16 00:49 [interpreter]
Invalidated 602 targets.
15:27:20 00:53 [build-local-dists]
15:27:20 00:53 [requirements]
Invalidated 149 targets.ERROR: Double requirement given: six<2,>=1.9.0 (already in six==1.15.0, name='six')
happening somewhere in `~/.cache/pants/setup/bootstrap-Darwin-x86_64/1.26.0_py37/lib/python3.7/site-packages/pex/resolver.py”, line 521, in resolve_distributions
I tried making sure the bootstrap’s pip is upgraded 20.1.1, no luck.important-librarian-62877
06/04/2020, 8:13 PMpython_requirement_library
. Within our pants.toml file, we have the following:
[python-repos]
repos = [
"%(buildroot)s/3rdparty/repos"
]
In pants 1.8, that egg file was being picked up from the repos directory, but in 1.28 it is not able to be found. Do I need to specify it some other way?clever-table-90691
06/05/2020, 2:02 PMimportant-librarian-62877
06/06/2020, 12:17 AM00:13:05:335 [DEBUG] pants.engine.internals.scheduler:pid=15743: computed 1 nodes in 1.049953 seconds. there are 12121 total nodes.
00:13:05:357 [ERROR] Build graph construction failed: ExecutionError 1 Exception encountered:
Exception: Snapshot failed: Throw(Error { kind: Io(Os { code: 28, kind: Other, message: "No space left on device" }), paths: [] }, "<pants native internals>")
important-librarian-62877
06/06/2020, 12:39 AMexample_task(
name='compile',
sources=['./**/*'],
output='output.cpython-36m-x86_64-linux-gnu.so',
dependencies=[
'3rdparty:numpy
]
)
In another BUILD file:
python_library(
name='impl',
sources=['cli/*.py'],
dependencies=[
'submodules/plugins/plugins:example_task',
]
)
python_binary(
name='cli',
zip_safe=False,
sources=['cli/cli.py'],
dependencies=[':impl'],
tags={'default-build', 'docker-build'}
)
polite-vase-75369
06/09/2020, 2:03 PM[jar-dependency-management
use_managed
is supposed to work. I “pinned” a version of netty there, and when I use ./pants --resolver-resolver=ivy export --output-file=/tmp/a :app
I see that version. However, when I run ./pants resolve.ivy --open --no-cache-read :app
I see a different, newer version of netty. How do I know which version is actually being used?echoing-manchester-70122
06/09/2020, 7:22 PM[test.pytest]
coverage=auto
echoing-manchester-70122
06/09/2020, 7:23 PMcuddly-window-48195
06/09/2020, 8:49 PMpants binary
goal?happy-kitchen-89482
06/09/2020, 10:12 PMuser
06/10/2020, 4:57 PMbetter-nail-12700
06/10/2020, 7:53 PM.cache
and .pants.d
directories from one CI pipeline to the next. However, we are now facing the issue that the .pants.d
directory regularly grows to 15+GB, which is a lot to download/upload in each CI stage and we are actually running into disk space issues with shared Gitlab runners. Does someone know if there is a way to purge or clean the cache directories without losing the ability to only rebuild the changed projects within the monorepo? We've naively tried to only persist the .cache
directory from one run to the next, however, that lead to every project being rebuilt in every CI run. Any help or input would be appreciated!flat-zoo-31952
06/10/2020, 11:01 PM