Files
computer-playbook/docs/contributing/customize.md
T
kevinveenbirkenbachandClaude Opus 5.5 21e05b9d42 feat(env): switch the GPU-only tests with INFINITO_TEST_GPU
The two tests that only answer on a GPU host, the logout catalogue translation check and the complete-catalogs integration test, were gated on accelerated() alone: a contributor with an NVIDIA runtime had no way to keep them out of a local gate while the GPU translation run is paused, so every gate on such a host stayed red on them.

INFINITO_TEST_GPU is a new env key. Its handler derives the default from INFINITO_GPU_COUNT: true where the compose services reserve a GPU, false for 0 or none. custom.env is applied after every handler, so `INFINITO_TEST_GPU=false` there switches the tests off on a GPU host; an exported value wins as well. tests/utils/gpu.py reads the flag for both tests, fails on any value other than true or false, and falls back to the same GPU detection only where no .env is loaded, such as a direct pytest run.

The handler joins gpu_count in utils/env/handlers/infinito/gpu/ (count.py, only_tests.py), because two handlers sharing the gpu prefix are a folder by the prefix-grouping lint. The new module avoids a test* name so unittest discovery never collects it. customize.md lists the key among the common overrides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 11:50:26 +01:00

1.1 KiB

Customize 🧩

The generated .env is the single effective configuration source for all tooling. make dotenv composes it from default.env, the environment handlers, and finally your personal custom.env.

custom.env 🗝️

  1. Create custom.env in the repository root (untracked); use default.env as the reference for available keys.
  2. Add only the INFINITO_* keys you want to change.
  3. Run make dotenv.

Values from custom.env are applied last, so they override default.env and every handler-computed value. Keys MUST already be registered (a default in default.env or a handler under utils/env/handlers/); unknown keys fail the env lint.

Common Overrides ⚙️

Key Effect
INFINITO_ALIAS_REPOSITORY Use your own terminal alias repository; see terminal aliases.
INFINITO_SKILLS_REPOSITORY Use your own agent skills repository; make install-skills copies its skills into the project.
INFINITO_TEST_GPU false skips the GPU-only tests on a GPU host. Defaults to true where INFINITO_GPU_COUNT reserves a GPU, else false.