Skip to content

test(dev): secure local Compose ports and smoke-test quickstart - #13

Merged
darunr1 merged 3 commits into
mainfrom
test-local-compose-quickstart
Nov 12, 2026
Merged

darunr1 merged 3 commits into
mainfrom
test-local-compose-quickstart

Conversation

@darunr1

@darunr1 darunr1 commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Changes

  • Bind all five local Compose-published ports to 127.0.0.1 so the dev DB/Adminer/web/worker/renderer are not exposed to the LAN by default.
  • Add a narrowly triggered GitHub Actions smoke workflow for a clean Ubuntu runner. It performs pnpm install --frozen-lockfile, docker compose up -d postgres, health check, pnpm db:migrate, pnpm db:generate, pnpm db:seed, pnpm dev, and probes web /sign-in and worker/renderer /readyz.
  • Generate test-only random secrets without printing them. Show only non-sensitive startup diagnostics upon failure. No paid providers.

Real failure found and fixed in the test environment

The first smoke run failed during pnpm db:seed with FFmpeg failed (8). A diagnostic check showed that bundled ffmpeg-static has no drawtext filter on this runner. Using the installed /usr/bin/ffmpeg via FFMPEG_PATH allowed a complete successful seed and service startup. PR #11 was updated to document this observed failure and the required system FFmpeg configuration.

Intent and limitations

This is a separate PR to avoid expanding the scope of documentation-only PR #11. It is compatible with open T02b PR #12, but does not depend on it: the smoke sequence includes explicit Prisma generation. This automated Linux test cannot establish Windows/Powershell reproducibility or guarantee secrets were absent from the historical committed PostgreSQL cluster. It checks processes' health, not a full mocked video generation job (existing E2E covers app behavior).

Verification

  • Checked docker-compose.yml services/ports and /readyz endpoint implementation.
  • The smoke workflow ran on a fresh GitHub Actions Ubuntu runner: https://github.com/darunr1/Agentic-Media-Generation-Platform/actions/runs/43127014388.
  • Confirmed frozen install, Compose PostgreSQL health, migrations, Prisma generation, seed, and HTTP readiness for web, worker, renderer.
  • Run Windows second-machine acceptance manually before merging docs.

No history rewrite or merge performed.

@darunr1
darunr1 merged commit c100c25 into main Nov 12, 2026
5 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.

1 participant