Skip to content

Add marketdata to the server's clone, install and upgrade steps - #27

Merged
mspinola merged 1 commit into
mainfrom
claude/adr7-step4-server-clone
Aug 9, 2026
Merged

Add marketdata to the server's clone, install and upgrade steps#27
mspinola merged 1 commit into
mainfrom
claude/adr7-step4-server-clone

Conversation

@mspinola

@mspinola mspinola commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Follow-up to #26. That PR left the server deploy broken, and this fixes it.

#26 added -e ../marketdata to requirements.txt and documented MARKETDATA_STORE, but the setup steps in server-side/README.md clone and install only cotdata, cotmetrics and cot-analyzer. So a fresh deploy now fails at pip install -r requirements.txt with:

Distribution not found at: file:///root/trading_workspace/marketdata

— an error that names a path rather than the missing clone.

What changes

  • Clone list gains marketdata, with a note that it is the one sibling that cannot fall back to an index. cotdata and cotmetrics are both on PyPI; marketdata is not, so the checkout is the only thing that resolves it. Stated where the clone list is rather than left to be inferred from a failed install.
  • Virtualenv step gains pip install -e ../marketdata — "three serving repos" is now four.
  • Upgrade block gains the git pull, and the "pull all of them or none" rule gains its reason for the new member: cotmetrics calls marketdata.get_bars and marketdata.schema_version, so a stale marketdata checkout is a price failure inside a COT deployment that otherwise looks healthy.

How this was missed

I documented the store (MARKETDATA_STORE, the rsync push, the troubleshooting symptom) and the dependency declaration, then stopped — I read the env-var and sync sections and not the install section. Found by reading the deploy path after merging, which is where it should have been checked before.

Docs only; no code changes, so CI covers the same ground it did on #26.


Generated by Claude Code

The previous change declared the dependency and documented the store, and left
the deploy broken. requirements.txt now carries `-e ../marketdata`, but the
setup steps clone and install only cotdata, cotmetrics and cot-analyzer, so a
fresh deploy fails at `pip install -r requirements.txt` with "Distribution not
found at: file:///root/trading_workspace/marketdata" — an error that names a
path rather than the missing clone.

marketdata is the one sibling that cannot fall back to an index: cotdata and
cotmetrics are both on PyPI, marketdata is not, so the checkout is the only way
to resolve it. Said explicitly where the clone list is, rather than left to be
inferred from a failed install.

The upgrade block gains it too, with the reason the "pull all of them or none"
rule now extends: cotmetrics calls marketdata.get_bars and
marketdata.schema_version, so a stale marketdata checkout is a price failure
inside a COT deployment that otherwise looks healthy.

Found by reading the deploy path after merging, which is where it should have
been checked before.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jo4iovRfc2fzE9MwcLp7r2
@mspinola
mspinola merged commit 8c7eb7f into main Aug 9, 2026
3 checks passed
@mspinola
mspinola deleted the claude/adr7-step4-server-clone branch August 9, 2026 02:55
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