Skip to content

Align manifest schema with global environment runtime behavior - #2501

Merged
3alpha merged 1 commit into
developfrom
fix/manifest-schema-runtime-consistency
Nov 27, 2026
Merged

3alpha merged 1 commit into
developfrom
fix/manifest-schema-runtime-consistency

Conversation

@3alpha

@3alpha 3alpha commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Context

The manifest schema rejects the runtime-supported globalEnvs: { all: true } form and places services inside the envs schema, allowing malformed explicit lists through validation. Its numeric-version patterns also accept separators other than dots. Runtime errors currently suggest prefixed names even though manifest inputs need short names.

Approach

  • Model explicit global-env lists with required sibling envs and services, plus the legacy boolean all form; align the TypeScript type and examples.
  • Use literal-dot patterns for package and minimum-runtime versions.
  • Report valid short names in runtime errors and replace the test fixture’s fake ACTIVE environment with the catalogue’s ENVS_ACTIVE mapping.
  • Add schema/runtime conformance coverage for the actual catalogue, service targeting, both legacy env-file paths, invalid names and no-op configurations.

Companion changes: SDK validation, Public docs, Tropibot guide. Publish the updated shared schemas/types before rolling out consumers that depend on the corrected schema and catalogue.

Test instructions

With workspace dependencies installed, run from the repository root:

node node_modules/typescript/bin/tsc --noEmit --incremental false --project packages/types/tsconfig.json
node node_modules/typescript/bin/tsc --noEmit --incremental false --project packages/schemas/tsconfig.json
node node_modules/typescript/bin/tsc --noEmit --incremental false --project packages/dockerCompose/tsconfig.json
TEST=true node node_modules/mocha/bin/mocha.js --no-config --import=tsx --extension ts --recursive packages/schemas/test/unit
TEST=true node node_modules/mocha/bin/mocha.js --no-config --import=tsx packages/dockerCompose/test/unit/globalEnvsManifest.test.ts packages/dockerCompose/test/unit/composeAliases.test.ts

Verified on Node 26: all three TypeScript checks and changed-file lint pass; 64 schema tests and 14 runtime tests pass. The existing schema suite also prints an asynchronous diagnostic from its unchanged merged-Compose fixture after the test summary.

@3alpha
3alpha requested a review from a team as a code owner November 11, 2026 11:04
@3alpha 3alpha added the bug Something isn't working label Nov 11, 2026
@github-actions
github-actions Bot temporarily deployed to commit November 11, 2026 11:04 Inactive
@github-actions

Copy link
Copy Markdown

@3alpha
3alpha merged commit 436f184 into develop Nov 27, 2026
9 checks passed
@3alpha
3alpha deleted the fix/manifest-schema-runtime-consistency branch November 27, 2026 00:11

This branch was previously deployed

1 inactive deployment
commit — c24c3f5c Deployed Nov 11, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant