Skip to content

test(looper): give the verify_calibration_dataset double its owner (#6406/#6422 follow-up) - #6466

Merged
Qubitium merged 1 commit into
mainfrom
fix/looper-capabilities-test-owner
Nov 30, 2026
Merged

Qubitium merged 1 commit into
mainfrom
fix/looper-capabilities-test-owner

Conversation

@Qubitium

Copy link
Copy Markdown
Collaborator

Summary

tests/test_looper_processor_capabilities.py::test_gptq_never_inherits_previous_calibration fails on main with AttributeError: 'types.SimpleNamespace' object has no attribute 'calibration_dataset_owner'. #6406 added the test, calling GPTQProcessor.verify_calibration_dataset on a bare SimpleNamespace. #6422 then made that method the shared LoopProcessor.verify_calibration_dataset, which reads self.calibration_dataset_owner. Each PR passed on its own; together they leave this test stale. Test-only fix; no production change.

What Changed

  • The test double now carries calibration_dataset_owner=GPTQProcessor.calibration_dataset_owner. The ValueError assertion also pins the owner-specific message (GPTQProcessor's calibration_dataset must be provided), so the test still proves the GPTQ arm raises without a dataset and returns True with one.

Tests

  • Unit tests have been executed and passed.
  • New test: not applicable. This repairs an existing test.
CUDA_VISIBLE_DEVICES= python -P -m pytest -q tests/test_looper_processor_capabilities.py
# origin/main 1c51b32a7: 1 failed (test_gptq_never_inherits_previous_calibration), 132 passed
# this PR:               133 passed
bash format/check.sh   # All checks passed!

Measured Impact

Not applicable (test-only).

Model Support / Module Plan

Not applicable.

AWQ onboarding safety

Not applicable.

Logic Flow Documentation

Not applicable: test-only.

Review Requirements

  • Reviewed this PR.
  • Checked that the code matches existing project structure, APIs, and conventions.
  • Avoided unnecessary monkeypatching.
  • Minimized and compacted the impacted code surface.
  • Considered and eliminated potential regressions.

Kernel Accuracy Requirements

  • Not applicable.

Notes

Follow-up to #6406 and #6422, both of which I authored.

🤖 Generated with Claude Code

…6406/#6422 follow-up)

#6422 moved verify_calibration_dataset to LoopProcessor, where it reads
calibration_dataset_owner; the #6406 test still called it on a bare
SimpleNamespace and failed with AttributeError on main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Qubitium
Qubitium marked this pull request as ready for review November 30, 2026 02:28
@Qubitium
Qubitium merged commit feb9574 into main Nov 30, 2026
6 checks passed
@Qubitium
Qubitium deleted the fix/looper-capabilities-test-owner branch November 30, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant