This message was deleted.
# general
t
This message was deleted.
g
Copy code
timestamp: 2023-07-08T05:13:43.183791
process title: pantsd [/var/lib/buildkite-agent/builds/buildkite-agent-xxx-xxx-xxx-batches-green-stack-i-xxx-1/xxx/xxx]
sys.argv: ['/var/lib/buildkite-agent/.cache/pants/setup/bootstrap-Linux-x86_64/2.17.0rc1_py39/bin/pants', '--pants-bin-name=./pants', '--pants-version=2.17.0rc1', '--spec-files=changed-files.txt', 'test-selection-method', '--output-file=selection-method.txt']
pid: 32055
Signal 15 (SIGTERM) was raised. Exiting with failure.
  File "/var/lib/buildkite-agent/.cache/pants/setup/bootstrap-Linux-x86_64/2.17.0rc1_py39/bin/pants", line 8, in <module>
    sys.exit(main())
  File "/var/lib/buildkite-agent/.cache/pants/setup/bootstrap-Linux-x86_64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 112, in main
    PantsLoader.main()
  File "/var/lib/buildkite-agent/.cache/pants/setup/bootstrap-Linux-x86_64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 106, in main
    cls.run_alternate_entrypoint(entrypoint)
  File "/var/lib/buildkite-agent/.cache/pants/setup/bootstrap-Linux-x86_64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 84, in run_alternate_entrypoint
    entrypoint_fn()
  File "/var/lib/buildkite-agent/.cache/pants/setup/bootstrap-Linux-x86_64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/pantsd/pants_daemon.py", line 238, in launch_new_pantsd_instance
    daemon.run_sync()
  File "/var/lib/buildkite-agent/.cache/pants/setup/bootstrap-Linux-x86_64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/pantsd/pants_daemon.py", line 211, in run_sync
    time.sleep(self.JOIN_TIMEOUT_SECONDS)
  File "/var/lib/buildkite-agent/.cache/pants/setup/bootstrap-Linux-x86_64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/base/exception_sink.py", line 109, in handle_sigterm
    raise self.SignalHandledNonLocalExit(signum, "SIGTERM")
  File "/var/lib/buildkite-agent/.cache/pants/setup/bootstrap-Linux-x86_64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/base/exception_sink.py", line 94, in __init__
    self.traceback_lines = traceback.format_stack()

Fatal Python error: Aborted

Thread 0x00007fbc3b77f680 (most recent call first):
<no Python frame>
When I check the
.pants.d/pants.log
, I found:
Copy code
05:13:43.23 [ERROR] panic at 'Cannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.', /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.28.0/src/runtime/blocking/shutdown.rs:51
05:13:43.23 [ERROR] Please set RUST_BACKTRACE=1, re-run, and then file a bug at <https://github.com/pantsbuild/pants/issues>.
05:13:43.23 [ERROR] panic at 'A Tokio 1.x context was found, but it is being shutdown.', /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.28.0/src/runtime/time/entry.rs:553
05:13:43.23 [ERROR] Please set RUST_BACKTRACE=1, re-run, and then file a bug at <https://github.com/pantsbuild/pants/issues>.
05:13:43.23 [ERROR] panic at 'panic in a function that cannot unwind', library/core/src/panicking.rs:123
05:13:43.23 [ERROR] Please set RUST_BACKTRACE=1, re-run, and then file a bug at <https://github.com/pantsbuild/pants/issues>.
thread caused non-unwinding panic. aborting.
Also, I’m not sure what this means:
Copy code
05:19:24.58 [DEBUG] notify invalidating {"", "selection-methods"} because of Create(Folder)
05:19:24.87 [DEBUG] Launching 1 roots (poll=true).
05:19:25.53 [INFO] notify invalidation: cleared 1 and dirtied 561633 nodes for: {"", "selection-methods"}
I would like to preserve my previous nodes in CI, but every time it mentioned that the nodes are dirty. I think I got it, need to add this selection-methods into pants ignore.
Had the same issue and reproduced on my mac as well, this is blocking the local cache from being used.
Copy code
Signal 15 (SIGTERM) was raised. Exiting with failure.
  File "/Users/fw/.cache/pants/setup/bootstrap-Darwin-arm64/2.17.0rc1_py39/bin/pants", line 8, in <module>
    sys.exit(main())
  File "/Users/fw/.cache/pants/setup/bootstrap-Darwin-arm64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 112, in main
    PantsLoader.main()
  File "/Users/fw/.cache/pants/setup/bootstrap-Darwin-arm64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 106, in main
    cls.run_alternate_entrypoint(entrypoint)
  File "/Users/fw/.cache/pants/setup/bootstrap-Darwin-arm64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 84, in run_alternate_entrypoint
    entrypoint_fn()
  File "/Users/fw/.cache/pants/setup/bootstrap-Darwin-arm64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/pantsd/pants_daemon.py", line 238, in launch_new_pantsd_instance
    daemon.run_sync()
  File "/Users/fw/.cache/pants/setup/bootstrap-Darwin-arm64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/pantsd/pants_daemon.py", line 211, in run_sync
    time.sleep(self.JOIN_TIMEOUT_SECONDS)
  File "/Users/fw/.cache/pants/setup/bootstrap-Darwin-arm64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/base/exception_sink.py", line 109, in handle_sigterm
    raise self.SignalHandledNonLocalExit(signum, "SIGTERM")
  File "/Users/fw/.cache/pants/setup/bootstrap-Darwin-arm64/2.17.0rc1_py39/lib/python3.9/site-packages/pants/base/exception_sink.py", line 94, in __init__
    self.traceback_lines = traceback.format_stack()