Skip to content

[BUG] Regression from the 07:55 merge wave: docs contract tests red (backend-selection example + stale hf_packing_api skip digest) #6334

Done

Description

@Qubitium

Summary

On current main (42827b67), tests/test_docs_contract_refs.py is red:

2 failed, 232 passed

The two failures:

  1. test_doc_python_example_runs[docs/backend-selection.md::1] —
    NameError: name 'MyKernelBase' is not defined
  2. test_doc_block_skip_lists_are_current —
    reviewed doc-block skip entries are stale: NOT_EXECUTED_BLOCKS[docs/hf_packing_api.md::1] changed

Reproduction

cd /root/openai-audit/cigate-main/tests
CUDA_VISIBLE_DEVICES="" PYTHONPATH=/root/openai-audit/cigate-main:/root/openai-audit/cigate-main/tests \
  /root/venv/bin/python -m pytest test_docs_contract_refs.py -q -rs -p no:cacheprovider

Pre-wave comparison

At the pre-wave commit 89dbcf91 the file is green (33 passed; the expanded
runner did not exist yet). The failing nodes are new coverage added by the wave,
so main went green→red.

Root cause

  • The new "Kernel membership and registration" section in
    docs/backend-selection.md adds a second Python block whose registration
    example subclasses MyKernelBase, which is intentionally defined by the
    caller. The docs runner executes every fenced Python block, so it raises
    NameError; the block is not in NOT_EXECUTED_BLOCKS.
  • docs/hf_packing_api.md block 1 changed (it now passes
    in_features=linear.in_features / out_features=linear.out_features), but
    its NOT_EXECUTED_BLOCKS digest still describes the old text.

Expected fix

  • Add a reviewed NOT_EXECUTED_BLOCKS entry for
    ("docs/backend-selection.md", 1) with the current digest
    (1f829c6ed679) and a specific reason.
  • Refresh the ("docs/hf_packing_api.md", 1) digest to 1f0f998865c6.

I have a draft PR with this red→green fix.

Activity

  1. added a commit that references this issue on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions