Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
9831301
feat(agent): join a pod group's coordination session
galletas1712 Nov 4, 2026
668cee2
fix(agent): run a pod group member's remaining checks before its admi…
galletas1712 Nov 14, 2026
58f768b
fix(agent): count a pod group member as committed once it calls admitted
galletas1712 Nov 14, 2026
b78c67d
fix(agent): bound a pod group member's admission waits by the session
galletas1712 Nov 14, 2026
64b62e1
fix(agent): fail a pod group's attempt when a member's executor panics
galletas1712 Nov 14, 2026
e1793a0
feat(agent): record a pod group capture's member table as SNEP-324 de…
galletas1712 Nov 14, 2026
fc5b498
fix(agent): refuse a pod group member that a restore could not serve
galletas1712 Nov 14, 2026
c5df4db
fix(agent): refuse to restore a pod group member's checkpoint on its own
galletas1712 Nov 14, 2026
9f1d269
refactor(agent): fail a pod group's attempt with the session's Refuse…
galletas1712 Nov 16, 2026
8ad8ce6
feat(agent): call back when a pod group's attempt commits
galletas1712 Nov 16, 2026
947ee8f
docs(troubleshooting): document the pod group steps of capture and re…
galletas1712 Nov 13, 2026
cb1deae
docs(troubleshooting): document recording that a pod group member sta…
galletas1712 Nov 16, 2026
b8268c4
fix(agent): leave a pod group's attempt to its deadline once it passes
galletas1712 Nov 17, 2026
96ece98
Merge branch 'coordinator-nats' into schwinns/agent-group-member
galletas1712 Nov 18, 2026
1beda9b
docs(agent): pass the coordinator build context in the Dockerfile exa…
galletas1712 Nov 18, 2026
ce64ff8
test(agent): check that a group member waits at net-freeze and release
galletas1712 Nov 18, 2026
8b93aa4
refactor(agent): name the pod group start callback for what it records
galletas1712 Nov 30, 2026
2d0a9e5
test(agent): leave the attempt once a test peer passes its barrier
galletas1712 Nov 30, 2026
717e89b
docs(agent): explain why a capture lets CRIU finish past its deadline
galletas1712 Nov 30, 2026
fd203dd
fix(agent): release the dump of a pod group member whose commit fails
galletas1712 Nov 30, 2026
fdc28a9
fix(agent): fail the pod group before a failed member cleans up
galletas1712 Nov 30, 2026
6d43fd3
fix(agent): do not repeat a pod group member's failed dump
galletas1712 Nov 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ verify-base-packages:
AGENT_BUILD_FLAGS = --platform "$(AGENT_PLATFORM)" -f agent/Dockerfile \
--build-arg "GO_VERSION=$(GO_VERSION)" \
--build-arg "AGENT_BASE_IMAGE=$(AGENT_BASE_IMAGE)" \
--build-context=api=./api --build-context=compliance=./hack/compliance
--build-context=api=./api --build-context=coordinator=./coordinator --build-context=compliance=./hack/compliance

docker-build-agent:
docker buildx build $(DOCKER_BUILD_ARGS) $(AGENT_BUILD_FLAGS) \
Expand Down
24 changes: 15 additions & 9 deletions agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
#
# Dockerfile for the snapshot-agent image.
#
# Build targets. Two named build contexts are required for the agent: `api`
# (the agent module depends on it via `replace => ../api`) and `compliance`
# (attribution helpers shared with the operator image):
# Build targets. Three named build contexts are required for the agent: `api`
# and `coordinator` (the agent module depends on them via `replace => ../api`
# and `replace => ../coordinator`) and `compliance` (attribution helpers shared
# with the operator image):
# docker build --platform linux/amd64 --target agent \ (or linux/arm64)
# --build-context api=../api --build-context compliance=../hack/compliance \
# --build-context api=../api --build-context coordinator=../coordinator \
# --build-context compliance=../hack/compliance \
# -t snapshot-agent:latest .
#
# Optional targets for CI:
# docker build --target linter --build-context api=../api . # Run linting
# docker build --target tester --build-context api=../api . # Run tests
# docker build --target linter --build-context api=../api \
# --build-context coordinator=../coordinator . # Run linting
# docker build --target tester --build-context api=../api \
# --build-context coordinator=../coordinator . # Run tests

