Repository navigation
Conversation
yongruilin
approved these changes
Nov 24, 2026
- Remove the -template and -template-atespace flags, which nothing reads, from ax-server, NewTaskManager, and the deploy and E2E manifests. - UpdateModel treats only store.ErrNotFound as a new model; other store errors return Internal instead of resetting the model's uid and createTime. - recordFailure logs a failed status write instead of dropping it. - Add atespaceOrDefault, lockStoredTask, and substrateError, and pass the previous metadata to defaultMetadata instead of a callback. - List handlers read the request with nil-safe getters.
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.
Part of #749: the bugs and the duplication. The small things are left for a follow-up. Stacked on #748; once it merges, this PR retargets to
main.Bugs
-templateand-template-atespaceare removed:TaskManagerstored them but never read them. This also removes them fromNewTaskManager, thedeploy/ax-server.yamlargs, the namespace rewrite indeploy/embed.go, andtest/e2e/manifests/ax-server.yaml. A newax-serverstarted with an old manifest that still passes--templatefails with "flag provided but not defined"; manifests rendered by the matching CLI are fine.UpdateModeltreats onlystore.ErrNotFoundas a new model. Before, any store error gave an existing model a new uid and createTime.TestUpdateModel_StoreErrorcovers it.recordFailurelogs a failed status write instead of ignoring it.Duplication
lockStoredTaskreplaces the lock, load, and NotFound/Internal mapping copied intoDeleteTask,SuspendTask, andResumeTask.substrateErrormaps a Substrate error toUnavailable(transient) orInternalforSuspendTask,recordFailure, andDeleteWorkspace.deleteTask(passes Substrate's gRPC codes through) andprepareWorkspace(FailedPreconditionwith the setup error) keep their own mapping.defaultMetadata(meta, prev)takes the stored metadata instead of a callback.atespaceOrDefaultreplaces the repeated defaulting, including the three hard-coded"default"ingateway.go.DeleteGatewaystill reads the gateway before deleting it; the store is unchanged.make verify,go build, andgo test ./...pass locally. The E2E and local install tiers were not run.