Skip to content

ci: validate the on-chain overlay too - #4

Merged
rickstaa merged 1 commit into
mainfrom
rs/validate-onchain-compose
Aug 19, 2026
Merged

ci: validate the on-chain overlay too#4
rickstaa merged 1 commit into
mainfrom
rs/validate-onchain-compose

Conversation

@rickstaa

Copy link
Copy Markdown
Member

lint.yml parses compose.yml and stops there, so compose.onchain.yml is never checked by anything.

That is the file that most needs it. The offchain path is exercised constantly; the on-chain one needs a wallet, an RPC endpoint and a keystore, so realistically nobody runs it before merging. It is also the more fragile of the two: ten interpolated variables and a second service.

Compose interpolates ${VAR} as text before parsing the result as YAML, so an unset variable does not error, it becomes an empty string and can silently produce something malformed:

- ${SIGNER_KEYSTORE_DIR}:/keystore:ro     →     - :/keystore:ro
                                                invalid spec: empty section between colons

Interpolating .env.example fixes that, and buys a second check for free: if someone adds a ${VAR} to the overlay and forgets to document it, CI goes red. Without that the failure lands on a user who copied .env.example to .env, filled it in, and still could not start the stack.

--env-file only feeds interpolation; it puts nothing into any container, and .env.example holds placeholders, so no secret is involved.

Verified on top of main: both the existing check and the new one pass, so this adds coverage without papering over an existing break.

Same change is open for template-livepeer-runner#3 and runner-app-examples#85, which have the same gap.

It is the compose file nobody runs before merging, since it needs a
wallet, an RPC and a keystore, and the one most likely to break: ten
interpolated variables and a second service. Interpolating .env.example
also proves that file still lists every variable the overlay reads.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@rickstaa
rickstaa merged commit ca98fbd into main Aug 19, 2026
1 check passed
@rickstaa
rickstaa deleted the rs/validate-onchain-compose branch August 19, 2026 12:22
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