Skip to content

fix: stop activity bump if no tracked sessions #15237

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 29, 2024
Merged

Conversation

f0ssel
Copy link
Contributor

@f0ssel f0ssel commented Oct 25, 2024

Part of #15176

I originally kept this the same because I wanted to be conservative about when we start dropping activity, but this is proving to be a problem when using coder ssh with --usage-app=disabled. Because the workspace agent still counts this as a connection (I think it still should so it's counted somewhere) but not as a SSH / IDE session. This leads to background ssh tasks that want to be untracked still continuing to bump activity when it shouldn't. This makes it so we have to have an explicit session to bump activity.

johnstcn
johnstcn previously approved these changes Oct 25, 2024
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

Looks like there are still some tests that need to be updated?

@f0ssel
Copy link
Contributor Author

f0ssel commented Oct 25, 2024

Yup, I'll need to replicate some logic from the ssh command to get the tests passing and should be g2g after that.

Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

Approved from pairing session. This is a safer option because it leaves the legacy behaviour unchanged.

@f0ssel f0ssel enabled auto-merge (squash) October 29, 2024 17:58
@f0ssel f0ssel merged commit d83f4eb into main Oct 29, 2024
26 checks passed
@f0ssel f0ssel deleted the f0ssel/no-session-bump branch October 29, 2024 18:08
@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants