silly-queen-7197
01/25/2024, 6:39 PMcurved-manchester-66006
01/25/2024, 6:40 PMsilly-queen-7197
01/25/2024, 6:42 PMwide-midnight-78598
01/25/2024, 6:42 PM—loop
? Or are you getting ‘watch’ changes?
https://www.pantsbuild.org/2.18/reference/global-options#watch_filesystemwide-midnight-78598
01/25/2024, 6:42 PMsilly-queen-7197
01/25/2024, 6:47 PMloop
wide-midnight-78598
01/25/2024, 6:47 PMsilly-queen-7197
01/25/2024, 7:00 PMpants run workflows/src/workflows/scratch.py
and add a new line to the file I get and run the same command again*
18:59:55.87 [INFO] waiting for pantsd to start...
18:59:56.47 [INFO] pantsd started
18:59:56.65 [INFO] Initializing scheduler...
19:00:00.96 [INFO] Scheduler initialized.
...
silly-queen-7197
01/25/2024, 7:03 PMsilly-queen-7197
01/25/2024, 7:04 PMwaiting for pantsd to start...
a lot moresilly-queen-7197
01/25/2024, 7:58 PMpants.log
19:58:11.15 [ERROR] saw filesystem changes covered by invalidation globs: SnapshotDiff(our_unique_files=(), our_unique_dirs=(), their_unique_files=(), their_unique_dirs=(), changed_files=('workflows/src/workflows/scratch.py',)). terminating the daemon.
19:58:11.34 [ERROR] service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x7f9274528fd0>.
19:58:11.34 [INFO] Waiting for ongoing runs to complete before exiting...
19:58:11.34 [INFO] Server exiting with Ok(())
19:58:11.34 [INFO] Waiting for Sessions to complete before exiting...
19:58:11.34 [INFO] Waiting for shutdown of: ["scheduler_service_session", "store_gc_service_session", "pants_run_2024_01_25_19_56_44_326_8e9fc3c653014b43bf40a975e4ad5beb", "pants_run_2024_01_25_19_57_47_372_6333bcb072a34666bc8a66e3041da35d"]
19:58:11.34 [INFO] Shutdown completed: "scheduler_service_session"
19:58:11.34 [INFO] Shutdown completed: "store_gc_service_session"
19:58:11.34 [INFO] Shutdown completed: "pants_run_2024_01_25_19_56_44_326_8e9fc3c653014b43bf40a975e4ad5beb"
19:58:11.34 [INFO] Shutdown completed: "pants_run_2024_01_25_19_57_47_372_6333bcb072a34666bc8a66e3041da35d"
19:58:11.34 [INFO] Exiting pantsd
wide-midnight-78598
01/25/2024, 8:32 PMsilly-queen-7197
01/25/2024, 9:28 PMpython_sources()
and
local_environment(
name="linux_x86",
compatible_platforms=["linux_x86_64"],
fallback_environment="docker",
)
docker_environment(
name="docker",
platform="linux_x86_64",
image="python:3.10.12-slim-bullseye",
)
at the rootsilly-queen-7197
01/25/2024, 9:29 PMbroad-processor-92400
01/25/2024, 11:22 PMsilly-queen-7197
01/25/2024, 11:27 PM[GLOBAL]
pants_version = "2.18.1"
backend_packages = [
"pants.backend.python",
"pants.backend.docker",
"pants.backend.python.lint.flake8",
"pants.backend.python.lint.black",
]
[anonymous-telemetry]
enabled = false
[python]
enable_resolves = true
interpreter_constraints = ["CPython==3.10.*"]
[environments-preview.names]
linux_x86 = "//:linux_x86"
docker = "//:docker"
[python.resolves]
python-default = "3rdparty/python/default.lock"
[python-infer]
string_imports = true
[python-repos]
indexes.add = ["https://%(env.FURY_AUTH)s:@pypi.fury.io/amlg/"]
[debugpy]
interpreter_constraints = ["CPython==3.10.*"]
install_from_resolve = "python-default"
[pytest]
install_from_resolve = "python-default"
requirements = [
"//3rdparty/python:reqs-dev#pytest",
"//3rdparty/python:reqs-dev#freezegun",
"//3rdparty/python:reqs-dev#pytest-mock",
"//3rdparty/python:reqs-dev#responses",
"//3rdparty/python:reqs-dev#pytest-cov",
"//3rdparty/python:reqs-dev#pytest-django",
]
execution_slot_var = "PANTS_EXECUTION_SLOT"
[export]
py_editable_in_resolve = ["python-default"]
[black]
interpreter_constraints = ["CPython==3.10.*"]
install_from_resolve = "python-default"
requirements = ["//3rdparty/python:reqs-dev#black"]
[flake8]
install_from_resolve = "python-default"
requirements = ["//3rdparty/python:reqs-dev#flake8"]
[docker]
# build_args = ['FURY_AUTH=%(env.FURY_AUTH)s', 'INSTALL_DEV=1']
tailor = false
build_args = ["PROJECT=i-amlg-dev", "DEFAULT_TAG=dummy"]
# <https://www.pantsbuild.org/docs/docker#docker-authentication>
env_vars = ["DOCKER_CONFIG=%(homedir)s/.docker","DOCKER_DEFAULT_PLATFORM=linux/amd64"]
tools = [
"docker-credential-gcloud",
"dirname",
"readlink",
"python3",
# These may be necessary if using Pyenv-installed Python.
"cut",
"sed",
"bash",
]
[repl]
shell = "ipython"
[subprocess-environment]
env_vars = [
'GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1',
'GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1',
'GRPC_BUILD_WITH_BORING_SSL_ASM=',
]
[pex-cli]
version = "v2.1.159"
known_versions =[
'v2.1.159|macos_arm64|83c3090938b4d276703864c34ba50bcb3616db0663c54b56dd0521a668d9555f|3671772',
'v2.1.159|macos_x86_64|83c3090938b4d276703864c34ba50bcb3616db0663c54b56dd0521a668d9555f|3671772',
'v2.1.159|linux_x86_64|83c3090938b4d276703864c34ba50bcb3616db0663c54b56dd0521a668d9555f|3671772',
'v2.1.159|linux_arm64|83c3090938b4d276703864c34ba50bcb3616db0663c54b56dd0521a668d9555f|3671772',
]
silly-queen-7197
01/26/2024, 1:42 AM[]
?wide-midnight-78598
01/26/2024, 2:40 AMrun
(e.g. fmt/test/lint/fix?)
• Is it a problem on either 2.18.0 or the new 2.19's?silly-queen-7197
01/26/2024, 5:57 PMtest
. I'm running 2.18 but I tried downgrading to 2.17 and experienced the same problem.
It also seems to be triggered by changing any file.
I notice logs like 17:52:59.28 [DEBUG] Dependency Snapshot(!*.pyc, !__pycache__/, .gitignore, pants.toml, pants.toml/**, project_1/src/, project_2/src/) of Some("Snapshot") changed.
Is this snapshot supposed to be all of my source code? (FYI I changed some directory names)silly-queen-7197
01/26/2024, 6:02 PM17:52:59.28 [DEBUG] computed 1 nodes in 0.016150 seconds. there are 385 total nodes.
17:52:59.28 [ERROR] saw filesystem changes covered by invalidation globs: SnapshotDiff(our_unique_files=(), our_unique_dirs=(), their_unique_files=(), their_unique_dirs=(), changed_files=('recommended-for-you/src/recommended_for_you/listener.py',)). terminating the daemon.
17:52:59.90 [ERROR] service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x7f12f25b2e20>.
happy-kitchen-89482
01/26/2024, 10:51 PMsilly-queen-7197
01/26/2024, 10:59 PMwide-midnight-78598
01/26/2024, 11:14 PMsilly-queen-7197
01/26/2024, 11:24 PMsilly-queen-7197
01/26/2024, 11:32 PMsilly-queen-7197
01/26/2024, 11:34 PMrm -fr .pids/ .pants.d/ ~/.cache/pants/ ~/.cache/nce/
doesn't helpsilly-queen-7197
01/26/2024, 11:46 PM15:43:56.46 [DEBUG] notify invalidating {"archipelago/src/archipelago/__main__.py"} because of Modify(Data(Content))
15:43:56.46 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"archipelago/src/archipelago/__main__.py"}
15:43:56.46 [DEBUG] notify invalidating {"archipelago/src/archipelago/__main__.py"} because of Modify(Data(Content))
15:43:56.46 [INFO] notify invalidation: cleared 1 and dirtied 24 nodes for: {"archipelago/src/archipelago/__main__.py"}
15:43:56.91 [DEBUG] Launching 1 roots (poll=true).
15:43:57.36 [INFO] Extending leases
15:43:57.38 [INFO] Done extending leases
but on linux
23:47:34.02 [DEBUG] notify invalidating {"archipelago/src/archipelago/__main__.py"} because of Modify(Data(Any))
23:47:34.02 [INFO] notify invalidation: cleared 1 and dirtied 26 nodes for: {"archipelago/src/archipelago/__main__.py"}
23:47:34.02 [DEBUG] notify invalidating {"archipelago/src/archipelago/__main__.py"} because of Modify(Data(Any))
23:47:34.02 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"archipelago/src/archipelago/__main__.py"}
23:47:34.02 [DEBUG] notify invalidating {"archipelago/src/archipelago/__main__.py"} because of Modify(Data(Any))
23:47:34.02 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"archipelago/src/archipelago/__main__.py"}
23:47:34.02 [DEBUG] notify invalidating {"archipelago/src/archipelago/__main__.py"} because of Modify(Data(Any))
23:47:34.02 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"archipelago/src/archipelago/__main__.py"}
23:47:34.02 [DEBUG] Dependency DigestFile(archipelago/src/archipelago/__main__.py) of Some("Snapshot(!*.pyc, !__pycache__/, .gitignore, archipelago/src, archipelago/src/**, pants.toml, pants.toml/**, [[[[ I deleted a bunch of directories in here. Nothing confidential, I just didn't mean to share them ]]]]])") changed.
23:47:34.03 [DEBUG] notify invalidating {"archipelago/src/archipelago", "archipelago/src/archipelago/__main__.py"} because of Access(Close(Write))
23:47:34.03 [INFO] notify invalidation: cleared 2 and dirtied 425 nodes for: {"archipelago/src/archipelago", "archipelago/src/archipelago/__main__.py"}
23:47:34.03 [DEBUG] notify invalidating {"archipelago/src/archipelago", "archipelago/src/archipelago/__main__.py"} because of Access(Close(Write))
23:47:34.03 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"archipelago/src/archipelago", "archipelago/src/archipelago/__main__.py"}
23:47:34.03 [DEBUG] Dependency Snapshot(!*.pyc, !__pycache__/, .gitignore, archipelago/src, archipelago/src/**, pants.toml, pants.toml/**, [[[[ I deleted a bunch of directories in here. Nothing confidential, I just didn't mean to share them ]]]]] ) of Some("Snapshot") changed.
23:47:34.03 [DEBUG] computed 1 nodes in 0.357482 seconds. there are 2884 total nodes.
23:47:34.03 [ERROR] saw filesystem changes covered by invalidation globs: SnapshotDiff(our_unique_files=(), our_unique_dirs=(), their_unique_files=(), their_unique_dirs=(), changed_files=('archipelago/src/archipelago/__main__.py',)). terminating the daemon.
23:47:34.53 [ERROR] service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x7fca983d9be0>.
silly-queen-7197
01/26/2024, 11:54 PM23:47:34.02 [DEBUG] Dependency DigestFile(archipelago/src/archipelago/__main__.py) of Some("Snapshot(!*.pyc, !__pycache__/, .gitignore, archipelago/src, archipelago/src/**, pants.toml, pants.toml/**, [[[[ I deleted a bunch of directories in here. Nothing confidential, I just didn't mean to share them ]]]]])") changed.
also "notify invalidation: cleared 2 and dirtied 425 nodes" is strange. Seems like its doing a lotsilly-queen-7197
01/27/2024, 12:51 AMwide-midnight-78598
01/27/2024, 12:53 AMsilly-queen-7197
01/27/2024, 12:53 AMwide-midnight-78598
01/27/2024, 12:54 AMwide-midnight-78598
01/27/2024, 12:55 AMwide-midnight-78598
01/27/2024, 12:55 AMsilly-queen-7197
01/27/2024, 12:56 AMpants_ignore_use_gitignore = false
as deleting my .gitignore seemed to make it work sometimes kindasilly-queen-7197
01/27/2024, 12:56 AMwide-midnight-78598
01/27/2024, 12:57 AMwide-midnight-78598
01/27/2024, 12:57 AMsilly-queen-7197
01/27/2024, 12:58 AMwide-midnight-78598
01/27/2024, 12:59 AMwide-midnight-78598
01/27/2024, 12:59 AMsilly-queen-7197
01/27/2024, 1:00 AMsilly-queen-7197
01/27/2024, 1:00 AMsilly-queen-7197
01/27/2024, 1:01 AMsilly-queen-7197
01/27/2024, 1:02 AMpants.d/pants.log
I can see it crash when I save a file
On mac I don't see anything like
01:01:13.49 [DEBUG] Dependency Snapshot(!*.pyc, !__pycache__/, .gitignore, archipelago/src, archipelago/src/**, capstan
wide-midnight-78598
01/27/2024, 1:07 AMsilly-queen-7197
01/27/2024, 1:08 AMsilly-queen-7197
01/27/2024, 1:11 AMsilly-queen-7197
01/27/2024, 1:21 AMsilly-queen-7197
01/27/2024, 1:26 AM[ERROR] service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x7fca983d9be0>
I was thinking I could try
PANTS_SOURCE=../pants
and setting a break point somehowsilly-queen-7197
01/27/2024, 1:29 AMPANTS_FROM_SOURCE=../pants pants --version
to make sure its working?silly-queen-7197
01/27/2024, 1:36 AM../pants/pants ...
. Looks like you have to set --no-pantsd
if you want to use PANTS_DEBUG=1
though. So no idea how i'd debug thissilly-queen-7197
01/27/2024, 1:44 AM../pants/pants -ldebug run archipelago/src/archipelago/__main__.py
silly-queen-7197
01/27/2024, 1:48 AM../pants/pants -ldebug run archipelago/src/archipelago/__main__.py
when I change a file I get
01:47:27.89 [DEBUG] notify invalidating {"archipelago/src/archipelago/__main__.py"} because of Modify(Data(Any))
01:47:27.89 [INFO] notify invalidation: cleared 1 and dirtied 24 nodes for: {"archipelago/src/archipelago/__main__.py"}
01:47:27.89 [DEBUG] notify invalidating {"archipelago/src/archipelago/__main__.py"} because of Modify(Data(Any))
01:47:27.89 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"archipelago/src/archipelago/__main__.py"}
01:47:27.89 [DEBUG] notify invalidating {"archipelago/src/archipelago/__main__.py"} because of Modify(Data(Any))
01:47:27.89 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"archipelago/src/archipelago/__main__.py"}
01:47:27.89 [DEBUG] notify invalidating {"archipelago/src/archipelago/__main__.py"} because of Modify(Data(Any))
01:47:27.89 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"archipelago/src/archipelago/__main__.py"}
01:47:27.89 [DEBUG] notify invalidating {"archipelago/src/archipelago/__main__.py", "archipelago/src/archipelago"} because of Access(Close(Write))
01:47:27.89 [INFO] notify invalidation: cleared 1 and dirtied 423 nodes for: {"archipelago/src/archipelago/__main__.py", "archipelago/src/archipelago"}
01:47:27.89 [DEBUG] notify invalidating {"archipelago/src/archipelago", "archipelago/src/archipelago/__main__.py"} because of Access(Close(Write))
01:47:27.89 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"archipelago/src/archipelago", "archipelago/src/archipelago/__main__.py"}
and 0 errorssilly-queen-7197
01/31/2024, 6:55 PMsilly-queen-7197
01/31/2024, 7:01 PMpants.toml
file with nothing set except the version and a .env
file.
For whatever reason pants
modifies my sys.path
to include the PYTHONPATH
in the .env
file only one this machine (and other "remote" machines we spin up)silly-queen-7197
01/31/2024, 7:15 PMprojects/debian-cloud/global/images/family/debian-10
silly-queen-7197
02/01/2024, 12:54 AM