README.md
1.5 kB · markdown
AWS
net.tsis themrlynet-siteLambda: a deploy from the desk wakes it, it builds main and pushes what changed.- The event is
{ source, repo, sha };sourceis one ofpush,schedule,automator,manual, and any other word reads as none. reposays what moved:mrlyprod/mrlyprodis this repo, the slug inSHELF_REPOis a research-shelf change and rebuilds against the current main, any other slug is ignored.SHELF_REPOis anowner/repoin the Lambda env; empty means no shelf, and then nothing is fetched or mounted atMRLY_SHELF.- A sha without a repo is never trusted; with no trusted sha it falls back to the ETag poll, which is what the hourly safety-net schedule sends.
- A wake for a sha already built is a no-op, unless a line of
build/net/headis still empty and the build never finished. build/net/headinmrlydevis four lines: source sha, source etag, shelf sha, shelf etag. Every GitHub and codeload fetch retries three times, 1s, 3s, 9s.- The build installs
sitewith--frozen-lockfile, runsscripts/pkg.tsand thenbun run pushthere. net.test.tscovers the payload parser:bun test aws/net.test.ts.s3.tsis the S3 client it shares withsite/scripts/pkg.tsandpush.ts: credentials from the environment, no SDK.- The Lambda never runs cargo:
scripts/wasm.shonly buildspkg/. - Bundled with
bun build aws/net.ts --target=buninto onehandler.js; the infrastructure console lives outside this repo.