# =============================================================================
# Build Arguments
Expand Down Expand Up @@ -65,10 +69,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends git ca-certific

WORKDIR /workspace

# The agent module depends on the api module via `replace => ../api`, so the api
# module must sit at /api (a sibling of /workspace) for `go mod download` and the Go build to
# resolve it. Provided via the `api` named build context.
# The agent module depends on the api and coordinator modules via `replace => ../api` and
# `replace => ../coordinator`, so both must sit next to /workspace, at /api and /coordinator, for
# `go mod download` and the Go build to resolve them. Provided via the `api` and `coordinator`
# named build contexts.
COPY --from=api . /api/
COPY --from=coordinator . /coordinator/

COPY go.mod go.sum ./
RUN go mod download
Expand Down
18 changes: 15 additions & 3 deletions agent/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tool google.golang.org/protobuf/cmd/protoc-gen-go

require (
github.com/ai-dynamo/snapshot/api v0.0.0
github.com/ai-dynamo/snapshot/coordinator v0.0.0
github.com/checkpoint-restore/go-criu/v8 v8.5.0
github.com/containerd/containerd/v2 v2.4.2
github.com/containerd/nri v0.12.5
Expand Down Expand Up @@ -37,6 +38,7 @@ require (
require (
github.com/Microsoft/go-winio v0.6.3-0.20251027160822-ad3df93bed29 // indirect
github.com/Microsoft/hcsshim v0.15.0-rc.4 // indirect
github.com/antithesishq/antithesis-sdk-go v0.8.0-default-no-op // indirect
github.com/aperturerobotics/protobuf-go-lite v0.19.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
Expand Down Expand Up @@ -74,16 +76,23 @@ require (
github.com/go-openapi/swag/typeutils v0.27.1 // indirect
github.com/go-openapi/swag/yamlutils v0.27.1 // indirect
github.com/google/gnostic-models v0.7.0 // indirect
github.com/google/go-tpm v0.9.8 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.20.2 // indirect
github.com/klauspost/compress v1.20.3 // indirect
github.com/knqyf263/go-plugin v0.9.0 // indirect
github.com/minio/highwayhash v1.0.4 // indirect
github.com/moby/locker v1.0.1 // indirect
github.com/moby/sys/signal v0.7.1 // indirect
github.com/moby/sys/user v0.4.1 // indirect
github.com/moby/sys/userns v0.2.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/nats-io/jwt/v2 v2.8.2 // indirect
github.com/nats-io/nats-server/v2 v2.15.2 // indirect
github.com/nats-io/nats.go v1.55.0 // indirect
github.com/nats-io/nkeys v0.4.16 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.1 // indirect
github.com/pierrec/lz4/v4 v4.1.33 // indirect
Expand All @@ -108,12 +117,13 @@ require (
go.uber.org/multierr v1.11.0 // indirect
go.yaml.in/yaml/v2 v2.4.4 // indirect
go.yaml.in/yaml/v3 v3.0.5 // indirect
golang.org/x/crypto v0.58.0 // indirect
golang.org/x/net v0.60.0 // indirect
golang.org/x/oauth2 v0.36.0 // indirect
golang.org/x/term v0.46.0 // indirect
golang.org/x/term v0.47.0 // indirect
// Pinned above the graph minimum (v0.41.0) to clear a dependency-scan
// finding; see #402. x/sync above follows as a requirement of this version.
golang.org/x/text v0.42.0 // indirect
golang.org/x/text v0.43.0 // indirect
golang.org/x/time v0.16.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5 // indirect
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
Expand All @@ -129,6 +139,8 @@ require (

replace github.com/ai-dynamo/snapshot/api => ../api

replace github.com/ai-dynamo/snapshot/coordinator => ../coordinator

// Pre-split genproto still carries googleapis/rpc/status, which collides with the
// genproto/googleapis/rpc submodule ttrpc imports. hcsshim v0.15 swapped its
// requirement on the monolith for a replace, which main modules ignore, leaving MVS
Expand Down
31 changes: 25 additions & 6 deletions agent/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ github.com/Microsoft/go-winio v0.6.3-0.20251027160822-ad3df93bed29 h1:0kQAzHq8vL
github.com/Microsoft/go-winio v0.6.3-0.20251027160822-ad3df93bed29/go.mod h1:ZWa7ssZJT30CCDGJ7fk/2SBTq9BIQrrVjrcss0UW2s0=
github.com/Microsoft/hcsshim v0.15.0-rc.4 h1:aZFX4LH0S20Lgjq0wG61StIClj7im4yzrxIClkaR8Z8=
github.com/Microsoft/hcsshim v0.15.0-rc.4/go.mod h1:BA9CBztgu4h/6Jsvo1O1M4qjWw09PoYpaEYgexPE578=
github.com/antithesishq/antithesis-sdk-go v0.8.0-default-no-op h1:1BOWQJweNyvZMlpAHXGLiZQn9S+QXGcz3xh94lC0w6E=
github.com/antithesishq/antithesis-sdk-go v0.8.0-default-no-op/go.mod h1:FQyySiasQQM8735Ddel3MRojmy4dA1IqCeyJ5jmPMbI=
github.com/aperturerobotics/protobuf-go-lite v0.19.0 h1:7Veh1XY7pkswacItBnTR+skvPyNIFdOPg0tb3X0Yd/E=
github.com/aperturerobotics/protobuf-go-lite v0.19.0/go.mod h1:3Ay/E7iaw2KWLirK3+dDdNJZHK0hu8Y1/kKeYeUa+8s=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
Expand Down Expand Up @@ -111,21 +113,25 @@ github.com/google/gnostic-models v0.7.0 h1:qwTtogB15McXDaNqTZdzPJRHvaVJlAl+HVQnL
github.com/google/gnostic-models v0.7.0/go.mod h1:whL5G0m6dmc5cPxKc5bdKdEN3UjI7OUGxBlw57miDrQ=
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
github.com/google/go-tpm v0.9.8 h1:slArAR9Ft+1ybZu0lBwpSmpwhRXaa85hWtMinMyRAWo=
github.com/google/go-tpm v0.9.8/go.mod h1:h9jEsEECg7gtLis0upRBQU+GhYVH6jMjrFxI8u6bVUY=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 h1:BHT72Gu3keYf3ZEu2J0b1vyeLSOYI8bm5wbJM/8yDe8=
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
github.com/klauspost/compress v1.20.2 h1:v5tiZvm1KGLyg5d5oXdXe3lsSPrbEUiKoXGia//I7Qo=
github.com/klauspost/compress v1.20.2/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI=
github.com/klauspost/compress v1.20.3 h1:zWNoFqq/lSuYQRim3dUXlXeA0IqwuZGicdG5ZTfY5j4=
github.com/klauspost/compress v1.20.3/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI=
github.com/knqyf263/go-plugin v0.9.0 h1:CQs2+lOPIlkZVtcb835ZYDEoyyWJWLbSTWeCs0EwTwI=
github.com/knqyf263/go-plugin v0.9.0/go.mod h1:2z5lCO1/pez6qGo8CvCxSlBFSEat4MEp1DrnA+f7w8Q=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/minio/highwayhash v1.0.4 h1:asJizugGgchQod2ja9NJlGOWq4s7KsAWr5XUc9Clgl4=
github.com/minio/highwayhash v1.0.4/go.mod h1:GGYsuwP/fPD6Y9hMiXuapVvlIUEhFhMTh0rxU3ik1LQ=
github.com/moby/locker v1.0.1 h1:fOXqR41zeveg4fFODix+1Ch4mj/gT0NE1XJbp/epuBg=
github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc=
github.com/moby/sys/mountinfo v0.7.2 h1:1shs6aH5s4o5H2zQLn796ADW1wMrIwHsyJ2v9KouLrg=
Expand All @@ -144,6 +150,16 @@ github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFd
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/nats-io/jwt/v2 v2.8.2 h1:XXRgB60MSTnqsRwejQurVDs/hcv2dkt+86GjI+I/bMc=
github.com/nats-io/jwt/v2 v2.8.2/go.mod h1:Ag/56sq9OblL4JgdYufDd16Egb17Kr/8WwwuO/forVc=
github.com/nats-io/nats-server/v2 v2.15.2 h1:yLsgt2kslgymvxvjFq1WGWck5hkat2YYfbXvQ145tzU=
github.com/nats-io/nats-server/v2 v2.15.2/go.mod h1:VXHCZgDglV5wO2B8ZE58yG2HzqxQxYUbQqibUh5Xcr8=
github.com/nats-io/nats.go v1.55.0 h1:Ng8QKHdvdHIWoaiq0+d/aH1BWkxvcJxWJ0Y/9BPKx3M=
github.com/nats-io/nats.go v1.55.0/go.mod h1:y+DZoD1oBOYfZTU681eTUiUjI0vbqYGixNVFHcjHJ0k=
github.com/nats-io/nkeys v0.4.16 h1:rd5oAuLOb8mnAycB0xleuEBNS1pVVnN0fv/FF34Eypg=
github.com/nats-io/nkeys v0.4.16/go.mod h1:llLgWoI0o4z/Q57q2R1kHfmocyhGV6VG/U18Glg1Afs=
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
github.com/onsi/ginkgo/v2 v2.27.4 h1:fcEcQW/A++6aZAZQNUmNjvA9PSOzefMJBerHJ4t8v8Y=
github.com/onsi/ginkgo/v2 v2.27.4/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo=
github.com/onsi/gomega v1.39.0 h1:y2ROC3hKFmQZJNFeGAMeHZKkjBL65mIZcvrLQBF9k6Q=
Expand Down Expand Up @@ -211,6 +227,8 @@ go.yaml.in/yaml/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ=
go.yaml.in/yaml/v2 v2.4.4/go.mod h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ=
go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw=
go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54=
golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w=
golang.org/x/mod v0.42.0 h1:ICeL3t2L30ljSPHHxDnR4fqVcBt/zR2zJAb9juavmQg=
golang.org/x/mod v0.42.0/go.mod h1:u5fzIrRInkL8MaO1cbRkUHT64v303YIT5KEqpNr7jRs=
golang.org/x/net v0.60.0 h1:79p50tfZlm0J9YfoDsSi639qSXNGVwEzOPLCxM2FsYU=
Expand All @@ -219,12 +237,13 @@ golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs=
golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q=
golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA=
golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA=
golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
golang.org/x/term v0.46.0 h1:3+OXuTbaKDgwk8jTi3aSLHRlmWqHEUDUtxnbFigO4YE=
golang.org/x/term v0.46.0/go.mod h1:+K02xbkittuwc0Am4abfA3Fc+XRGXkvBXNO88NCXPoc=
golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI=
golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E=
golang.org/x/term v0.47.0 h1:cpyOwQkr2Nzxe2p6KnrTG7Ei2wtzjsuSjhpXXepZ/BM=
golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY=
golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc=
golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s=
golang.org/x/time v0.16.0 h1:vMb6ptszcQMkcwiRTAuNNU50gom6++Q/6gY2hDM6VDE=
golang.org/x/time v0.16.0/go.mod h1:rVKOqvZeKvrDKTQiAHJ7wmwP0RzleSphoEA9RcdLA0s=
golang.org/x/tools v0.51.0 h1:k4Xc/1Om9jwkBJBo4NVLMSARBoWtK10mx+W5BnXCeAI=
Expand Down
1 change: 1 addition & 0 deletions agent/internal/controller/podsnapshotcontent.go
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ func (w *NodeController) executorCheckpoint(ctx context.Context, params Checkpoi
NodeName: w.config.NodeName,
PodName: params.Pod.Name,
PodNamespace: params.Pod.Namespace,
PodUID: string(params.Pod.UID),
PodIP: params.Pod.Status.PodIP,
Pod: podEnvironment(params.Pod, params.ContainerName),
Clientset: w.clientset,
Expand Down
Loading