Skip to content

Instantly share code, notes, and snippets.

Eric Arellano Eric-Arellano

Block or report user

Report or block Eric-Arellano

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Eric-Arellano
Eric-Arellano / contextutil_results.txt
Created Jun 4, 2019
Performance of V2 Pytest runner, showing that the requirements PEX causes ~75% of the performance cost.
View contextutil_results.txt
./pants --no-v1 --v2 test tests/python/pants_test/util:contextutil
time elapsed for pex download: 0.01029515266418457
time elapsed for getting closure: 0.04847383499145508
time elapsed for requirements pex: 8.583088159561157
time elapsed for sources: 0.009785652160644531
time elapsed for __init__: 0.01706719398498535
time elapsed for merging files: 0.0031499862670898438
time elapsed for pytest: 2.261147975921631
total elapsed time: 10.933007955551147
@Eric-Arellano
Eric-Arellano / d.diff
Last active May 16, 2019
V2 test O(t + b) memory consumption, where t is # targets and b is # of BUILD files
View d.diff
diff --git a/3rdparty/python/requirements.txt b/3rdparty/python/requirements.txt
index e50da50f4..c76c110a9 100644
--- a/3rdparty/python/requirements.txt
+++ b/3rdparty/python/requirements.txt
@@ -10,6 +10,7 @@ fasteners==0.14.1
faulthandler==2.6 ; python_version<'3'
future==0.17.1
futures==3.0.5 ; python_version<'3'
+objgraph
Markdown==2.1.1
View Leftover in handles
size: 1056, obj: <class 'pants.engine.fs.Digest'>
size: 1056, obj: <class 'pants.engine.fs.Snapshot'>
size: 1056, obj: <class 'pants.engine.fs.FileContent'>
size: 1056, obj: <class 'abc.Collection.of(FileContent)'>
size: 1056, obj: <class 'pants.engine.isolated_process.FallibleExecuteProcessResult'>
size: 493, obj: b'============================= test session starts ==============================\nplatform darwin -- Python 3.6.8, pytest-3.6.4, py-1.8.0, pluggy-0.7.1\nrootdir: /Users/eric/DocsLocal/code/projects/pants/.pants.d/process-executionBU0vrV, inifile:\nplugins: cov-2.4.0, timeout-1.2.1\ncollected 5 items\n\npants_test/util/test_strutil.py ..... [100%]\n\n=========================== 5 passed in 0.04 seconds ===========================\n'
size: 1022, obj: b"# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).\n# Licensed under the Apache License, Version 2.0 (see LICENSE).\n\n# see/edit requirements.txt in this directory to change deps.\npython_requiremen
View inconsistent-list-wc.txt
16:33:50 [INFO] setting up service <pants.pantsd.service.fs_event_service.FSEventService object at 0x1116f82b0>
16:33:50 [INFO] setting up service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10fca4ef0>
16:33:50 [INFO] watching invalidating files: ('contrib/avro/src/python/pants/__init__.py', 'contrib/avro/src/python/pants/__init__.pyc', 'contrib/avro/src/python/pants/__pycache__/__init__.cpython-36.pyc', 'contrib/avro/src/python/pants/__pycache__/__init__.cpython-37.pyc', 'contrib/avro/src/python/pants/contrib/__init__.py', 'contrib/avro/src/python/pants/contrib/__init__.pyc', 'contrib/avro/src/python/pants/contrib/__pycache__/__init__.cpython-36.pyc', 'contrib/avro/src/python/pants/contrib/__pycache__/__init__.cpython-37.pyc', 'contrib/avro/src/python/pants/contrib/avro/BUILD', 'contrib/avro/src/python/pants/contrib/avro/__init__.py', 'contrib/avro/src/python/pants/contrib/avro/__init__.pyc', 'contrib/avro/src/python/pants/contrib/avro/__pycache__/__init__.cpython-36.pyc', 'contrib/a
View ci-failure_after_focused-logging.txt
14:00:17 00:14 [pytest]
Invalidated 19 targets.
scrubbed PYTHONPATH=/Users/eric/DocsLocal/code/projects/pants/src/python: from py.test environment
14:00:17 00:14 [run]
.......................................... [ 18%]
.......................................... [ 37%]
.......................................... [ 56%]
.......................................... [ 75%]
....................................F..... [ 94%]
............. [100%]
View ci-failure_before_verbose-logging.txt
20:14:16 00:16 [pytest]
Invalidated 19 targets.
scrubbed PYTHONPATH=/Users/eric/DocsLocal/code/projects/pants/src/python: from py.test environment
20:14:16 00:16 [run]
============== test session starts ===============
platform darwin -- Python 3.6.8, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /Users/eric/.pyenv/versions/3.6.8/bin/python3.6
cachedir: .pants.d/.pytest_cache
rootdir: /Users/eric/DocsLocal/code/projects/pants/.pants.d, inifile: /Users/eric/DocsLocal/code/projects/pants/.pants.d/test/pytest-prep/CPython-3.6.8/ef674d9b47ad4c4617aa75e878049022ce988507/pytest.ini
plugins: cov-2.4.0, timeout-1.2.1
collecting ... collected 223 items
View isort.py
#!/usr/bin/env python3
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import argparse
import re
import subprocess
from typing import List
from common import die
View .travis.yml with multiline osx env
# GENERATED, DO NOT EDIT!
# To change, edit build-support/travis/travis.yml.mustache and run
# ./pants --quiet run build-support/travis:generate_travis_yml > .travis.yml
#
# Tip: Copy the generated `.travis.yml` into https://yamlvalidator.com to validate the YAML
# and see how the entries resolve to normalized JSON (helpful to debug anchors).
# Conditions are documented here: https://docs.travis-ci.com/user/conditions-v1
View clang failure
Running bdist_wheel --py-limited-api cp36 against /Users/eric/DocsLocal/code/projects/pants/dist/pantsbuild.pants-1.14.0rc0**** Failed to install pantsbuild.pants-1.14.0rc0 (caused by: NonZeroExit("received exit code 1 during execution of `['/Users/eric/DocsLocal/code/projects/pants/build-support/pants_dev_deps.py36.venv/bin/python3', '-', 'bdist_wheel', '--py-limited-api', 'cp36']` while trying to execute `['/Users/eric/DocsLocal/code/projects/pants/build-support/pants_dev_deps.py36.venv/bin/python3', '-', 'bdist_wheel', '--py-limited-api', 'cp36']`",)
):
stdout:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.6
creating build/lib.macosx-10.14-x86_64-3.6/pants
copying src/pants/version.py -> build/lib.macosx-10.14-x86_64-3.6/pants
View setup.py
# DO NOT EDIT THIS FILE -- AUTOGENERATED BY PANTS
# Target: src/python/pants:pants-packaged
from setuptools import setup
setup(**{
'name': 'pantsbuild.pants',
'version': '1.14.0.dev3',
'description': 'A scalable build tool for large, complex, heterogeneous repos.',
You can’t perform that action at this time.