Repository navigation
chore(#1611): remove the Docker executors, spawn_control and ReplayCfg.RandomSeed - #1668
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…g.RandomSeed Substrate models API observations, not workload internals, so the opt-in Docker Lambda RIE and RDS Postgres executors go, with their config keys, replay cache, warm-pool eviction and export_test accessors. The inert ReplayCfg/ReplayConfig.RandomSeed goes with ReplayEngine.RandFloat64 and RandInt64. Two seeds replace what the removals took away: - POST/DELETE /v1/lambda/invoke-result seeds a successful Invoke payload, resolved after invoke-error and before the stub. - POST/DELETE /v1/s3/seeded-objects seeds the object a GET/HEAD of an unwritten key observes, gated on availableAt, replacing the spore.host-specific /v1/spawn/task-completion route. LoadConfig reports each removed key still set in Config.Warnings, which the CLI logs at startup. Fixes #1611
- S3: a PutObject, CopyObject, CompleteMultipartUpload, DeleteObject or DeleteObjects of a key an available seed answers supersedes the seed with a per-bucket tombstone, so a deleted seeded object stays deleted in unversioned and versioned buckets. Posting or clearing the seed clears its tombstones. - S3: CopyObject and UploadPartCopy read a seeded source; the operations that treat a seeded key as absent are documented. - S3: date preconditions compare Last-Modified in whole seconds, so an echoed header answers 304/200 correctly. - Control plane: recordControlPlaneWrites holds the simulated clock across the handler and the event timestamp, so seededAt replays identically. - Lambda: seeds resolve exact error, exact result, * error, * result, and invoke-error/invoke-result normalise a qualified name or ARN. - CLI: config warnings print to stderr at every log level, including after SIGHUP reload and on validate-plan.
scttfrdmn
force-pushed
the
chore/v0132-remove-executors
branch
from
November 24, 2026 02:48
66cfabe to
935523a
Compare
…-name forms - S3: a tombstone is keyed by bucket, the superseded seed's scope and key, and records that seed's SeededAt; it suppresses only a matching seed of its own scope, and posting or clearing a seed clears only its own scope's tombstones. A bucket's own seed, when present, still decides the key alone. - S3: a copy from a missing source bucket is NoSuchBucket before any seed is consulted. - Lambda: only a full ARN or a <12-digit account>:function:<name> partial ARN is read for its function segment, so a function named "function" keeps its name; invoke-error's response names the bare function.
Tombstone read and clear failures, copy-source record and seed read failures, supersede failures on CopyObject and a versioned DeleteObject, and invoke-error seed read, write and delete failures.
This was referenced Nov 24, 2026
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.
Fixes #1611
Removes the features that contradict the scope rule ("models API observations, not workload internals") or do nothing, and ships the two seeds that replace what they provided.
lambda_exec.go), its"recorded"replay cache, the warm pool andevictWarmContainerare gone.Invokeanswers a seeded error, then a seeded result, then the stub. The newPOST/DELETE /v1/lambda/invoke-result({"functionName"|"*","payload"}) returns the payload verbatim with noX-Amz-Function-Error. It resolves exact name before*, andinvoke-errorstill wins. It is in the recorded control-plane group. ESM pollers andLambdaPlugin.ResetForRunstay, and the deployment package is still stored forCodeSize/CodeSha256.rds_exec.go) is gone. The stub endpoint andavailablestatus are unchanged.RDSPlugin.ResetForRunand its replay-snapshot methods are removed, so"rds"drops out of theResettablePluginlist test.spawn_control.goand/v1/spawn/task-completionare replaced by the genericPOST/DELETE /v1/s3/seeded-objects.{"bucket"|"*","key","body","bodyBase64","contentType","availableAt"}. A JSON-stringbodyis served as text, any other JSON value as compact JSON, andbodyBase64as bytes.s3-ctrlunderseeded-object:<bucket>/<key>and resolve exact bucket first, then*.versionIdis named. It goes through the normal GET/HEAD path, so Range and preconditions apply.404 NoSuchKeyuntilavailableAton the simulated clock.Last-ModifiedisavailableAt, or the seed time when there is none.?bucket=&key=. A key alone clears the*seed, and neither clears everything.tasks/<id>/completion.jsonis now a real 404.ReplayCfg.RandomSeedandReplayConfig.RandomSeedgo together, sinceToReplayConfigis a struct conversion. So doReplayEngine.rng,RandFloat64andRandInt64, and themath/rand/v2import.Config.Lambda/LambdaCfgandConfig.RDS/RDSCfgare removed, along with their defaults and validation.LoadConfigchecksv.IsSetforlambda.docker_enabled,lambda.replay_mode,lambda.warm_pool_ttl,rds.engineandreplay.random_seed, whether set in the file or asSUBSTRATE_*. Each one set appends a message to the newConfig.Warnings, and the CLI logs those at startup (logConfigWarnings).lambda_exec.go:*,rds_exec.go:*andreplay.go:import.RandomSeedandrandom_seedare removed.lambda_control.goands3_seeded_objects.go.substrate.yaml.exampleis updated.The routed-operation catalog is unchanged (no AWS operation added or removed). The two new routes are control-plane only. Diff: +1,604 / −3,120.
Error text: the new 400s are control-plane JSON errors, not
AWSErrors. The S3 404s are the existingNoSuchKey/NoSuchBucketresponses.Compatibility
See the CHANGELOG
### Compatibilitylist. It covers the removed exported API, the removed config keys and env vars (which now warn), and the removed/v1/spawn/task-completionroute, which replays as 404 from old recorded streams. spore.host must now seed each completion record through/v1/s3/seeded-objects; the CHANGELOG has an example body.Gates run locally
make lint test e2e,SUBSTRATE_IAC=1 make iac-e2e(afteriac-e2e-setup),docs-reference-check,docs-headings-check,docs-versions,docs-counts-check,operation-catalog-check,operation-docs-check,cfn-schema-check,authz-reference-check, thediscarded-*checks,wire-bookkeeping-checkandnondeterminism-check(with self-test). Alsomake python-test(84 passed against a fresh binary),python-lint, and the VitePress build.Smoke test against the built binary:
lambda.docker_enabled: truestarts and logs the warning;{"answer":42}with no error header, and a later invoke-error wins withX-Amz-Function-Error: Handled;tasks/x/completion.jsonis 404;availableAtand 200 after, and Range answers 206.Review fixes (second commit)
PutObject,CopyObject,CompleteMultipartUpload,DeleteObjectandDeleteObjectsall do, through a per-bucket tombstone ins3-ctrl. So a deleted seeded object stays deleted in unversioned buckets, and in versioned buckets after the marker or the written version is removed. A delete beforeavailableAtdeletes nothing. Posting or clearing the seed clears its tombstones.CopyObjectandUploadPartCopyread a seeded source. The operations that treat a seeded key as absent are listed in services.md.Last-Modifiedin whole seconds, so an echoed header gets 304 / 200 (pre-existing).recordControlPlaneWritesholds the simulated clock across the handler and the event timestamp, the wayhandleAWSRequestdoes.seededAtnow replays identically, which is tested on a running clock against the replay sandbox's state.*error,*result.functionNameaccepts a qualified name or a full or partial ARN in invoke-error and invoke-result POST and DELETE.loadConfigprints config warnings to stderr at every log level. It covers everyLoadConfigcall, including the SIGHUP reload andvalidate-plan.Rebased onto #1667. Gates re-run:
make lint test e2e,SUBSTRATE_IAC=1 make iac-e2e, the drift checks,python-test,python-lintand the VitePress build.No follow-up issues filed.