Skip to content

feat: add --skip-resource-checks flag to bypass hardware capability gates #758

Closed

Description

@ajbozarth

Summary

Add a flag (e.g. --skip-resource-checks) that disables the hardware-based resource checks in conftest that gate tests based on detected hardware (VRAM, etc.).

Motivation

The current require_gpu(min_vram_gb=N) predicate causes tests to be skipped when the detected hardware doesn't meet the threshold. While this is the right default behavior, there are cases where a developer wants to force-run a test regardless of what hardware is detected — for example, to verify test logic on a machine with less VRAM, or to reproduce a failure reported from a higher-spec machine.

It is currently possible to work around this by invoking pytest directly (bypassing conftest auto-skips), but an explicit flag would be clearer and more ergonomic.

Proposed solution

Add a --skip-resource-checks pytest flag that, when passed, disables the hardware-capability gates (VRAM checks). API credential checks and Ollama checks would not be affected by this flag, as skipping those doesn't make sense in the same way.

Context

Raised during review of #742.

Activity

  1. ajbozarth commented on Apr 20, 2026

    @ajbozarth
    MemberAuthor

    Updated status from Claude:

    Checked current main (2026-04-20) — the specific flag was never added, though related cleanup happened in PR #742.

    The old requires_gpu / requires_heavy_ram / requires_gpu_isolation markers and the --ignore-*-check override flags were removed from conftest (~2026-03-27, commits d445f0c and 6148d8d). However, require_gpu() and require_ram() still live in test/predicates.py as decorator-style skip predicates and are actively used. There is still no ergonomic way to force-run a test below the detected VRAM threshold.

  2. self-assigned this
    on Apr 20, 2026
  3. added this to the Release 0.5.0 milestone on Apr 20, 2026
  4. added a commit that references this issue on Apr 22, 2026
    184ca70
  5. added a commit that references this issue on May 27, 2026
    cac4ee3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions