Skip to content

feat: consolidate deployment compose into root under --profile deploy (COW-976)#65

Closed
lgahdl wants to merge 2 commits into
mainfrom
luizhatem/cow-979-bug-candidatediscreteorder-fulfilled-not-promoted-to
Closed

feat: consolidate deployment compose into root under --profile deploy (COW-976)#65
lgahdl wants to merge 2 commits into
mainfrom
luizhatem/cow-979-bug-candidatediscreteorder-fulfilled-not-promoted-to

Conversation

@lgahdl
Copy link
Copy Markdown
Contributor

@lgahdl lgahdl commented May 28, 2026

Summary

Consolidate deployment/docker-compose.yml into the root docker-compose.yml as a --profile deploy profile, eliminating the duplicate file. The default docker compose up dev-database behavior is unchanged.

Changes

  • Added postgres-deploy and ponder services to root docker-compose.yml under profiles: [deploy]
  • Adjusted volume path for start-db.sh from ./static/ to ./deployment/static/ (context is now repo root)
  • Deleted deployment/docker-compose.yml
  • Updated deployment/manage.sh to reference ../docker-compose.yml with --profile deploy
  • Updated references to the old file path in docs/deployment.md

How to Test

  1. Run docker compose --profile deploy up and verify the deploy stack starts (postgres + ponder)
  2. Run docker compose up (no profile) and verify only the dev postgres starts as before

Checklist

  • Tests pass locally
  • Linting passes
  • Documentation updated (if needed)
  • Breaking changes documented (if any)

Breaking Changes

None — docker compose --profile deploy up replaces the old docker compose -f deployment/docker-compose.yml up.

Related Issues

COW-976

The by_uids endpoint returns [{order: {...}}] but the code was treating
it as a flat OrderbookOrder[]. This caused order.uid to be undefined,
so fetchOrderStatusByUids returned an empty map for all candidates,
preventing C2 from ever promoting candidateDiscreteOrders to discreteOrders.
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 28, 2026

COW-976

COW-979

Verify the { order } unwrap fix with a real HTTP server: 6 tests covering
correct uid→status mapping, executed amounts, multiple orders, HTTP errors,
and empty responses. Adds ponder/ponder:schema vitest stubs to resolve
virtual module imports without a running Ponder process.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@yvesfracari yvesfracari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that right, there is no docker compose diff here

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is relative to other PR, right?

@lgahdl lgahdl closed this May 28, 2026
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