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
fix: phantom sibling exports, headless version/doctor; check all seams in CI (#1003)
* fix: phantom grounding/retrieval exports, headless version/doctor; check all sibling seams
Extending the #999 guards to every sibling seam the meta-package
touches. The extended checks immediately found more live bugs, all
fixed here:
- openadapt/__init__.py lazy __getattr__ exported Grounder,
OmniGrounder, and GeminiGrounder from openadapt-grounding and
DemoRetriever/DemoLibrary from openadapt-retrieval. None of these
five names exist in those packages; every one always raised.
Replaced with the real exports (ElementLocator, OmniParserClient,
MultimodalDemoRetriever) and pointed DemoLibrary at openadapt-evals
where it actually lives.
- `openadapt version` imported each sibling package to read
__version__. Importing openadapt-capture takes a screenshot at
module scope (recorder.py), which crashes headless environments
including CI. Now reads importlib.metadata instead of executing
package code. Same fix for `openadapt doctor` (find_spec instead of
__import__).
- tests/test_import_integrity.py: EXTERNAL_PACKAGES extended from just
openadapt_ml to all six sibling packages.
- CI installs all six siblings so every seam is checked on every PR.
The capture-side import side effect (screenshot at module scope) gets
its own fix in openadapt-capture.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test: give the CI sibling-install check teeth
test_external_packages_installed_in_ci was a no-op: it only skipped or
passed, so it could never fail and verified nothing. Convert it to a
CI-gated assertion that fails if any sibling package is missing - which
is the actual risk worth guarding (seam tests silently degrading to
skips = the false-green failure mode #999 was about).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
0 commit comments