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
View fail_to_exit
00:22:51:023 [INFO] setting up service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10f59fcc0>
00:22:51:031 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {".pids/pantsd", ".pids"}
00:22:51:032 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {".pids/pantsd", ".pids/pantsd/socket_pailgun"}
00:22:51:032 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {".pids/pantsd", ".pids/pantsd/socket_pailgun"}
00:22:51:198 [INFO] watching invalidation patterns: ('src/python/pants/bin', 'src/python/pants/bin/**', 'src/python', 'src/python/**', 'build-support/virtualenvs/Darwin/pants_dev_deps.py36.venv/lib/python36.zip', 'build-support/virtualenvs/Darwin/pants_dev_deps.py36.venv/lib/python36.zip/**', 'build-support/virtualenvs/Darwin/pants_dev_deps.py36.venv/lib/python3.6', 'build-support/virtualenvs/Darwin/pants_dev_deps.py36.venv/lib/python3.6/**', 'build-support/virtualenvs/Darwin/pants_dev_deps.py36.venv/lib/python3.6/lib-dynload', 'build-support/virtua
View fmt_issue_pantsd.log
This file has been truncated, but you can view the full file.
01:43:19 [INFO] setting up service <pants.pantsd.service.fs_event_service.FSEventService object at 0x10be24dd8>
01:43:19 [INFO] setting up service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10be24be0>
View fmt_issue_pantsd.log
This file has been truncated, but you can view the full file.
01:43:19 [INFO] setting up service <pants.pantsd.service.fs_event_service.FSEventService object at 0x10be24dd8>
01:43:19 [INFO] setting up service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10be24be0>
View fmt_issue_pantsd.log
This file has been truncated, but you can view the full file.
01:43:19 [INFO] setting up service <pants.pantsd.service.fs_event_service.FSEventService object at 0x10be24dd8>
01:43:19 [INFO] setting up service <pants.pantsd.service.scheduler_service.SchedulerService object at 0x10be24be0>
View travis_pem_files
/usr/share/gnupg/sks-keyservers.netCA.pem
/usr/local/lib/python2.7/dist-packages/pip/_vendor/certifi/cacert.pem
/usr/local/lib/python2.7/dist-packages/mercurial/dummycert.pem
/usr/lib/python3/dist-packages/certifi/cacert.pem
/usr/lib/python3/dist-packages/twisted/internet/test/fake_CAs/chain.pem
/usr/lib/python3/dist-packages/twisted/internet/test/fake_CAs/thing2-duplicate.pem
/usr/lib/python3/dist-packages/twisted/internet/test/fake_CAs/thing2.pem
/usr/lib/python3/dist-packages/twisted/internet/test/fake_CAs/thing1.pem
/usr/lib/python3/dist-packages/twisted/test/server.pem
/usr/lib/python2.7/dist-packages/certifi/cacert.pem
@Eric-Arellano
Eric-Arellano / build_file_manipulator.py
Created May 19, 2020
This changes the `load()` method to take a `Union[str, PurePath]`, rather than a `BuildFile`.
View build_file_manipulator.py
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import ast
import logging
import re
import sys
from difflib import unified_diff
from pathlib import Path
View pantsd
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
python3.6 75354 eric cwd DIR 1,4 576 161999338 /Users/eric/DocsLocal/code/projects/example-python
python3.6 75354 eric txt REG 1,4 3090676 167368416 /Users/eric/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.GO6Suw/install/bin/python3.6
python3.6 75354 eric txt REG 1,4 20092 142852806 /Users/eric/.pyenv/versions/3.6.10/lib/python3.6/lib-dynload/_heapq.cpython-36m-darwin.so
python3.6 75354 eric txt REG 1,4 23140 167381867 /Users/eric/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.GO6Suw/install/lib/python3.6/site-packages/pywatchman/bser.cpython-36m-darwin.so
python3.6 75354 eric txt REG 1,4 8192 164274847 /Users/eric/.cache/pants/lmdb_store/files/0/lock.mdb
python3.6 75354 eric txt REG 1,4 8192 164274850 /User
@Eric-Arellano
Eric-Arellano / target.py
Created Mar 12, 2020
Target API - AsyncField
View target.py
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from abc import ABC, ABCMeta, abstractmethod
from dataclasses import dataclass
from typing import Any, ClassVar, Dict, Iterable, List, Optional, Tuple, Type, TypeVar, Union, cast
from pants.engine.objects import union
from pants.engine.rules import UnionMembership
from pants.util.collections import ensure_str_list
View target.py
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from abc import ABC, ABCMeta, abstractmethod
from dataclasses import dataclass
from typing import Any, ClassVar, Dict, Iterable, List, Optional, Tuple, Type, TypeVar, Union, cast
from pants.engine.objects import union
from pants.engine.rules import UnionMembership
from pants.util.collections import ensure_str_list
@Eric-Arellano
Eric-Arellano / target.py
Last active Mar 12, 2020
Target API - new design to add custom fields
View target.py
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from abc import ABC, ABCMeta, abstractmethod
from dataclasses import dataclass
from typing import Any, ClassVar, Iterable, List, Optional, Tuple, Type, Union, cast
from pants.engine.objects import union
from pants.engine.rules import UnionMembership
from pants.util.collections import ensure_str_list
You can’t perform that action at this time.