Skip to content

Self-contained tests, CI, tidy repo root - #1

Merged
Pahan4ek merged 5 commits into
mainfrom
chore/repo-cleanup-and-ci
Nov 8, 2026
Merged

Pahan4ek merged 5 commits into
mainfrom
chore/repo-cleanup-and-ci

Conversation

@Pahan4ek

@Pahan4ek Pahan4ek commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Cleanup before pinning the repo to the profile. Model, data and scorer logic are untouched.

  • tests/test_funding.py failed on any machine except the dev one. It needed dune_out/cex_solana.csv.gz, which is gitignored. The exchange label is now passed to analyse() directly.
  • CI: GitHub Actions runs the four offline tests (no RPC, no keys) on Python 3.11–3.13. Badge in the README.
  • Root cleanup: audit/clusterpulse-fixes.patch removed, Windows .bat launchers moved to scripts/ (they cd to the repo root, so they behave the same). The "Claude reads logs..." lines from debugging are now plain log hints.
  • Requirements split: requirements.txt only has what the live scorer and tools/ import. Retro (pandas/numpy/sklearn) and legacy (gspread) deps moved to their own files. requests bumped to >=2.32.
  • README: new paths. Also notes that raw_sample.jsonl and the Dune CEX list stay local, and what happens without them.

Verified

All four test scripts pass in a clean venv from requirements.txt on Python 3.11 and 3.13. test_mirage.py runs only its synthetic part: the recorded stream isn't in the repo. test_funding.py failed before this change.

Left for you

  • Commit a trimmed raw_sample.jsonl (a few hundred transactions) under tests/fixtures/, so the "6,712 identical events" check can be reproduced by anyone.
  • Live numbers in the README are as of 12.10. Update them if the scorer is still running.
  • Pahan4ek/cluster is a public copy of the old version of this repo. Make it private or delete it.

Generated by Claude Code

It relied on dune_out/cex_solana.csv.gz, which is gitignored, so the
Binance funder was never recognised as an exchange and the assert on
hubs failed everywhere except the dev machine. The exchange label is
now passed to analyse() directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011k9qB85ckDQ9TdG2E4NEkK
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011k9qB85ckDQ9TdG2E4NEkK
Launchers cd to the repo root, so they behave as before. The 'Claude
reads ...' lines from local debugging are now plain log hints.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011k9qB85ckDQ9TdG2E4NEkK
requirements.txt now has only what the live scorer and tools/ import.
pandas/numpy/scikit-learn moved to requirements-retro.txt, gspread and
google-auth to legacy/requirements.txt. requests bumped to >=2.32.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011k9qB85ckDQ9TdG2E4NEkK
Notes that raw_sample.jsonl and the Dune CEX list stay local and what
happens without them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011k9qB85ckDQ9TdG2E4NEkK
@Pahan4ek
Pahan4ek merged commit 2864b06 into main Nov 8, 2026
6 checks passed
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.

2 participants