Preserve snapshot fork restore paths#239
Merged
Merged
Conversation
sjmiller609
commented
May 22, 2026
| namePrefix string | ||
| } | ||
|
|
||
| func runWarmForkChain(t *testing.T, mgr *manager, tmpDir string, cfg warmForkChainConfig) { |
Collaborator
Author
There was a problem hiding this comment.
This is testing the flow:
Fork from snapshot -> Fork again
|
Firetiger deploy monitoring skipped This PR didn't match the auto-monitor filter configured on your GitHub connection:
Reason: PR changes hypervisor packages (firecracker, qemu, cloud hypervisor) and instances library, not the kernel API endpoints or Temporal workflows specified in the filter. To monitor this PR anyway, reply with |
rgarcia
approved these changes
May 22, 2026
Contributor
rgarcia
left a comment
There was a problem hiding this comment.
approved — implementation direction looks good. a couple things worth checking:
lib/instances/fork.go:71— skippingrotateSourceVsockForRestorefortargetState=Stoppedleaves the stopped fork with the sameVsockCIDas the restored source.forkInstanceFromStoppedOrStandbycopies the standby source CID into the fork metadata, and theStateStandby -> StateStoppedtransition only deletes the snapshot, so starting that stopped fork later can collide with the still-running source CID. either keep rotating the source or assign the stopped fork a fresh CID before returning it.lib/hypervisor/firecracker/fork.go:57— consider handling non-IsNotExistos.Staterrors explicitly; right now permission/io errors are treated as “source exists”, which can setretainAlias=falseand later clear alias metadata even though the source path may not actually be usable.
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.
Summary
Test plan