- Notifications
You must be signed in to change notification settings - Fork1.1k
chore(agent): add workspace owner env var and log dev container app failures#18433
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from3 commits
Commits
Show all changes
6 commits Select commitHold shift + click to select a range
6f4b694 chore: warn on app creation error
DanielleMaywood22c4696 chore: add CODER_WORKSPACE_OWNER_NAME to updateCommandEnv
DanielleMaywoodebd5ed7 test: CODER_WORKSPACE_OWNER_NAME is set
DanielleMaywooda6d5bce chore: add more fields to log
DanielleMaywood22eb5c9 Merge branch 'main' into dm-pr-feedback-oops
DanielleMaywood6e67082 Merge branch 'main' into dm-pr-feedback-oops
DanielleMaywoodFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletionsagent/agent.go
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
5 changes: 4 additions & 1 deletionagent/agent_test.go
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
9 changes: 9 additions & 0 deletionsagent/agentcontainers/subagent.go
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -233,6 +233,15 @@ func (a *subAgentAPIClient) Create(ctx context.Context, agent SubAgent) (SubAgen | ||
| if err != nil { | ||
| return SubAgent{}, err | ||
| } | ||
| for _, appError := range resp.AppCreationErrors { | ||
| app := apps[appError.Index] | ||
| a.logger.Warn(ctx, "unable to create app", | ||
| slog.F("app_slug", app.Slug), | ||
| slog.F("field", appError.GetField()), | ||
| slog.F("error", appError.GetError()), | ||
| ) | ||
| } | ||
DanielleMaywood marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| agent.Name = resp.Agent.Name | ||
| agent.ID, err = uuid.FromBytes(resp.Agent.Id) | ||
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
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.