diff --git a/docs/contributing/tools/agents/cheatsheet.md b/docs/contributing/tools/agents/cheatsheet.md index 0f3ad82cfa..abcebf530f 100644 --- a/docs/contributing/tools/agents/cheatsheet.md +++ b/docs/contributing/tools/agents/cheatsheet.md @@ -28,6 +28,7 @@ from its procedure file. Run `make install-skills` to (re)install them. | Running the quality gate (`make quality`) to green | `i8-quality` | | Running the full gate (`make quality-high`: quality plus every lint) to green | `i8-quality-high` | | Cleaning up code, docs, or roles after a change | `i8-refactor` | +| Making CI, a deploy or a gate faster without giving up coverage | `i8-tuner` | | Checking a branch out into a parallel worktree | `i8-worktree-create` | | Releasing a parallel worktree and its slot | `i8-worktree-down` | | Freeing disk space and `/tmp` that agents filled | `i8-cleanup` | diff --git a/roles/sys-svc-container/tasks/00_core/gpu.yml b/roles/sys-svc-container/tasks/00_core/gpu.yml index 892a778cc3..c1412cb46e 100644 --- a/roles/sys-svc-container/tasks/00_core/gpu.yml +++ b/roles/sys-svc-container/tasks/00_core/gpu.yml @@ -20,4 +20,4 @@ msg: "NVIDIA_VISIBLE_DEVICES={{ SYS_SVC_CONTAINER_GPU_DEVICES }}" - name: "🎮 Let the container manager hand that GPU to its containers" - include_tasks: nvidia.yml + include_tasks: 00_core/nvidia.yml diff --git a/roles/sys-svc-container/tasks/00_core/nvidia.yml b/roles/sys-svc-container/tasks/00_core/nvidia.yml index 926ca71ce3..b1e3448a27 100644 --- a/roles/sys-svc-container/tasks/00_core/nvidia.yml +++ b/roles/sys-svc-container/tasks/00_core/nvidia.yml @@ -18,7 +18,7 @@ - name: "🎮 Skip the cgroup setup nvidia-container-cli cannot own in a container" ansible.builtin.lineinfile: path: /etc/nvidia-container-runtime/config.toml - regexp: '^#?\s*no-cgroups\s*=' + regexp: "^#?\\s*no-cgroups\\s*=" line: "no-cgroups = true" owner: root group: root diff --git a/roles/web-app-seaweedfs/meta/services.yml b/roles/web-app-seaweedfs/meta/services.yml index 2a7ada99b7..ee91f5b653 100644 --- a/roles/web-app-seaweedfs/meta/services.yml +++ b/roles/web-app-seaweedfs/meta/services.yml @@ -3,6 +3,7 @@ # the engine's shared_net (meta/networks.yml consumer key), and files/playwright/test-storage-buckets.js # already asserts every consumer bucket through the filer it serves. # nocheck: playwright-service-flag — engine provider, covered by the web-svc-seaweedfs CLI test +# nocheck: dynamic-flag the flag's only job is joining the engine's shared_net, and its false branch yields a console container that cannot start seaweedfs: bond: 1 enabled: true diff --git a/roles/web-app-seaweedfs/meta/variants.yml b/roles/web-app-seaweedfs/meta/variants.yml index 3814e3a165..745b1d6a3c 100644 --- a/roles/web-app-seaweedfs/meta/variants.yml +++ b/roles/web-app-seaweedfs/meta/variants.yml @@ -1,8 +1,5 @@ --- - services: - seaweedfs: - enabled: true - shared: true sso: enabled: "{{ 'svc-net-tor' not in group_names }}" shared: "{{ 'svc-net-tor' not in group_names }}" @@ -21,9 +18,6 @@ tor: enabled: true - services: - seaweedfs: - enabled: true - shared: true sso: enabled: false shared: false diff --git a/tests/lint/repository/test_i18n_translation_bundle.py b/tests/lint/repository/test_i18n_translation_bundle.py index 87cfc306ec..ed7f895893 100644 --- a/tests/lint/repository/test_i18n_translation_bundle.py +++ b/tests/lint/repository/test_i18n_translation_bundle.py @@ -53,13 +53,11 @@ def providers() -> dict[str, str]: class TestTranslationBundleCoversEveryBackend(unittest.TestCase): def test_every_gated_backend_role_is_deployed_by_the_bundle(self) -> None: - missing = { - key: role - for key, role in providers().items() - if role not in BUNDLE - } + missing = {key: role for key, role in providers().items() if role not in BUNDLE} - report = "\n".join(f" - {key}: {role}" for key, role in sorted(missing.items())) + report = "\n".join( + f" - {key}: {role}" for key, role in sorted(missing.items()) + ) self.assertFalse( missing, f"{len(missing)} backend(s) of {ROLE} are gated on a role that " diff --git a/tests/unit/python/roles/web-svc-translate/files/translate_gateway/test_router.py b/tests/unit/python/roles/web-svc-translate/files/translate_gateway/test_router.py index f17def77d0..105b5fbc13 100644 --- a/tests/unit/python/roles/web-svc-translate/files/translate_gateway/test_router.py +++ b/tests/unit/python/roles/web-svc-translate/files/translate_gateway/test_router.py @@ -53,7 +53,9 @@ class FakeDecider: class FakeHistory: - def __init__(self, tally=None, *, wins_raises=None, record_raises=None, speeds=None): + def __init__( + self, tally=None, *, wins_raises=None, record_raises=None, speeds=None + ): self._tally = tally or {} self._speeds = speeds or {} self.wins_raises = wins_raises