Skip to content

ateapi: Cover Golden snapshot preferred fidelity - #2821

Closed
Luomu (cloudonly) wants to merge 1 commit into
agent-substrate:mainfrom
cloudonly:test/golden-preferred-fidelity
Closed

Luomu (cloudonly) wants to merge 1 commit into
agent-substrate:mainfrom
cloudonly:test/golden-preferred-fidelity

Conversation

@cloudonly

@cloudonly Luomu (cloudonly) commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Exercise Golden creation with the default, MEMORY, VOLUMES, and ROOTFS fidelities. Check the outgoing Checkpoint request, published Golden tag, and inherited actor snapshot so forcing MEMORY in either the request or snapshot metadata is caught.

Closes #2383.

Validation of the rebased source on Linux/amd64 with Go 1.27.2 as a non-root user with CI=true:

  • go test -race -count=1 ./... passed on the first run, with 167 test packages passing. TestGoldenSnapshotPreferredFidelity and all four subtests ran and passed against PostgreSQL and envtest.
  • hack/verify-all.sh passed all 16 checks on retry, with a clean source tree. The initial lint run reached its default 5-minute timeout while compiling cold dependencies. Its configuration and timeout were unchanged.
  • Before rebase, forcing MEMORY in snapshot metadata and in the Checkpoint request separately made VOLUMES/ROOTFS fail while default/MEMORY remained green. Both mutations were reverted, and the test patch is unchanged after rebase.

Earlier pre-rebase validation encountered ENOENT in the unchanged internal/credbundle/TestLoaderConcurrentHandshakes; isolated repetition reproduced it 3 out of 30 times. It did not recur in the full run on the rebased source.

Runtime cluster E2E was not run.

AI assistance: Codex helped write and validate the regression test.

Cover the default and all supported fidelities through Golden creation, publication, and inheritance so forced MEMORY requests or snapshot metadata cannot regress silently.
@cloudonly
Luomu (cloudonly) force-pushed the test/golden-preferred-fidelity branch from 8a63fd2 to 815ff43 Compare October 18, 2026 05:08
@cloudonly
Luomu (cloudonly) marked this pull request as ready for review October 18, 2026 15:25
@bowei Bowei Du (bowei) added area/api-machinery area/storage area/tests Enhancing / fixing test coverage. kind/feature An enhancement / feature request or implementation labels Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api-machinery area/storage area/tests Enhancing / fixing test coverage. kind/feature An enhancement / feature request or implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use a preferred_fidelity's valie when golden snapshots is scheduled

2 participants