Skip to content

refactor(env-setup): unify daemon install under services, drop container variant#25

Merged
AndriiTsok merged 1 commit intomainfrom
refactor/services-rename
Apr 18, 2026
Merged

refactor(env-setup): unify daemon install under services, drop container variant#25
AndriiTsok merged 1 commit intomainfrom
refactor/services-rename

Conversation

@AndriiTsok
Copy link
Copy Markdown
Contributor

Why

The container-based services block (docker run of postgres/redis/nats/mysql/mongo) had zero consumers. Meanwhile v1.4.0 added test_binaries for the binary-install pattern that's actually used. Two overlapping blocks, one used, one dead — delete the dead one and reclaim the natural name for the live one.

What the new services looks like

services:
  redis: true
  nats:  true

Boolean-keyed. Means "install this daemon binary on PATH so tests can spawn it". No containers, no env plumbing, no healthcheck plumbing — tests control the lifecycle.

Breaking change

Any external consumer that had services: set to the old container shape stops working. mcpg-dev/source-code doesn't use it; I'll bump the consumer PR (#22 in mcpg-dev) to use services: instead of test_binaries: right after this tags v1.5.0.

Self-test

Polyglot fixtures don't use services, so no fixture migration. The skip-all test removed services from its skip list (field is gated per-key now). Assertion checking setup_services=false replaced with service_redis=false / service_nats=false.

🤖 Generated with Claude Code

…ainer variant

The container-based `services` block (docker run of postgres/redis/nats/
mysql/mongo per config) was never used by any consumer — mcpg-dev/source-code
uses the binary-install pattern exclusively. The split between
`test_binaries` (binary on PATH) and `services` (containerized daemon)
confused consumers and added maintenance surface for the unused branch.

Unified name. `services` now means "install these daemon binaries on PATH":

  services:
    redis: true
    nats:  true

Changes:
  - schema: old container-shape `services` deleted; boolean-keyed version
    replaces `test_binaries`.
  - parser: drops services_json / service_names / setup_services outputs;
    emits `service_redis` + `service_nats` booleans.
  - action.yml: drops the ~130-line container-start step entirely. Install
    steps renamed from test_binary_* conditions to service_* and from
    "TEST BINARIES" heading to "SERVICES". Output declarations + summary
    step updated.
  - self-test: setup_services assertion dropped; skip list no longer
    includes "services" (it's gated per-key in the config itself).

Breaking for any external consumer that set `services:` to a container
config. Nothing in mcpg-dev/source-code uses that shape. Tagging v1.5.0
after merge; downstream consumer PR swaps `test_binaries:` to `services:`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@AndriiTsok AndriiTsok merged commit e6a85a6 into main Apr 18, 2026
6 checks passed
@AndriiTsok AndriiTsok deleted the refactor/services-rename branch April 18, 2026 18:15
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