You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(init): review cleanups — reporting hardening and fork-change documentation
- REPORT line: pass the pre-formatted Init Duration/Status fragments as %s
arguments instead of concatenating them into the Fprintf format string,
where a runtime-supplied error type containing a formatting verb would
corrupt the line (the fatal-error scrub regex is unanchored).
- SendInitErrorResponse returns the delegate's error again (pre-branch
behavior): the /runtime/init/error handler renders an interop error to
the runtime based on it (e.g. ErrResponseSent during a suppressed init).
- LocalStack adapter POSTs now fail on non-2xx responses (e.g. LocalStack
rejects a duplicate /status/error with 400, previously treated as
success) and share one post() helper.
- LOCALSTACK_INIT_PHASE_TIMEOUT is validated (> 0; a 0 previously forced
every init down the timeout path) and parsed once instead of
double-defaulting.
- SendInitError fault messages use a blank requestId, matching the
/init/error path which forwards AWS's blank init-phase requestId; the
unused uuid dependency is dropped and lsapi.ErrorResponse.RequestId
reverts to a plain string (never set anywhere), restoring
internal/lsapi/types.go to its pre-branch state.
- Dedupe the INIT_REPORT line format and the ns->ms conversion.
- Document fork changes per README-LOCALSTACK.md convention: LOCALSTACK
CHANGES prefix in server_localstack.go and new entries for it and
internal/lsapi in the custom-changes list.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README-LOCALSTACK.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,4 +45,6 @@ Document all custom changes with the following comment prefix `# LOCALSTACK CHAN
45
45
46
46
* Everything in `cmd/localstack`, `cmd/ls-mock`, and `.github`
47
47
*`Makefile` for debugging and building with Docker
48
+
*`internal/lsapi` LocalStack-only package with the request/response types of the LocalStack <-> RIE HTTP API
48
49
* 2023-10-17: `lambda/rapidcore/server.go` pass request metadata into .Reserve(invoke.ID, invoke.TraceID, invoke.LambdaSegmentID)
50
+
* 2026-06-11: `lambda/rapidcore/server_localstack.go` new LocalStack-only file with additions to the rapidcore Server (timeout-aware init await, init-failure drain, structured init-failure interpretation)
InitHandler(sandbox.LambdaInvokeAPI(), GetEnvOrDie("AWS_LAMBDA_FUNCTION_VERSION"), int64(invokeTimeoutSeconds), bootstrap, lsOpts.AccountId) // TODO: replace this with a custom init
0 commit comments