Skip to content

chore(deps): bump substrate test dependency to v0.81.0 - #478

Merged
scttfrdmn merged 2 commits into
mainfrom
chore/substrate-0.81.0
Aug 1, 2026
Merged

scttfrdmn merged 2 commits into
mainfrom
chore/substrate-0.81.0

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Test-only dependency bump, v0.71.0 → v0.81.0 (root + lambda/dns-updater). No runtime or API change.

Why now

substrate#412. RunInstances previously accepted an empty ImageId and launched an instance, so our guard against launching without a resolved AMI had no offline test that could fail — the bug we filed it for shipped, and was caught only by a paid smoke test against real AWS. Substrate now returns MissingParameter / HTTP 400 when no AMI resolves from any source (request or launch template), so that path is reachable in -short tests.

Fixing it surfaced a second substrate defect: an explicitly-empty query-protocol body parameter was coerced to the bare-key sentinel "1", so ImageId= arrived as the string 1 and launched from an AMI named 1. That affected every EC2/IAM/STS/SQS/SNS parameter sent empty.

Also newly testable offline

Invalid*ID.NotFound for explicit EC2 IDs (#391) · symbolic Error.Code per service wire protocol (#392) · Lambda invoke omitting FunctionError/LogResult (#393) · S3 Range and conditional requests (#396, #397) · x-amz-checksum-* verification (#399) · storage classes and CopyObject metadata directives (#398) · Content-Encoding surviving a multipart upload (#406) · a seedable SQS create-then-lookup consistency window with the correct QueueDoesNotExist code — the legacy dotted AWS.SimpleQueueService.NonExistentQueue was uncatchable as a typed error in both the Go and Python SDK, which is what the taskpool queue-lifecycle tests assert on (#413).

Verification

go build ./... clean. The dns-updater substrate Route53 test passes.

⚠️ cmd’s TestCatalogValid fails — pre-existing on main, unrelated to this bump (two private ECR images in the shipped app catalog). Reproduced on unmodified origin/main by stashing this change.

Test-only; no runtime or API change (root + lambda/dns-updater).

The reason to take it now is substrate#412: RunInstances previously accepted an
empty ImageId and launched an instance, so our guard against launching without a
resolved AMI had no offline test that could fail -- the bug we filed it for
shipped, and was caught only by a paid smoke test against real AWS. Substrate now
returns MissingParameter / HTTP 400 when no AMI resolves from any source
(request or launch template), so that path is reachable in -short tests.

Fixing it also surfaced a substrate request-parser defect: an explicitly-empty
query-protocol body parameter was coerced to the bare-key sentinel "1", so
ImageId= arrived as the string 1 and launched from an AMI named 1 -- affecting
every EC2/IAM/STS/SQS/SNS parameter sent empty.

Also newly testable offline: Invalid*ID.NotFound for explicit EC2 IDs (#391),
symbolic Error.Code per service (#392), Lambda invoke omitting FunctionError and
LogResult (#393), S3 Range and conditional requests (#396, #397),
x-amz-checksum-* verification (#399), storage classes and CopyObject metadata
directives (#398), Content-Encoding surviving a multipart upload (#406), and a
seedable SQS create-then-lookup consistency window with the correct
QueueDoesNotExist code -- the legacy dotted form was uncatchable as a typed
error in either SDK, which is what the taskpool queue-lifecycle tests assert on
(#413).

Note: cmd's TestCatalogValid fails on main already (two private ECR images in
the shipped app catalog, #392) and is unrelated to this bump.
@codecov

codecov Bot commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttfrdmn

Copy link
Copy Markdown
Contributor Author

⚠️ Merge order: this PR must land after #509

The Go Vulnerability Check failure here is not caused by this bump, but it will not clear until #509 merges. Diagnosis:

lambda/ttl-reaper imports github.com/spore-host/spore-host/lambda/accountlifecycle (in expiry.go, for DNSExpiryEligible) at pseudo-version v0.0.0-20260731051401-60cad3a82014. That pinned revision still imports substrate at its root package path — which stopped existing at v0.70.0, when it moved to /emulator. So go mod tidy in ttl-reaper fails resolving a transitive test dependency of a module in another repo:

go: github.com/spore-host/spawn/lambda/ttl-reaper imports
    github.com/spore-host/spore-host/lambda/accountlifecycle tested by
    github.com/spore-host/spore-host/lambda/accountlifecycle.test imports
    github.com/scttfrdmn/substrate: module github.com/scttfrdmn/substrate@latest
    found (v0.81.0), but does not contain package github.com/scttfrdmn/substrate

Verified pre-existing, not from this PR. I stashed this change, reset the worktree to origin/main, and ran go mod tidy in lambda/ttl-reaper — it fails with the byte-identical error at v0.71.0. This PR does not touch ttl-reaper.

Why main was green at 17:52 on 2026-07-31 and would fail now. The resolution hinges on @latest, not on anything committed here: substrate v0.80.0 was tagged 2026-08-01T02:11Z and v0.81.0 at 06:12Z — after that last green run. Before those tags, @latest resolved to a version that still had the root package, so the constraint was satisfiable. It no longer is. main is latently broken independent of this PR and would fail on its next Security run.

The fix is #509, which corrects that import to github.com/scttfrdmn/substrate/emulator. Confirmed empirically: with a local go mod edit -replace pointing accountlifecycle at the #509 tree, ttl-reaper tidies and builds clean.

So: merge #509 first, then this PR needs no further change — once #509 is on main, a re-run picks up a resolvable pseudo-version. (If CI still resolves the stale pin from the module cache/proxy, ttl-reaper may need a one-line go get bump of the accountlifecycle pseudo-version afterward; happy to push that as a follow-up commit if the re-run needs it.)

Other checks

Test: E2E Tier 0 (Substrate) passes — which is the check that actually exercises this bump. gitleaks, Trivy, Semgrep all green.

The Security job on this branch (and on main — this is not PR-introduced) failed
with `go: updates to go.mod needed` in lambda/ttl-reaper. Cause is Go MVS plus
upstream tag timing, not any commit here:

  ttl-reaper requires spore-host/lambda/accountlifecycle at a pseudo-version
  whose *test* imported substrate at its old root path. Substrate moved that
  package to /emulator in v0.70.0, so once v0.80.0 (2026-08-01 02:11Z) and
  v0.81.0 (06:12Z) were tagged — after spawn main's last green Security run
  (2026-07-31 17:52Z) — resolution broke with no local change involved.

#509 fixed the import; this bumps the pin to that merged commit
(14e273c). Verified: `go mod tidy -diff` clean, `go build ./...` clean, and
govulncheck (v1.3.0, as CI pins) reports no vulnerabilities.

Note the go.sum-only tidy drift in alert-handler, autoscale-orchestrator and
sweep-orchestrator is pre-existing on main and does not affect govulncheck,
which is what the job actually runs. Left alone here to keep this fix scoped.
@scttfrdmn
scttfrdmn merged commit 9e3c2fa into main Aug 1, 2026
7 checks passed
@scttfrdmn
scttfrdmn deleted the chore/substrate-0.81.0 branch August 1, 2026 14:47
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