Skip to content

Always refresh alpha-engine-lib in boot-pull (supports @main pin)#21

Merged
cipher813 merged 1 commit into
mainfrom
fix/boot-pull-upgrade-lib
Apr 16, 2026
Merged

Always refresh alpha-engine-lib in boot-pull (supports @main pin)#21
cipher813 merged 1 commit into
mainfrom
fix/boot-pull-upgrade-lib

Conversation

@cipher813
Copy link
Copy Markdown
Owner

Summary

Ecosystem is switching from `@v0.1.x` tag pinning to `@main` pinning on alpha-engine-lib (eliminates coordinated tag bumps across 5 repos, hard-fail + lib CI catches breakage loudly).

Gotcha on ae-dashboard: the current conditional pip install only triggers when requirements.txt CHANGES. With `@main` pin, requirements.txt never changes after the initial switchover, so lib stays frozen at whatever was installed last. The `@main` pin becomes a lie.

Fix

Adds a targeted `pip install --upgrade alpha-engine-lib` step after the existing conditional. Scoped to the single package (cheap on a t3.micro), only runs in repos that list alpha-engine-lib in requirements.txt. Wheel is cached; expected runtime ~1-2s per repo.

Why not ae-trading

ae-trading's boot-pull.sh already runs `pip install -r requirements.txt` unconditionally per repo (`alpha-engine/infrastructure/boot-pull.sh:82`). Full refresh handles lib @main refresh for free. No change needed there.

Test plan

  • `bash -n infrastructure/boot-pull.sh` — syntax OK
  • Post-merge: next `boot-pull.timer` fire on ae-dashboard (daily 12:00 UTC) — verify `/var/log/boot-pull.log` shows `OK alpha-engine-data — alpha-engine-lib refreshed from @main`

Pairs with

🤖 Generated with Claude Code

The ecosystem is moving from @v0.1.x tag pinning to @main pinning on
alpha-engine-lib. @main eliminates coordinated tag bumps across 5
repos every time lib changes, and hard-fail + tests catch breakage
loudly — worth the tradeoff for a single-dev paper-trading project.

But @main on a long-lived venv like ae-dashboard's doesn't work out
of the box here: the existing conditional pip install only triggers
when requirements.txt CHANGES. With @main pin, requirements.txt never
changes, so lib stays frozen at whatever was installed last — the
@main pin becomes a lie.

This adds a targeted alpha-engine-lib upgrade after the main pip
block. Scoped to a single package (cheap on the micro) and only runs
in repos that actually list alpha-engine-lib in requirements.txt.
Wheel is cached; expected runtime ~1-2s per repo.

ae-trading's boot-pull.sh already runs `pip install -r requirements.txt`
unconditionally (alpha-engine/infrastructure/boot-pull.sh:82) so no
equivalent fix is needed there.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cipher813 cipher813 merged commit 3763b97 into main Apr 16, 2026
1 check passed
@cipher813 cipher813 deleted the fix/boot-pull-upgrade-lib branch April 16, 2026 19:06
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