ripe-magazine-21370
04/07/2025, 10:38 PMbazel-remote-cache ) sufficient to mitigate most of the pain?fierce-truck-19259
04/07/2025, 11:19 PMbazel-remote-cache happily from github action runners. Caching on GitHub can be problematic depending on your workspace size, it tends to get rate limited fairly easily.fierce-truck-19259
04/07/2025, 11:22 PMfierce-truck-19259
04/07/2025, 11:28 PMripe-magazine-21370
04/08/2025, 12:01 AMfierce-truck-19259
04/08/2025, 12:02 AMripe-magazine-21370
04/08/2025, 12:02 AMripe-magazine-21370
04/08/2025, 12:03 AMfierce-truck-19259
04/08/2025, 12:10 AMripe-magazine-21370
04/08/2025, 1:59 AMpants package . Is my only option at this point to either a) self-host GH runners, or b) set up BuildBarn/Buildfarm/BuildGrid? Which of the 3 Build* options should I choose? This is pretty new for me and I'm not sure what pros/cons of each are.fierce-truck-19259
04/08/2025, 5:19 AMripe-magazine-21370
04/08/2025, 5:36 AMsome-insurance-58590
04/08/2025, 6:38 PMbrainy-parrot-55558
05/26/2025, 3:01 PM14:58:29.70 [INFO] waiting for pantsd to start...
14:58:30.11 [INFO] pantsd started
14:58:30.83 [INFO] Initializing scheduler...
Error: 0.88 [ERROR] Could not initialize store for cache: "Error making env for store at \"/home/runner/.cache/pants/lmdb_store/cache/2\": Cannot allocate memory"
@some-insurance-58590 did you have any problems during the setup?
the remote cache was easy to setup (seems to):
- name: Configure access to Namespace
run: |
nsc pants cache setup --pants-toml=/tmp/pants.toml
- name: Install Pants
uses: pantsbuild/actions/init-pants@v8
with:
gha-cache-key: v1
named-caches-hash: ${{ hashFiles('python-default.lock') }}
pants-ci-config: "['pants.toml', '/tmp/pants.toml']"brainy-parrot-55558
05/26/2025, 3:32 PMsome-insurance-58590
05/26/2025, 3:36 PM- uses: namespacelabs/nscloud-setup@v0
- name: Set up cache
uses: namespacelabs/nscloud-cache-action@v1
with:
path: |
~/.cache/nce
~/.cache/pants/named_caches/
- name: Install Pants
run: |
bin/get-pants.sh
- name: Setup remote Pants (Bazel) cache
run: |
nsc pants cache setup --pants-toml=$GITHUB_WORKSPACE/pants.cache.toml
- name: Configure pants to also use pants.ci.toml
run: |
echo "PANTS_CONFIG_FILES=['$GITHUB_WORKSPACE/pants.toml','$GITHUB_WORKSPACE/pants.ci.toml','$GITHUB_WORKSPACE/pants.cache.toml']" >> $GITHUB_ENVbrainy-parrot-55558
05/26/2025, 3:38 PMsome-insurance-58590
05/26/2025, 3:39 PMbin/get-pants.sh comes from here - https://www.pantsbuild.org/stable/docs/getting-started/installing-pants
(following the advice on that page for checking it in to the repo)brainy-parrot-55558
05/26/2025, 3:39 PMbrainy-parrot-55558
05/26/2025, 3:50 PMnamed-caches-hash: ${{ hashFiles('python-default.lock') }}. Didn't you?some-insurance-58590
05/26/2025, 3:50 PMbrainy-parrot-55558
05/26/2025, 4:03 PMError: 1.58 [ERROR] Could not initialize store for cache: "Error making env for store at \"/home/runner/.cache/pants/lmdb_store/cache/2\": Cannot allocate memory"
Traceback (most recent call last):
File "/home/runner/.cache/nce/244e442a2bba37173b243362ceb6a425f667e7d22b86fab91862cdbfdc540ebb/bindings/venvs/2.26.0/lib/python3.11/site-packages/pants/bin/daemon_pants_runner.py", line 132, in single_daemonized_run
scheduler, options_initializer = self._core.prepare(options_bootstrapper, complete_env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.cache/nce/244e442a2bba37173b243362ceb6a425f667e7d22b86fab91862cdbfdc540ebb/bindings/venvs/2.26.0/lib/python3.11/site-packages/pants/pantsd/pants_daemon_core.py", line 174, in prepare
self._initialize(
File "/home/runner/.cache/nce/244e442a2bba37173b243362ceb6a425f667e7d22b86fab91862cdbfdc540ebb/bindings/venvs/2.26.0/lib/python3.11/site-packages/pants/pantsd/pants_daemon_core.py", line 117, in _initialize
raise e
File "/home/runner/.cache/nce/244e442a2bba37173b243362ceb6a425f667e7d22b86fab91862cdbfdc540ebb/bindings/venvs/2.26.0/lib/python3.11/site-packages/pants/pantsd/pants_daemon_core.py", line 107, in _initialize
self._scheduler = EngineInitializer.setup_graph(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.cache/nce/244e442a2bba37173b243362ceb6a425f667e7d22b86fab91862cdbfdc540ebb/bindings/venvs/2.26.0/lib/python3.11/site-packages/pants/init/engine_initializer.py", line 198, in setup_graph
return EngineInitializer.setup_graph_extended(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.cache/nce/244e442a2bba37173b243362ceb6a425f667e7d22b86fab91862cdbfdc540ebb/bindings/venvs/2.26.0/lib/python3.11/site-packages/pants/init/engine_initializer.py", line 341, in setup_graph_extended
scheduler = Scheduler(
^^^^^^^^^^
File "/home/runner/.cache/nce/244e442a2bba37173b243362ceb6a425f667e7d22b86fab91862cdbfdc540ebb/bindings/venvs/2.26.0/lib/python3.11/site-packages/pants/engine/internals/scheduler.py", line 236, in __init__
self._py_scheduler = native_engine.scheduler_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Could not initialize store for cache: "Error making env for store at \"/home/runner/.cache/pants/lmdb_store/cache/2\": Cannot allocate memory"
Use -ldebug for more logs.
See <https://www.pantsbuild.org/2.26/docs/using-pants/troubleshooting-common-issues> for common issues.
Consider reaching out for help: <https://www.pantsbuild.org/community/getting-help>
Thank you for your help, Dansome-insurance-58590
05/26/2025, 4:19 PMbrainy-parrot-55558
05/26/2025, 4:23 PMsome-insurance-58590
05/26/2025, 4:24 PM