Skip to content

Mark viam-server running version on startup#245

Merged
cheukt merged 1 commit into
mainfrom
fix-fix
May 29, 2026
Merged

Mark viam-server running version on startup#245
cheukt merged 1 commit into
mainfrom
fix-fix

Conversation

@cheukt
Copy link
Copy Markdown
Member

@cheukt cheukt commented May 28, 2026

I couldn't make a dev release for my last pr because I pushed to my fork instead of this, so this pr fixes an issue that I found very quickly after testing

the running version wouldn't be marked until the first time viam-server stopped

@cheukt cheukt added the dev-release Build and publish agent binaries with a dev version label May 28, 2026
@github-actions
Copy link
Copy Markdown

@cheukt cheukt requested a review from benjirewis May 28, 2026 22:32
Comment thread manager.go
}
}
if !m.viamServerNeedsRestart {
m.cache.MarkViamServerRunningVersion()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[q] How is this different from what we initially had (I mean a week ago before your last PR/commit)? I'm having trouble parsing the if m.viamServerNeedsRestart || m.viamAgentNeedsRestart followed by if !m.viamServerNeedsRestart {. With which case are we not marking a running viam-server version with your changes that we were previously marking?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

what we initially had was that we were always marking a running a viam-server version, which is bad if the viam-server didn't actually get stopped/get restarted.

now, if stopping viam-server failed, m.viamServerNeedsRestart will stay true and we won't be marking the running viam-server version.

that's the intended change anyway

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if stopping viam-server failed, m.viamServerNeedsRestart will stay true and we won't be marking the running viam-server version.

Got it; that makes sense to me. Thanks!

@cheukt cheukt merged commit 53e89d2 into main May 29, 2026
15 of 16 checks passed
@cheukt cheukt deleted the fix-fix branch May 29, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev-release Build and publish agent binaries with a dev version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants