Skip to content

feat(example): CMR function in the sample app, always tested in PR integration runs - #17

Merged
ivanbarlog merged 2 commits into
mainfrom
feat/sample-app-cmr
Nov 23, 2026
Merged

ivanbarlog merged 2 commits into
mainfrom
feat/sample-app-cmr

Conversation

@ivanbarlog

Copy link
Copy Markdown
Contributor

Follow-up to #16. The CMR echo function in the sample app was gated behind `BUN_CMR=1`, which only
release runs set, so no PR exercised `BunFunction` end to end.

Changes

  • `CmrEchoFn` is now always deployed. It takes an optional `BUN_RUNTIME_ARN`/`BUN_RUNTIME_ALIAS`
    override; without it, `BunFunction` resolves the published runtime for the stack's region, same as
    a real user would get.
  • `integration.yml` (PR runs): downloads `artifacts.json` from the latest GitHub release (public
    asset) and sets `BUN_RUNTIME_ARN`/`BUN_RUNTIME_ALIAS` from it, since a PR has no release of its own.
    Release runs still resolve the runtime from the region, using the artifacts just published in the
    first-region job.
  • `deploy-destroy.test.ts`: `CmrEchoFnArn` is required (was optional), and the CMR invoke test always
    runs.

Verified

  • Full `bun test test/integration/deploy-destroy.test.ts` against the test account (759945100454),
    simulating the PR flow (`BUN_LAYER_ZIP` + `BUN_RUNTIME_ARN`/`BUN_RUNTIME_ALIAS` from the latest
    release): 7/7 pass, including the CMR invoke.
  • Separately installed `@beesolve/[email protected]` fresh from npm in a throwaway project
    and deployed a bare `BunFunction` with no runtime override. It ran on the real published runtime
    (Bun 1.4.5, `RuntimeArn` resolved automatically) and was destroyed after.
  • Cleaned up the `smoke-45244420459` alias, version and ECR image tag left in production by the
    earlier `publish-smoke` run.

@ivanbarlog
ivanbarlog merged commit 4007d37 into main Nov 23, 2026
3 checks passed
@ivanbarlog
ivanbarlog deleted the feat/sample-app-cmr branch November 23, 2026 22:21
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