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!: remove startup logs eof for streaming#8528

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
kylecarbs merged 2 commits intomainfromstartupeof
Jul 18, 2023
Merged

Conversation

kylecarbs
Copy link
Member

We have external utilities like logstream-kube that may send logs after an agent shuts down unexpectedly to report additional information. In a recent change we stopped accepting these logs, which broke these utilities.

In the future we'll rename startup logs to agent logs or something more generalized so this is less confusing in the future.

MrPeacockNLB reacted with thumbs up emoji
@kylecarbskylecarbs self-assigned thisJul 14, 2023
@kylecarbskylecarbs marked this pull request as ready for reviewJuly 14, 2023 22:28
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 this is fine but I can give it a proper look tomorrow.

if state.ReadyAt.Valid {
return
}
// Just keep listening - more logs might come in the future!
Copy link
Member

Choose a reason for hiding this comment

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

We can remove the ready state stuff higher up too.

@kylecarbs
Copy link
MemberAuthor

@mafredri this can just wait until Monday, no biggie.

mafredri reacted with thumbs up emoji

We have external utilities like logstream-kube that may sendlogs after an agent shuts down unexpectedly to report additionalinformation. In a recent change we stopped accepting these logs,which broke these utilities.In the future we'll rename startup logs to agent logs or somethingmore generalized so this is less confusing in the future.
Copy link
Member

@mafredrimafredri left a comment
edited
Loading

Choose a reason for hiding this comment

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

I just remembered the current log fetching incli/cliui.Agent relies on the websocket closing when streaming startup logs.

I pushed a fix for this and as long as the WebUI doesn't depend on the ws closing behavior, I think we're good.

@mafredrimafredri changed the titlefix: remove startup logs eof for streamingfix!: remove startup logs eof for streamingJul 17, 2023
@github-actionsgithub-actionsbot added the release/breakingThis label is applied to PRs to detect breaking changes as part of the release process labelJul 17, 2023
@mafredri
Copy link
Member

Marked this as breaking since this will break coder server/clients (e.g. older clients will continue streaming startup logs forever, when blocking startup script is used).

@kylecarbskylecarbs merged commit98164f6 intomainJul 18, 2023
@kylecarbskylecarbs deleted the startupeof branchJuly 18, 2023 15:57
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJul 18, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

@coadlercoadlercoadler approved these changes

Assignees

@kylecarbskylecarbs

Labels
release/breakingThis label is applied to PRs to detect breaking changes as part of the release process
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@kylecarbs@mafredri@coadler

[8]ページ先頭

©2009-2025 Movatter.jp