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

chore: add parent PID to coder ssh log file name#16080

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
bcpeinhardt merged 1 commit intocoder:mainfromaaronlehmann:log-file-name-ppid
Jan 14, 2025

Conversation

aaronlehmann
Copy link
Contributor

Part of bringingcoder ssh to parity withcoder vscodessh is associating the log files with a particular parent process (in this case, the ssh process that spawned the coder CLI viaProxyCommand).coder vscodessh named log files using the parent PID, but coder ssh is missing this. Add the parent PID to the log file name when used in stdio mode so that the VS Code extension will be able to identify the correct log file.

See also#16078.

Part of bringing coder ssh to parity with coder vscodessh is associatingthe log files with a particular parent process (in this case, the sshprocess that spawned the coder CLI via ProxyCommand). coder vscodesshnamed log files using the parent PID, but coder ssh is missing this. Addthe parent PID to the log file name when used in stdio mode so thatthe VS Code extension will be able to identify the correct log file.
@cdr-botcdr-botbot added the communityPull Requests and issues created by the community. labelJan 9, 2025
@code-ashercode-asher requested review frombcpeinhardt andEmyrk and removed request formafredriJanuary 9, 2025 20:29
)
if stdio {
Copy link
Contributor

Choose a reason for hiding this comment

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

InsetStatsCallback, we use the parent pid as the filename regardless of whether or not we're in stdio mode:https://github.com/coder/coder/pull/16078/files#diff-e288cc849ca774d47294f4f6c71c4ec171f6e0b15491e7220a0144dbfc1a43bcR1213

Should we just include it in either case here as well? Trying to get a handle on how these files relate I suppose.

Copy link
Contributor

Choose a reason for hiding this comment

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

For now I think this is good for compatibility though.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I was thinking we only want it for stdio mode because including the parent PID is only meaningful whencoder ssh is invoked viaProxyCommand (which would use--stdio). Happy to change this if you prefer to be consistent, though.

There isn't a use case where we would use--network-info-dir without--stdio, but I thought I should be consistent and support it in either case. I could make it return an error when--stdio is not also specified.

@bcpeinhardtbcpeinhardt merged commitec6645b intocoder:mainJan 14, 2025
33 checks passed
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJan 14, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@bcpeinhardtbcpeinhardtbcpeinhardt approved these changes

@EmyrkEmyrkAwaiting requested review from Emyrk

Assignees

@aaronlehmannaaronlehmann

Labels
communityPull Requests and issues created by the community.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@aaronlehmann@bcpeinhardt

[8]ページ先頭

©2009-2025 Movatter.jp