Skip to content

fix: isolate explainer tests and unblock pytest collection - #185

Merged
SrGonao merged 2 commits into
mainfrom
fix/ci-module-cache-isolation
Nov 2, 2026
Merged

SrGonao merged 2 commits into
mainfrom
fix/ci-module-cache-isolation

Conversation

@SrGonao

@SrGonao SrGonao commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

The current main-branch Actions run stops during collection with five ActivatingExample import errors: the isolated explainer test loader replaces delphi and delphi.latents in sys.modules and never restores them. Restore the module cache after loading the regex implementation, and add a regression that checks both existing module identities and previously absent entries.

Once collection succeeds, the existing internal-intruder test exposes a runtime type error from passing an integer quantile as a float distance. Convert that value explicitly.

Observed in https://github.com/EleutherAI/delphi/actions/runs/41026468008 and the preceding main run.

Validation: 11 focused explainer/intruder tests pass with pytest-beartype enabled; repository-wide Ruff and whitespace checks pass. The local CPU launcher bypasses the eager vLLM package initializer. The complete model/GPU integration suite was not run locally.

The first full Actions run reached 277 passing tests and one cache-test failure. The test selected an unfiltered directory entry and attempted to parse config.json as safetensors. Select only sorted *.safetensors files, and compare saved tokens against the original fixture rather than the overwritten local variable. A local synthetic cache check verifies both JSON exclusion and detection of token mismatches.

@SrGonao
SrGonao merged commit 2bd6003 into main Nov 2, 2026
4 checks passed
@SrGonao
SrGonao deleted the fix/ci-module-cache-isolation branch November 2, 2026 12:41
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