Die Oberfläche ist lokalisiert; Skill-Beschreibungen und -Dokumente werden per KI automatisch in Ihre Sprache übersetzt. Code, Befehle, Pfade und Fachbegriffe bleiben im Original, maßgeblich ist das Dokument des Autors.
Skills entdecken
Daten und Forschung · SKILL.md

test-maintain-template

test-maintain-template

Maintain Lightning-Hydra-Template tests, CI, Makefile targets, package metadata, smoke profiles, RunIf skips, and package renames.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill-Dokumentation

GitHub

name: test-maintain-template description: "Maintain Lightning-Hydra-Template tests, CI, Makefile targets, package metadata, smoke profiles, RunIf skips, and package renames." disable-model-invocation: true metadata: disco-role: operating license: MIT

Test and Maintain the Template

Use this sub-skill when the task is about repository maintenance rather than model training itself.

Triggers

Read this sub-skill for tasks about:

  • Choosing pytest commands, no-network smoke tests, slow tests, GPU tests, or sweep tests.
  • tests/conftest.py, tests/test_configs.py, tests/test_train.py, tests/test_eval.py, tests/test_sweeps.py, or tests/helpers/RunIf.
  • make test, make test-full, make format, pre-commit, and GitHub Actions.
  • Updating setup.py, console scripts, imports, coverage paths, and config targets after renaming the default src package.
  • CI failures from missing optional dependencies, Hydra global state, strict markers, or data downloads.

Quick workflow

  1. Classify tests before running them:
    python <this-skill>/sub-skills/test-maintain-template/scripts/select_smoke_tests.py --profile offline
    python <this-skill>/sub-skills/test-maintain-template/scripts/select_smoke_tests.py --profile full
    
  2. For a required no-training smoke, run:
    pytest tests/test_configs.py -q
    
  3. Do not assume make test is no-network. It expands to pytest -k "not slow", and the non-slow fast-dev training test can still download MNIST.
  4. When renaming packages or moving entry files, read package renaming and run the target checker from customize-data-model.
  5. For CI, keep optional GPU/sweep/logger tests guarded by RunIf or separate profiles.

Read references

  • Testing and CI reference: pytest fixtures, native test classification, Makefile targets, CI matrix, and safe command profiles.
  • Package renaming: update checklist for src package renames and setup/coverage/config targets.
  • Troubleshooting: Hydra state, MNIST downloads, optional skips, strict markers, sh, logger credentials, and CI surprises.

Bundled script

Boundaries

Gespeicherte Skills