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

fix(coderd): ensure agent timings are non-zero on insert#18065

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
johnstcn merged 7 commits intomainfromcj/no-zero-timings
May 29, 2025

Conversation

johnstcn
Copy link
Member

@johnstcnjohnstcn commentedMay 27, 2025
edited
Loading

Relates to#15432

I checked in our dogfood database and couldn't find any instances of timings wherestarted_at orended_at was the zero time. However it makes sense to me to ensure this can't ever happen.

@johnstcnjohnstcn self-assigned thisMay 27, 2025
@johnstcnjohnstcn marked this pull request as ready for reviewMay 27, 2025 17:31
@johnstcnjohnstcn changed the titlefix(coderd): ensure agent timings are present on insertfix(coderd): ensure agent timings are non-zero on insertMay 27, 2025
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.

small non-blocking comment but otherwise looks good to me

Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

I think the extra validation is good, but this fix doesn't seem to address the issue raised in#15432?

)
continue
}

Copy link
Member

@mafredrimafredriMay 28, 2025
edited
Loading

Choose a reason for hiding this comment

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

The issue referenced in#15432 originates from thecodersdk.TimingStageConnect timing that's further down, but that one doesn't seem addressed?

Theagent.FirstConnectedAt.Time is used unconditionally, but may be null. Do we have a way to represent this better?

We could always omit the entry, but personally I'd like to see it in the graph as an unterminated starting point, would give an indication we're waiting for something.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

We could represent both of these ascodersdk.NullTime instead.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

It turns out the timings chart is built to render with a "loading" state until all of provisioner timings, script timings, and connection timings are populated with at least one value. The assumption here is that timings are only useful after a build has completed.

My previous change (#18058) adds a check in the UI so that causes a time range with a zero time to be rendered as an "instant" with an "Invalid" label.

I think that, for now, it makes sense to simply exclude the agent connection timing if!FirstConnectedAt.Valid. Does that sound alright?

Copy link
Member

Choose a reason for hiding this comment

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

I'm fine with that if it can show up later if the agent finally connects 👍🏻

Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

Small suggestion, but otherwise LGTM!

@johnstcnjohnstcn merged commit776c144 intomainMay 29, 2025
34 checks passed
@johnstcnjohnstcn deleted the cj/no-zero-timings branchMay 29, 2025 12:36
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 29, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

@DanielleMaywoodDanielleMaywoodDanielleMaywood approved these changes

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@johnstcn@mafredri@DanielleMaywood

[8]ページ先頭

©2009-2025 Movatter.jp