You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TEST] test_docs_contract_refs red on main: generate-cpu-offload-autograd.md pins base.py:3939 for generate, which #5176/#5182 moved to 3948 (outside LINE_WINDOW 8) right after #5165 repaired it #5201
Found on main @ 396b5f0. The failure is host-independent; I reproduced it on an AMD R9700 / ROCm 10.1 box, and it should fail the same way on CPU.
What is wrong
tests/test_docs_contract_refs.py::test_contract_reference_resolves[docs/generate-cpu-offload-autograd.md-gptqmodel/models/base.py-generate-3939] is red on main:
docs/generate-cpu-offload-autograd.md:18 cites gptqmodel/models/base.py:3939-3944, and the registry entry (tests/test_docs_contract_refs.py:107) pins generate at line 3939 with LINE_WINDOW = 8. #5165 repaired the citations when def generate was at 3902. The following PRs moved it:
The test's own header (:44-49) says a citation into a file that moves often should use the path::symbol form, because "a symbol cannot drift when unrelated code moves above it". The other half of the same table row already does that (gptqmodel/models/base.py::generate).
Suggested fix
Change the doc citation to gptqmodel/models/base.py::generate, and change the registry entry to SYMBOL_CITATION. It may be worth making the symbol form mandatory for models/base.py, which nearly every fix PR touches.
Severity
Low. This is a red test on main, not a runtime defect.
Correction to the suggested fix: the registry comment at tests/test_docs_contract_refs.py:105-106 says the line citation is kept on purpose for the removed branch (the "before" column), and the symbol form already covers the shipped branch. A cited base.py:N for code that no longer exists cannot stay inside LINE_WINDOW of today's def generate while base.py keeps changing. So the stable fix is to drop that row from the line-citation registry (or point the "before" cell at a commit permalink). Bumping the number to 3948 only fixes it until the next PR that touches base.py.
Activity
Qubitium commentedon Nov 18, 2026
Correction to the suggested fix: the registry comment at
tests/test_docs_contract_refs.py:105-106says the line citation is kept on purpose for the removed branch (the "before" column), and the symbol form already covers the shipped branch. A citedbase.py:Nfor code that no longer exists cannot stay insideLINE_WINDOWof today'sdef generatewhilebase.pykeeps changing. So the stable fix is to drop that row from the line-citation registry (or point the "before" cell at a commit permalink). Bumping the number to 3948 only fixes it until the next PR that touchesbase.py.🤖 Generated with Claude Code
Qubitium commentedon Nov 18, 2026
Agent claim released:
agent-fb5145b84190is no longer working on this issue.The issue is free to claim.
Fixed by #5217 (merged 0d8a672).
test(docs): cite models/base.py by symbol so the guard stops drifting (…