Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(coderd): add experimental tasks logs endpoint#19958

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
mafredri merged 5 commits intomainfrommafredri/feat-coderd-tasks-logs
Sep 25, 2025

Conversation

mafredri
Copy link
Member

@mafredrimafredri commentedSep 25, 2025
edited
Loading

Bothfollow andtail have been omitted for now.

Fixescoder/internal#901

@mafredrimafredriforce-pushed themafredri/feat-coderd-tasks-logs branch 2 times, most recently from472270a toff2b3a2CompareSeptember 25, 2025 11:38
@mafredrimafredri marked this pull request as ready for reviewSeptember 25, 2025 11:40
@mafredrimafredriforce-pushed themafredri/feat-coderd-tasks-logs branch 2 times, most recently from9e17127 tob7830b0CompareSeptember 25, 2025 11:56
@mafredrimafredri changed the titlefeat(coderd): add tasks logs endpointfeat(coderd): add experimental tasks logs endpointSep 25, 2025
Base automatically changed frommafredri/feat-coderd-tasks-send tomainSeptember 25, 2025 12:12
@mafredrimafredriforce-pushed themafredri/feat-coderd-tasks-logs branch from562d075 todaec105CompareSeptember 25, 2025 12:13
Copy link
Contributor

@DanielleMaywoodDanielleMaywood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

just a small nit on thehttperror.WriteResponseError

Co-authored-by: Danielle Maywood <danielle@themaywoods.com>
Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM, some comments below but I wouldn't consider them blocking in an experimental endpoint.

body,_:=io.ReadAll(io.LimitReader(resp.Body,128))
returnhttperror.NewResponseError(http.StatusBadGateway, codersdk.Response{
Message:"Task app rejected the request.",
Detail:fmt.Sprintf("Upstream status: %d; Body: %s",resp.StatusCode,body),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

👍 this should give a good indication to the user

Comment on lines +750 to +753
case"user":
typ=codersdk.TaskLogTypeInput
case"agent":
typ=codersdk.TaskLogTypeOutput
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Is there a reason to have these be different? Could we instead usecodersdk.TaskLogTypeUser /codersdk.TaskLogTypeAgent?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm somewhat indifferent and open to changing this, this is just the last option we discussed/settled on with@DanielleMaywood (correct me if I misremember). It seemed like a good idea to try to tie the concept ofsend input into the logs (input/output) to make the origin clear.

johnstcn reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Let's go with this for now. We can adjust if need be.

mafredri reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yeah that was pretty much the reason, I'm also indifferent on what we pick here as well.

@mafredrimafredrienabled auto-merge (squash)September 25, 2025 13:09
@mafredrimafredriforce-pushed themafredri/feat-coderd-tasks-logs branch from91730fe toe2db31aCompareSeptember 25, 2025 14:51
@mafredrimafredri merged commit0bac5a4 intomainSep 25, 2025
33 of 34 checks passed
@mafredrimafredri deleted the mafredri/feat-coderd-tasks-logs branchSeptember 25, 2025 15:12
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 25, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@DanielleMaywoodDanielleMaywoodDanielleMaywood approved these changes

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Tasks API: ImplementGET /tasks/{id}/logs
3 participants
@mafredri@johnstcn@DanielleMaywood

[8]ページ先頭

©2009-2025 Movatter.jp