Skip to content

feat(examples): trio ops build via build() builder - #730

Merged
lex00 merged 1 commit into
mainfrom
feature/trio-build-builder
Jul 8, 2026
Merged

lex00 merged 1 commit into
mainfrom
feature/trio-build-builder

Conversation

@lex00

@lex00 lex00 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Swaps the local-cloud-trio ops' Build phase from shell("npx chant build ...") to the build() op-builder, so the build is a first-class activity (profile + retry + heartbeat) instead of a shell escape.

The one enabling change

build() runs an npm script, and chantBuild previously hard-coded npm run build — which builds all three clouds. To let each op build only its cloud, chantBuild now takes an optional script (default build):

phase("Build", [build(".", { script: "build:aws" })])   // → npm run build:aws

The trio already defines build:aws / build:azure / build:gcp scripts. Existing build() callers (default script build) are unaffected — backward compatible.

Scope

Capped at build() per discussion — no release-ops layering. Release/promote/rollback stays out of the cross-cloud applier demo (better as a later graduation example).

Note on clean-install behavior

The build() builder already exists in published 0.15.1, so the op files typecheck against npm. But the published chantBuild activity ignores the new script arg, so from a clean install it currently runs the full npm run build (all three clouds) — correct output, just not per-cloud. Per-cloud build from clean install lands once this ships in the next release.

Verification

just build + temporal build clean · just lint clean · just test 653 files / 7394 passed (temporal op tests incl. compile-smoke green).

Swap the trio's Build phase from shell("npx chant build ...") to the build()
op-builder so the build is a first-class activity (profile + retry + heartbeat)
rather than a shell escape. build() runs an npm script; to let each op build
only its cloud, chantBuild now takes an optional `script` arg (default `build`),
so build(".", { script: "build:aws" }) runs `npm run build:aws`. Existing
callers (default `build`) are unaffected. Docs op snippets updated to match.
@lex00
lex00 merged commit 3887201 into main Jul 8, 2026
6 checks passed
@lex00
lex00 deleted the feature/trio-build-builder branch July 8, 2026 20:36
lex00 added a commit that referenced this pull request Jul 8, 2026
…ld() script arg (#732)

Publishes the post-0.15.1 Ops work so examples/local-cloud-trio runs from a
clean install: typed floci-az/floci-gcp lifecycle + httpCheck verify (#731) and
the build() named-script arg (#730). Bumps core + all lexicons to 0.15.2, peer
ranges synced.
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