-
Notifications
You must be signed in to change notification settings - Fork 219
Fix issue when files for paused sandbox are not uploaded yet #1615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue when files for paused sandbox are not uploaded yet #1615
Conversation
| // and current load distribution. | ||
| type Algorithm interface { | ||
| chooseNode(ctx context.Context, nodes []*nodemanager.Node, nodesExcluded map[string]struct{}, requested nodemanager.SandboxResources, buildMachineInfo machineinfo.MachineInfo) (*nodemanager.Node, error) | ||
| excludeNode(err error) bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simplified the logic a little
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
dobrac
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nit
Note
Handle missing snapshot files with FailedPrecondition and refine placement to skip exhausted nodes and retry, adding supporting test helpers and tests.
packages/orchestrator/internal/server/sandboxes.go):FailedPreconditionwhen snapshot/template files are missing (storage.ErrObjectNotExist), with telemetry.packages/api/internal/orchestrator/placement):Algorithminterface (removeexcludeNode).ResourceExhausted, otherwise exclude the node, record failure, and increment attempts.nodemanager/mock.go):ResourceExhaustedand succeeds on another node.CreatereturnsFailedPreconditionwhen sandbox files are not found.Written by Cursor Bugbot for commit 3ee22ce. This will update automatically on new commits. Configure here.