Repository navigation
feat(examples): trio ops build via build() builder - #730
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Swaps the
local-cloud-trioops' Build phase fromshell("npx chant build ...")to thebuild()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, andchantBuildpreviously hard-codednpm run build— which builds all three clouds. To let each op build only its cloud,chantBuildnow takes an optionalscript(defaultbuild):The trio already defines
build:aws/build:azure/build:gcpscripts. Existingbuild()callers (default scriptbuild) 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 publishedchantBuildactivity ignores the newscriptarg, so from a clean install it currently runs the fullnpm 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 lintclean ·just test653 files / 7394 passed (temporal op tests incl. compile-smoke green).